s4-srvsvc: merge srvsvc_NetSrvSetInfo from s3 idl.
[kai/samba-autobuild/.git] / source4 / 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 "security.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                 pointer fd;
24                 /* we need a per-entry delete on close, as well as a per-file
25                    one, to cope with strange semantics on open */
26                 boolean8 delete_on_close;
27                 boolean8 allow_level_II_oplock;
28                 uint32 oplock_level;
29         } opendb_entry;
30
31         typedef struct {
32                 server_id server;
33                 pointer notify_ptr;
34         } opendb_pending;
35
36         typedef [public] struct {
37                 boolean8 delete_on_close;
38                 NTTIME open_write_time;
39                 NTTIME changed_write_time;
40                 utf8string path;
41                 uint32 num_entries;
42                 opendb_entry entries[num_entries];
43                 uint32 num_pending;
44                 opendb_pending pending[num_pending];
45         } opendb_file;
46 }