Add LIBNETAPI_LOCAL_SERVER() macro.
authorGünther Deschner <gd@samba.org>
Fri, 25 Jan 2008 14:46:11 +0000 (15:46 +0100)
committerGünther Deschner <gd@samba.org>
Fri, 25 Jan 2008 16:21:29 +0000 (17:21 +0100)
Guenther
(This used to be commit 4bdcf07bcc3aaf7c3f7245cfdda06433bcf4ae60)

source3/lib/netapi/netapi.h

index c2f1b488db798252f8003b09017b3f39b9e1dcb6..002fc37762038cbbfe55bafe5e52cc9cc6421941 100644 (file)
 /****************************************************************
 ****************************************************************/
 
+#define LIBNETAPI_LOCAL_SERVER(x) (!x || is_myname_or_ipaddr(x))
+
+/****************************************************************
+****************************************************************/
+
 struct libnetapi_ctx {
        char *debuglevel;
        char *error_string;