X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=man%2Fsd_event_source_unref.xml;h=6bc122e1c853c707b1a103cb2bc8a171c8e9d256;hp=3c1a64dc7f01a7e13013a15bbee661430a5f19d8;hb=f7e8917981217e60a6b6071c2a1ae6367890eea0;hpb=c11dd1c49b997de4d222f302070387f82d8068ca diff --git a/man/sd_event_source_unref.xml b/man/sd_event_source_unref.xml index 3c1a64dc7..6bc122e1c 100644 --- a/man/sd_event_source_unref.xml +++ b/man/sd_event_source_unref.xml @@ -44,6 +44,7 @@ sd_event_source_unref + sd_event_source_unrefp sd_event_source_ref Increase or decrease event source reference counters @@ -58,6 +59,11 @@ sd_event_source *source + + void sd_event_source_unrefp + sd_event_source **source + + sd_event_source* sd_event_source_ref sd_event_source *source @@ -80,12 +86,23 @@ the reference counter reaches zero it is removed from its event loop object and destroyed. + sd_event_source_unrefp() is similar to + sd_event_source_unref() but takes a pointer to a + pointer to an sd_event_source object. This call is useful in + conjunction with GCC's and LLVM's Clean-up + Variable Attribute. Note that this function is defined as + inline function. + sd_event_source_ref() may be used to increase by one the reference counter of the event source object specified as source. - Both functions execute no operation if the passed event - source object is NULL. + sd_event_source_unref(), + sd_bus_creds_unrefp() and + sd_bus_creds_ref() execute no operation if + the passed event source object is + NULL. Note that event source objects stay alive and may be dispatched as long as they have a reference counter greater than