diff options
Diffstat (limited to 'avahi-core/server.h')
-rw-r--r-- | avahi-core/server.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/avahi-core/server.h b/avahi-core/server.h index 1723250..300ae8b 100644 --- a/avahi-core/server.h +++ b/avahi-core/server.h @@ -175,4 +175,11 @@ void avahi_server_increase_host_rr_pending(AvahiServer *s); int avahi_server_set_errno(AvahiServer *s, int error); +#define AVAHI_CHECK_VALIDITY_RETURN_NULL(server, expression, error) { \ + if (!(expression)) { \ + avahi_server_set_errno((server), (error)); \ + return NULL; \ + } \ +} + #endif |