summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-01-25 15:46:11 +0100
committerGünther Deschner <gd@samba.org>2008-01-25 17:21:29 +0100
commitc04b738a136485a8f1df21fbccd1c418ee6fd444 (patch)
tree0e6bd64c7f0e43a2e8a2a21d2fdd310a9cafc723 /source3
parenta30361ede36af7ef9d8f6d723798a07b360c813b (diff)
downloadsamba-c04b738a136485a8f1df21fbccd1c418ee6fd444.tar.gz
samba-c04b738a136485a8f1df21fbccd1c418ee6fd444.tar.bz2
samba-c04b738a136485a8f1df21fbccd1c418ee6fd444.zip
Add LIBNETAPI_LOCAL_SERVER() macro.
Guenther (This used to be commit 4bdcf07bcc3aaf7c3f7245cfdda06433bcf4ae60)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/netapi/netapi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/lib/netapi/netapi.h b/source3/lib/netapi/netapi.h
index c2f1b488db..002fc37762 100644
--- a/source3/lib/netapi/netapi.h
+++ b/source3/lib/netapi/netapi.h
@@ -36,6 +36,11 @@
/****************************************************************
****************************************************************/
+#define LIBNETAPI_LOCAL_SERVER(x) (!x || is_myname_or_ipaddr(x))
+
+/****************************************************************
+****************************************************************/
+
struct libnetapi_ctx {
char *debuglevel;
char *error_string;