summaryrefslogtreecommitdiff
path: root/source3/include/rpc_misc.h
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-09-11 22:02:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:51:22 -0500
commit5e1146ab5845169aba57dcd216f88589276e5df8 (patch)
treed82b7eaebe963350ba974378aff5f0e258a8f0f8 /source3/include/rpc_misc.h
parent68a2430c526ae4b94ecec9690a64936299808140 (diff)
downloadsamba-5e1146ab5845169aba57dcd216f88589276e5df8.tar.gz
samba-5e1146ab5845169aba57dcd216f88589276e5df8.tar.bz2
samba-5e1146ab5845169aba57dcd216f88589276e5df8.zip
r18404: * swap from POLICY_HND to the struct policy_handle from ndr/misc.h
* move OUR_HANDLE macro to include/rpc_misc.h (This used to be commit 2b37079af2f569df7a58878150a61980c6fe06ee)
Diffstat (limited to 'source3/include/rpc_misc.h')
-rw-r--r--source3/include/rpc_misc.h27
1 files changed, 5 insertions, 22 deletions
diff --git a/source3/include/rpc_misc.h b/source3/include/rpc_misc.h
index 24c7150433..91e0115b69 100644
--- a/source3/include/rpc_misc.h
+++ b/source3/include/rpc_misc.h
@@ -97,29 +97,12 @@ typedef struct {
uint32 handle; /* enumeration handle */
} ENUM_HND;
+typedef struct policy_handle POLICY_HND;
-
-/**********************************************************************
- * RPC policy handle used pretty much everywhere
- **********************************************************************/
-
-typedef struct {
- uint32 data1;
- uint32 data2;
- uint16 data3;
- uint16 data4;
- uint8 data5[8];
-#ifdef __INSURE__
-
- /* To prevent the leakage of policy handles mallocate a bit of
- memory when a policy handle is created and free it when the
- handle is closed. This should cause Insure to flag an error
- when policy handles are overwritten or fall out of scope without
- being freed. */
-
- char *marker;
-#endif
-} POLICY_HND;
+#define OUR_HANDLE(hnd) (((hnd)==NULL) ? "NULL" :\
+ ( IVAL((hnd)->uuid.node,2) == (uint32)sys_getpid() ? "OURS" : \
+ "OTHER")), ((unsigned int)IVAL((hnd)->uuid.node,2)),\
+ ((unsigned int)sys_getpid() )
/**********************************************************************