Re: [systemd-devel] question about sd_bus_slot_unref()

2015-09-01 Thread Jakub Sitnicki
Hi Li, On Tue, Sep 01, 2015 at 06:56 AM CEST, eshark wrote: > I wonder why the sd_bus_slot_unref() always returns NULL? I expect > that I can check whether the slot->n_ref ==0 by checking its return > value. It is my understanding that NULL is returned so that you can

Re: [systemd-devel] question about sd_bus_slot_unref()

2015-09-01 Thread Lennart Poettering
On Tue, 01.09.15 12:56, eshark (eshar...@163.com) wrote: > > Hi, all > > >     I wonder why  the sd_bus_slot_unref() always returns NULL?  I expect that > I can check whether the slot->n_ref ==0 by checking its return value. > That is > > >     _public_ sd_bus_slot*

[systemd-devel] question about sd_bus_slot_unref()

2015-08-31 Thread eshark
Hi, all     I wonder why  the sd_bus_slot_unref() always returns NULL?  I expect that I can check whether the slot->n_ref ==0 by checking its return value. That is     _public_ sd_bus_slot* sd_bus_slot_unref(sd_bus_slot *slot) { if (!slot) return NULL;