summaryrefslogtreecommitdiff
path: root/source3/librpc/idl
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-01-31 11:48:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:33 -0500
commit8bfa9351614115ceb8bfaa6f76355ddc14ec248b (patch)
treed74dcfe5ed206d06f2c036d81a45f094013619b2 /source3/librpc/idl
parent05f298b47e4493ccf04b8a1698c0593c8a0deaac (diff)
downloadsamba-8bfa9351614115ceb8bfaa6f76355ddc14ec248b.tar.gz
samba-8bfa9351614115ceb8bfaa6f76355ddc14ec248b.tar.bz2
samba-8bfa9351614115ceb8bfaa6f76355ddc14ec248b.zip
r21074: Preparation for the import of samba4 notify: Add the file notify.idl and the
resulting marshalling/unmarshalling routines in gen_ndr/ Volker (This used to be commit a2ea54c23456925a8ed317edb1adf82d074041fc)
Diffstat (limited to 'source3/librpc/idl')
-rw-r--r--source3/librpc/idl/notify.idl56
1 files changed, 56 insertions, 0 deletions
diff --git a/source3/librpc/idl/notify.idl b/source3/librpc/idl/notify.idl
new file mode 100644
index 0000000000..c4e633c254
--- /dev/null
+++ b/source3/librpc/idl/notify.idl
@@ -0,0 +1,56 @@
+#include "idl_types.h"
+
+/*
+ IDL structures for notify change code
+
+ this defines the structures used in the notify database code, and
+ the change notify buffers
+*/
+
+[
+ pointer_default(unique)
+]
+interface notify
+{
+
+ /* structure used in the notify database */
+ typedef [public] struct {
+ server_id server;
+ uint32 filter; /* filter to apply in this directory */
+ uint32 subdir_filter; /* filter to apply in child directories */
+ utf8string path;
+ uint32 path_len; /* saves some computation on search */
+ pointer private_data;
+ } notify_entry;
+
+ /*
+ to allow for efficient search for matching entries, we
+ divide them by the directory depth, with a separate array
+ per depth. The entries within each depth are sorted by path,
+ allowing for a bisection search.
+
+ The max_mask and max_mask_subdir at each depth is the
+ bitwise or of the filters and subdir filters for all entries
+ at that depth. This allows a depth to be quickly skipped if
+ no entries will match the target filter
+ */
+ typedef struct {
+ uint32 max_mask;
+ uint32 max_mask_subdir;
+ uint32 num_entries;
+ notify_entry entries[num_entries];
+ } notify_depth;
+
+ typedef [public] struct {
+ uint32 num_depths;
+ notify_depth depth[num_depths];
+ } notify_array;
+
+ /* structure sent between servers in notify messages */
+ typedef [public] struct {
+ uint32 action;
+ utf8string path;
+ pointer private_data;
+ } notify_event;
+
+}