summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-10-29 18:57:22 +0000
committerLuke Leighton <lkcl@samba.org>1999-10-29 18:57:22 +0000
commita8b8b8ac3b18437aee6e91749f0e76ef3a04d030 (patch)
tree86568065255ee7afd1b3d53ecb65ee1a6f34f26f /source3/include
parentd0fd259514a4cc4e7ec2b021ff68fe0e3fd1bf09 (diff)
downloadsamba-a8b8b8ac3b18437aee6e91749f0e76ef3a04d030.tar.gz
samba-a8b8b8ac3b18437aee6e91749f0e76ef3a04d030.tar.bz2
samba-a8b8b8ac3b18437aee6e91749f0e76ef3a04d030.zip
using #defines for function prototypes
(This used to be commit 4a44cccf4401e0ce01303459011ac64805c53561)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/ntdomain.h8
-rw-r--r--source3/include/proto.h6
2 files changed, 11 insertions, 3 deletions
diff --git a/source3/include/ntdomain.h b/source3/include/ntdomain.h
index 110901ec3e..87a438841b 100644
--- a/source3/include/ntdomain.h
+++ b/source3/include/ntdomain.h
@@ -146,5 +146,13 @@ struct acct_info
uint32 rid; /* domain-relative RID */
};
+/*
+ * higher order functions for use with msrpc client code
+ */
+
+#define GROUP_FN(fn) void (*fn)(char*, DOM_SID*, uint32, char*)
+#define GROUP_INFO_FN(fn) void (*fn)(char*, DOM_SID*, uint32, GROUP_INFO_CTR *)
+#define GROUP_MEM_FN(fn) void(*fn)(char*, DOM_SID*, uint32, char*, uint32, uint32*, char**, uint32*)
+
#endif /* _NT_DOMAIN_H */
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 82984e8f92..5a47265ad1 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -3252,9 +3252,9 @@ BOOL sam_query_groupmem(struct cli_state *cli, uint16 fnum,
uint32 msrpc_sam_enum_groups(struct client_info *info,
struct acct_info **sam,
uint32 *num_sam_entries,
- void (*grp_fn)(char*, DOM_SID*, uint32, char*),
- void (*grp_inf_fn)(char*, DOM_SID*, uint32, GROUP_INFO_CTR *),
- void(*grp_mem_fn)(char*, DOM_SID*, uint32, char*, uint32, uint32*, char**, uint32*));
+ GROUP_FN(grp_fn),
+ GROUP_INFO_FN(grp_inf_fn),
+ GROUP_MEM_FN(grp_mem_fn));
void cmd_sam_enum_groups(struct client_info *info);
/*The following definitions come from rpcclient/cmd_srvsvc.c */