summaryrefslogtreecommitdiff
path: root/systemd/_reader.c
Commit message (Collapse)AuthorAgeFilesLines
...
* systemd-python: refuse path and flags together in __init__Zbigniew Jędrzejewski-Szmek2015-07-051-7/+16
| | | | | | | | | It's better to explictly check, instead of just documenting it. The return value from init is changed from 1 to -1 on error. Python seems to ignore 1 every second time. Looks like a bug in Python, but the return value doesn't seem to be documented anywhere, and -1 works as expected... so let's just use that.
* systemd-python: export sd_j_get_fd, sd_j_reliable_fd, sd_j_closeZbigniew Jędrzejewski-Szmek2015-07-051-0/+44
| | | | | | | | | sd_journal_get_fd(j) is called j.fileno(), for compatiblity with Python conventions for file-like objects. More importantly, those new .seek_head() and .seek_tail() do not call .get_next(). This is better, if one wants to skip before retrieving an entry.
* systemd-python: split .seek() into .seek_head() and .seek_tail()Zbigniew Jędrzejewski-Szmek2015-07-051-52/+27
| | | | | This way python code follows the original interface more closely. Also, .seek(0, journal.SEEK_END) was just to much to type.
* systemd-python: fix error check in _Reader.wait()Zbigniew Jędrzejewski-Szmek2015-07-051-2/+3
|
* systemd-python: add missing check for return of PyDict_SetItem in _reader.cLukas Nykryn2015-07-051-1/+1
|
* python-systemd: rename Journal to ReaderZbigniew Jędrzejewski-Szmek2015-07-051-61/+61
| | | | | | It seems inevitable that we'll also grow a writing interface, and then it'll be cumbersome to have a "Journal" for reading, and a "Writer" for writing.
* systemd-python: return both parts of sd_journal_get_monotonic_usecZbigniew Jędrzejewski-Szmek2015-07-051-12/+62
| | | | | In Python 3, a named tuple is used. In Python 2, a simple tuple is used. In either case, the pair is (timestamp, bootid).
* python-systemd: check all errors and use automatic cleanupZbigniew Jędrzejewski-Szmek2015-07-051-116/+177
| | | | | | | | __REALTIME_TIMESTAMP and __MONOTONIC_TIMESTAMP return ints. It doesn't make sense to convert to string, just to convert back to a number later on. Also try to follow systemd rules for indentation.
* systemd-python: polish the docstringsZbigniew Jędrzejewski-Szmek2015-07-051-25/+29
|
* systemd-python: indenation and style tweaksZbigniew Jędrzejewski-Szmek2015-07-051-97/+80
|
* systemd-python: downgrade _reader.c to C89Zbigniew Jędrzejewski-Szmek2015-07-051-81/+86
|
* systemd-python: add casts and fix unused variable warnings in _readerZbigniew Jędrzejewski-Szmek2015-07-051-24/+34
|
* systemd-python: wrap some python differences using macrosZbigniew Jędrzejewski-Szmek2015-07-051-48/+26
|
* systemd-python: introduce error setting helperZbigniew Jędrzejewski-Szmek2015-07-051-95/+42
|
* systemd-python: fix memory leak in _reader and minor bugsSteven Hiscocks2015-07-051-2/+3
| | | | | iternext now checks for error from get_next, and changed a DECREF to XDECREF rather than NULL check
* systemd-python: update Journal python docstringsSteven Hiscocks2015-07-051-1/+1
|
* systemd-python: tidy up import names in journalSteven Hiscocks2015-07-051-1/+1
|
* systemd-python: remove unneeded ifdef for query_uniqueSteven Hiscocks2015-07-051-4/+0
|
* systemd-python: _reader now takes unix timestamp in secondsSteven Hiscocks2015-07-051-3/+6
|
* systemd-python: Update _reader docstringsSteven Hiscocks2015-07-051-8/+5
|
* systemd-python: _reader add_match takes single stringSteven Hiscocks2015-07-051-99/+13
| | | | python code now takes care of multiple matches
* systemd-python: correct data_threshold error return valueSteven Hiscocks2015-07-051-1/+1
|
* systemd-python: updated _reader header to standard licenseSteven Hiscocks2015-07-051-18/+20
|
* systemd-python: Moved _reader datetime usage to pythonSteven Hiscocks2015-07-051-44/+8
|
* systemd-python: Tidy up _reader error handlingSteven Hiscocks2015-07-051-69/+71
|
* systemd-python: some python3 and bug fixesSteven Hiscocks2015-07-051-7/+12
|
* systemd-python: implement this_boot/this_machine in PythonSteven Hiscocks2015-07-051-68/+0
|
* systemd-python: Journal log_level moved to pythonSteven Hiscocks2015-07-051-32/+0
|
* systemd-python: move default call dicts from C to pythonSteven Hiscocks2015-07-051-179/+17
|
* systemd-python: moved PyRun_String to journal.py codeSteven Hiscocks2015-07-051-52/+3
|
* systemd-python: add Journal class for reading journalSteven Hiscocks2015-07-051-0/+1163