summaryrefslogtreecommitdiff
path: root/source3/include/ntdomain.h
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-04-29 15:22:29 +0200
committerGünther Deschner <gd@samba.org>2011-04-29 21:01:04 +0200
commitc7d38f49c8bcf5899b186ebb495c31f4ade3c8d6 (patch)
tree78e342f6ebc424a3e3cdbf2735fd728e8cd0e185 /source3/include/ntdomain.h
parentfaf11751255202274505d72848c54ee6e5dce7b6 (diff)
downloadsamba-c7d38f49c8bcf5899b186ebb495c31f4ade3c8d6.tar.gz
samba-c7d38f49c8bcf5899b186ebb495c31f4ade3c8d6.tar.bz2
samba-c7d38f49c8bcf5899b186ebb495c31f4ade3c8d6.zip
s3-proto: move rpc_server/rpc_handles.c protos to ntdomain.h
Guenther
Diffstat (limited to 'source3/include/ntdomain.h')
-rw-r--r--source3/include/ntdomain.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/source3/include/ntdomain.h b/source3/include/ntdomain.h
index 077924d6f4..9cd00da21a 100644
--- a/source3/include/ntdomain.h
+++ b/source3/include/ntdomain.h
@@ -207,4 +207,32 @@ struct api_struct {
bool (*fn) (struct pipes_struct *);
};
+/* The following definitions come from rpc_server/rpc_handles.c */
+
+size_t num_pipe_handles(struct pipes_struct *p);
+bool init_pipe_handles(struct pipes_struct *p, const struct ndr_syntax_id *syntax);
+bool create_policy_hnd(struct pipes_struct *p, struct policy_handle *hnd, void *data_ptr);
+bool find_policy_by_hnd(struct pipes_struct *p, const struct policy_handle *hnd,
+ void **data_p);
+bool close_policy_hnd(struct pipes_struct *p, struct policy_handle *hnd);
+void close_policy_by_pipe(struct pipes_struct *p);
+bool pipe_access_check(struct pipes_struct *p);
+
+void *_policy_handle_create(struct pipes_struct *p, struct policy_handle *hnd,
+ uint32_t access_granted, size_t data_size,
+ const char *type, NTSTATUS *pstatus);
+#define policy_handle_create(_p, _hnd, _access, _type, _pstatus) \
+ (_type *)_policy_handle_create((_p), (_hnd), (_access), sizeof(_type), #_type, \
+ (_pstatus))
+
+void *_policy_handle_find(struct pipes_struct *p,
+ const struct policy_handle *hnd,
+ uint32_t access_required, uint32_t *paccess_granted,
+ const char *name, const char *location,
+ NTSTATUS *pstatus);
+#define policy_handle_find(_p, _hnd, _access_required, _access_granted, _type, _pstatus) \
+ (_type *)_policy_handle_find((_p), (_hnd), (_access_required), \
+ (_access_granted), #_type, __location__, (_pstatus))
+
+
#endif /* _NT_DOMAIN_H */