summaryrefslogtreecommitdiff
path: root/journald.c
Commit message (Collapse)AuthorAgeFilesLines
* Add frontend module in pure-Python and hide old moduleZbigniew Jędrzejewski-Szmek2012-07-121-111/+0
| | | | | | | | | | | journald.send() is renamed to journald.sendv(), and a replacement journald.send() is added. This new function has a more pythonic API, where one positional argument is used for the message, and keyword arguments can be used to specify other fields. Implementing argument parsing in C would be really painful, for little gain, so a pure-python module is added, which provides send(), which in turn calls sendv().
* Compatibility with Python 3Zbigniew Jędrzejewski-Szmek2012-07-121-5/+47
| | | | | Should work with Python 3.0 - 3.2. Compatibility with Python 3.3 might require additional changes.
* Rework error handling in preparation for py3k changesZbigniew Jędrzejewski-Szmek2012-07-101-10/+14
| | | | | | When the #ifdefs neccesary to support Python 2 and 3 are added, there will be many more paths through the code. This style of error handling makes the code easier to read.
* Check the return value from sd_journal_sendvZbigniew Jędrzejewski-Szmek2012-07-101-2/+14
|
* Use PyString_AsStringAndSize to avoid strlenZbigniew Jędrzejewski-Szmek2012-07-101-4/+5
| | | | | | | | This should make the operation microscopically faster. A second difference is that strings with embedded NULLs will now be allowed, although I'm not really sure what is the impact of that change.
* Proper TypeError exception handling.David Strauss2012-06-261-0/+6
|
* Whitespace fixes. Drop header-style guards.David Strauss2012-06-261-8/+3
|
* Code clean-up.David Strauss2012-06-261-11/+7
|
* Allow varags.David Strauss2012-06-261-3/+24
|
* Use sd_journal_print() instead of send.David Strauss2012-06-251-1/+1
|
* Now works with import.David Strauss2012-06-251-1/+1
|
* Initial boilerplate work. Compiles without warnings. Untested.David Strauss2012-06-251-0/+34