2006-03-21 14:47:24 +03:00
#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 {
2007-01-10 13:52:09 +03:00
server_id server;
2006-04-05 10:25:32 +04:00
uint32 filter; /* filter to apply in this directory */
uint32 subdir_filter; /* filter to apply in child directories */
2006-03-21 14:47:24 +03:00
utf8string path;
2006-04-07 14:36:54 +04:00
uint32 path_len; /* saves some computation on search */
2007-01-23 18:06:41 +03:00
pointer private_data;
2006-03-21 14:47:24 +03:00
} notify_entry;
2006-04-07 14:36:54 +04:00
/*
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;
2006-03-21 14:47:24 +03:00
uint32 num_entries;
notify_entry entries[num_entries];
2006-04-07 14:36:54 +04:00
} notify_depth;
typedef [public] struct {
uint32 num_depths;
notify_depth depth[num_depths];
2006-03-21 14:47:24 +03:00
} notify_array;
/* structure sent between servers in notify messages */
typedef [public] struct {
uint32 action;
utf8string path;
2007-01-23 18:06:41 +03:00
pointer private_data;
2006-03-21 14:47:24 +03:00
} notify_event;
}