diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2012-03-18 18:04:17 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2012-03-20 13:54:07 +0100 |
commit | 0b6dea9d664841d505acd75ac5449e953f60db74 (patch) | |
tree | 8267643134ec706a33d705e79c3f45217b072ecf /librpc | |
parent | b4d35bee38a4cfd0eba26956dde2c5bb23cdb1c3 (diff) | |
download | samba-0b6dea9d664841d505acd75ac5449e953f60db74.tar.gz |
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.h | 2 | ||||
-rw-r--r-- | librpc/ndr/uuid.c | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/librpc/ndr/libndr.h b/librpc/ndr/libndr.h index c0a82b4ad92..1a4d2a1fbc0 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 f4405058734..b1436f73cb3 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) { |