summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-03-18 18:04:17 +0100
committerJelmer Vernooij <jelmer@samba.org>2012-03-20 13:54:07 +0100
commit0b6dea9d664841d505acd75ac5449e953f60db74 (patch)
tree8267643134ec706a33d705e79c3f45217b072ecf /librpc
parentb4d35bee38a4cfd0eba26956dde2c5bb23cdb1c3 (diff)
downloadsamba-0b6dea9d664841d505acd75ac5449e953f60db74.tar.gz
samba-0b6dea9d664841d505acd75ac5449e953f60db74.tar.bz2
samba-0b6dea9d664841d505acd75ac5449e953f60db74.zip
libndr: Define trivial is_valid_policy_hnd as macro.
This makes the NDR namespace a bit clearer, in preparation of ABI checking.
Diffstat (limited to 'librpc')
-rw-r--r--librpc/ndr/libndr.h2
-rw-r--r--librpc/ndr/uuid.c5
2 files changed, 1 insertions, 6 deletions
diff --git a/librpc/ndr/libndr.h b/librpc/ndr/libndr.h
index c0a82b4ad9..1a4d2a1fbc 100644
--- a/librpc/ndr/libndr.h
+++ b/librpc/ndr/libndr.h
@@ -556,7 +556,7 @@ enum ndr_err_code ndr_pull_policy_handle(struct ndr_pull *ndr, int ndr_flags, st
enum ndr_err_code ndr_push_policy_handle(struct ndr_push *ndr, int ndr_flags, const struct policy_handle *r);
void ndr_print_policy_handle(struct ndr_print *ndr, const char *name, const struct policy_handle *r);
bool ndr_policy_handle_empty(const struct policy_handle *h);
-bool is_valid_policy_hnd(const struct policy_handle *hnd);
+#define is_valid_policy_hnd(hnd) (!ndr_policy_handle_empty(hnd))
bool ndr_policy_handle_equal(const struct policy_handle *hnd1,
const struct policy_handle *hnd2);
diff --git a/librpc/ndr/uuid.c b/librpc/ndr/uuid.c
index f440505873..b1436f73cb 100644
--- a/librpc/ndr/uuid.c
+++ b/librpc/ndr/uuid.c
@@ -336,11 +336,6 @@ _PUBLIC_ bool ndr_policy_handle_empty(const struct policy_handle *h)
return (h->handle_type == 0 && GUID_all_zero(&h->uuid));
}
-_PUBLIC_ bool is_valid_policy_hnd(const struct policy_handle *hnd)
-{
- return !ndr_policy_handle_empty(hnd);
-}
-
_PUBLIC_ bool ndr_policy_handle_equal(const struct policy_handle *hnd1,
const struct policy_handle *hnd2)
{