X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=man%2Fsd_bus_new.xml;h=59117676fde93e12cea8ed5f675d7775683594fc;hb=651b3b6c923951096894b6fe1ca3b1a6f3b16404;hp=d281b5dd44d123c4e9bb4c59af0d488f9d4c9fd6;hpb=5fa3be82e5c7359d3ba92c21648b81433ddd0d3c;p=thirdparty%2Fsystemd.git diff --git a/man/sd_bus_new.xml b/man/sd_bus_new.xml index d281b5dd44d..59117676fde 100644 --- a/man/sd_bus_new.xml +++ b/man/sd_bus_new.xml @@ -1,40 +1,16 @@ - + - + sd_bus_new systemd - - - - A monkey with a typewriter - Zbigniew - Jędrzejewski-Szmek - zbyszek@in.waw.pl - - @@ -72,7 +48,7 @@ void sd_bus_unrefp - sd_bus **bus + sd_bus **busp @@ -120,19 +96,21 @@ block is left: { - __attribute__((cleanup(sd_bus_unrefp)) sd_bus *bus = NULL; - int r; - … - r = sd_bus_default(&bus); - if (r < 0) - fprintf(stderr, "Failed to allocate bus: %s\n", strerror(-r)); - … + __attribute__((cleanup(sd_bus_unrefp)) sd_bus *bus = NULL; + int r; + … + r = sd_bus_default(&bus); + if (r < 0) + fprintf(stderr, "Failed to allocate bus: %s\n", strerror(-r)); + … } - sd_bus_ref(), - sd_bus_unref() and - sd_bus_unrefp() execute no operation if the - passed in bus object is NULL. + sd_bus_ref() and sd_bus_unref() + execute no operation if the passed in bus object address is + NULL. sd_bus_unrefp() will first + dereference its argument, which must not be NULL, and will + execute no operation if that is NULL. + @@ -163,15 +141,7 @@ - - Notes - - sd_bus_new() and other functions - described here are available as a shared library, which can be - compiled and linked to with the - libsystemd pkg-config1 - file. - + See Also