eaa626e89dee44a2efb8b4d2466d1839864c8f47
[jelmer/samba4-debian.git] / source / librpc / idl / opendb.idl
1 #include "idl_types.h"
2
3 /*
4    IDL structures for opendb code
5
6    this defines the structures used in the opendb database code, in 
7    ntvfs/common/opendb.c
8 */
9
10 import "misc.idl";
11
12 [
13   pointer_default(unique)
14 ]
15 interface opendb
16 {
17         typedef struct {
18                 server_id server;
19                 uint32 stream_id;
20                 uint32 share_access;
21                 uint32 access_mask;
22                 pointer file_handle;
23                 /* we need a per-entry delete on close, as well as a per-file
24                    one, to cope with strange semantics on open */
25                 boolean8 delete_on_close;
26                 uint32 oplock_level;
27         } opendb_entry;
28
29         typedef struct {
30                 server_id server;
31                 pointer notify_ptr;
32         } opendb_pending;
33
34         typedef [public] struct {
35                 boolean8 delete_on_close;
36                 utf8string path;
37                 uint32 num_entries;
38                 opendb_entry entries[num_entries];
39                 uint32 num_pending;
40                 opendb_pending pending[num_pending];
41         } opendb_file;
42 }