summaryrefslogtreecommitdiffstats
path: root/librpc/idl/notify.idl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-15 01:23:36 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-15 01:23:36 +0200
commit45f97c4614e9fe7d4828eb47e32ebe0ba03893b5 (patch)
tree60cd82cb2717180b19dabb6a8f60de6e0484d1f9 /librpc/idl/notify.idl
parent7f24027e024bc56cb95b76ee0f9838d609e903cb (diff)
downloadsamba-45f97c4614e9fe7d4828eb47e32ebe0ba03893b5.tar.gz
samba-45f97c4614e9fe7d4828eb47e32ebe0ba03893b5.tar.xz
samba-45f97c4614e9fe7d4828eb47e32ebe0ba03893b5.zip
Move shared DCE/RPC IDL files to root IDL dir.
Diffstat (limited to 'librpc/idl/notify.idl')
-rw-r--r--librpc/idl/notify.idl58
1 files changed, 58 insertions, 0 deletions
diff --git a/librpc/idl/notify.idl b/librpc/idl/notify.idl
new file mode 100644
index 00000000000..6f9ad25f092
--- /dev/null
+++ b/librpc/idl/notify.idl
@@ -0,0 +1,58 @@
+#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
+*/
+
+import "misc.idl";
+
+[
+ 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;
+
+}