Remove src/python-systemd
python-systemd: avoid hitting assert in __exit__ Reader_close() asserts that 'args' is always NULL, but the __exit__ function forwards a non-NULL args.
Always prefer our headers to system headers In practice this shouldn't make much difference, but sometimes our headers might be newer, and we want to test them.
systemd-python: fix failing assert A parameter which was always null before, now get's set to the module.
python: reindent _reader.c All files should follow our coding style, and that means 8ch indenting. Let's correct that.
macro: introduce nice macro for disabling -Wmissing-prototypes warnigs
systemd-python: fix setting of exception codes The return value of 0 would be treated as failure by mistake, resulting in " SystemError: error return without exception set". The way that set_error() is used is changed to be the same everywhere.
trivial coding style clean ups - Add space between if/for and the opening parentheses - Place the opening brace on same line as the function (not for udev) From the CODING_STYLE Try to use this: void foo() { } instead of this: void foo() { }
systemd-python: check for oom, give nicer error messages
systemd-python: fix initialization of _Reader objects https://bugzilla.redhat.com/show_bug.cgi?id=995575
systemd-python: fix gcc warning src/python-systemd/_reader.c: In function Reader_get_catalog: src/python-systemd/_reader.c:912:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert(mid_len > l); ^
systemd-python: use modern C
systemd-python: add support for sd_j_open_files Also export missing flags.
journal: add ability to filter by current user This is the just the library part. SD_JOURNAL_CURRENT_USER flags is added to sd_j_open(), to open files from current user. SD_JOURNAL_SYSTEM_ONLY is renamed to SD_JOURNAL_SYSTEM, and changed to mean to (also) open system files. This way various flags can be combined, which gives them nicer semantics, especially if other ones are added later. Backwards compatibility is kept, because SD_JOURNAL_SYSTEM_ONLY is equivalent to SD_JOURNAL_SYSTEM if used alone, and before there we no other flags.
systemd-python: wrap sd_login_monitor
systemd-python: add wrappers for easy functions in sd-login sd_get_uids, sd_get_seats, sd_get_sessions, and sd_get_machine_names.
systemd-python: add __version__ strings
systemd-python: wrap sd_journal_add_conjunction
move _cleanup_ attribute in front of the type http://lists.freedesktop.org/archives/systemd-devel/2013-April/010510.html
python-systemd: Reader return special fields and _Reader changes Changes to _Reader make it match closer to C API, by removing `get_next` and `get_previous`. A `get_all` method added, which returns dictionary of fields using C API SD_JOURNAL_FOREACH_DATA macro, which can be used in conjunction with `next`. _Reader `get`, `next`, `get_{realtime,monotonic,cursor}` and new `previous` methods are made private. This is so the traversal and getting of journal fields can be made transparent in the python interface. Reader now solely implements `get_next` and `get_previous`, returning a standard dictionary (future: other mapping types?) with all standard and special fields through the converters. This makes the output the same as journalctl json/export format output. Iterator methods also moved to Reader, as they do not function as intend with changes to _Reader. These changes also mean that more optimised journal interfaces can be made more easily from _Reader, by avoiding getting of unrequired fields by using the `_get` method, and avoiding field conversions.