diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-05-10 09:54:10 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-05-10 16:55:37 +0200 |
commit | aa7585fd8e4fac0c983208a388592ba37d3dff51 (patch) | |
tree | 2b5a1519222926369d0740df94715354d91c6ef8 /src/systemd | |
parent | afd15bbb4b6414b9356799c63029e36642dae8e4 (diff) | |
download | systemd-aa7585fd8e4fac0c983208a388592ba37d3dff51.tar.gz |
sd-event: add sd_event_source_disable_unrefp() too
I do not have any immediate use for it, but let's add it for completeness.
Diffstat (limited to 'src/systemd')
-rw-r--r-- | src/systemd/sd-event.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/systemd/sd-event.h b/src/systemd/sd-event.h index 226e1b8f26..b14c92697b 100644 --- a/src/systemd/sd-event.h +++ b/src/systemd/sd-event.h @@ -150,6 +150,7 @@ int sd_event_source_set_floating(sd_event_source *s, int b); /* Define helpers so that __attribute__((cleanup(sd_event_unrefp))) and similar may be used. */ _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_event, sd_event_unref); _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_event_source, sd_event_source_unref); +_SD_DEFINE_POINTER_CLEANUP_FUNC(sd_event_source, sd_event_source_disable_unref); _SD_END_DECLARATIONS; |