X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=man%2Fsd_journal_add_match.xml;h=83f7fe9242d840df42a72ce586b07cf84dd72023;hb=5057d73ba1bb016c9325d0a7fdb84519d3443622;hp=7c64329aed8246c3d022bee92a6f053571e589cd;hpb=cdc31c592af3d5d9b1977b81e45571de12d5df5b;p=thirdparty%2Fsystemd.git diff --git a/man/sd_journal_add_match.xml b/man/sd_journal_add_match.xml index 7c64329aed8..83f7fe9242d 100644 --- a/man/sd_journal_add_match.xml +++ b/man/sd_journal_add_match.xml @@ -1,40 +1,13 @@ - + - - - + sd_journal_add_match systemd - - - - Developer - Lennart - Poettering - lennart@poettering.net - - @@ -165,21 +138,7 @@ returns nothing. - - Notes - - All functions listed here are thread-agnostic and only a single thread may operate - on a given sd_journal object. - - The sd_journal_add_match(), - sd_journal_add_disjunction(), - sd_journal_add_conjunction() and - sd_journal_flush_matches() - interfaces are available as a shared library, which can - be compiled and linked to with the - libsystemd pkg-config1 - file. - + Examples @@ -190,7 +149,7 @@ message ID 03bb1dab98ab4ecfbf6fff2738bdd964 coming from any service (this example lacks the necessary error checking): - ... + … int add_matches(sd_journal *j) { sd_journal_add_match(j, "_SYSTEMD_UNIT=avahi-daemon.service", 0); sd_journal_add_match(j, "PRIORITY=0", 0); @@ -200,7 +159,6 @@ int add_matches(sd_journal *j) { sd_journal_add_disjunction(j); sd_journal_add_match(j, "MESSAGE_ID=03bb1dab98ab4ecfbf6fff2738bdd964", 0); } -