diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2012-03-18 17:44:24 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2012-03-20 13:54:07 +0100 |
commit | b4d35bee38a4cfd0eba26956dde2c5bb23cdb1c3 (patch) | |
tree | d5439c01bf41cd1d33371ad669adb00d2073e038 /librpc/ndr | |
parent | f92b05b95575d45e91dcd2885fb4e2d202deb9ae (diff) | |
download | samba-b4d35bee38a4cfd0eba26956dde2c5bb23cdb1c3.tar.gz samba-b4d35bee38a4cfd0eba26956dde2c5bb23cdb1c3.tar.bz2 samba-b4d35bee38a4cfd0eba26956dde2c5bb23cdb1c3.zip |
libndr: Rename policy_handle_empty to ndr_policy_handle_empty.
This makes the NDR namespace a bit clearer, in preparation of ABI checking.
Diffstat (limited to 'librpc/ndr')
-rw-r--r-- | librpc/ndr/libndr.h | 2 | ||||
-rw-r--r-- | librpc/ndr/uuid.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/librpc/ndr/libndr.h b/librpc/ndr/libndr.h index e68f30369f..c0a82b4ad9 100644 --- a/librpc/ndr/libndr.h +++ b/librpc/ndr/libndr.h @@ -555,7 +555,7 @@ NDR_SCALAR_PROTO(double, double) enum ndr_err_code ndr_pull_policy_handle(struct ndr_pull *ndr, int ndr_flags, struct policy_handle *r); 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 policy_handle_empty(const struct policy_handle *h); +bool ndr_policy_handle_empty(const struct policy_handle *h); bool is_valid_policy_hnd(const struct policy_handle *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 9ebccfe29a..f440505873 100644 --- a/librpc/ndr/uuid.c +++ b/librpc/ndr/uuid.c @@ -331,14 +331,14 @@ _PUBLIC_ char *NS_GUID_string(TALLOC_CTX *mem_ctx, const struct GUID *guid) guid->node[4], guid->node[5]); } -_PUBLIC_ bool policy_handle_empty(const struct policy_handle *h) +_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 !policy_handle_empty(hnd); + return !ndr_policy_handle_empty(hnd); } _PUBLIC_ bool ndr_policy_handle_equal(const struct policy_handle *hnd1, |