summaryrefslogtreecommitdiff
path: root/source4/librpc/idl/opendb.idl
blob: 601c143bf2e39476eaa950ab83763753f15fde88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include "idl_types.h"

/*
   IDL structures for opendb code

   this defines the structures used in the opendb database code, in 
   ntvfs/common/opendb.c
*/

[
  pointer_default(unique)
]
interface opendb
{
	typedef struct {
		uint32 server;
		uint32 stream_id;
		uint32 share_access;
		uint32 access_mask;
		pointer file_handle;
		/* we need a per-entry delete on close, as well as a per-file
		   one, to cope with strange semantics on open */
		bool8 delete_on_close;
		uint32 oplock_level;
	} opendb_entry;

	typedef struct {
		uint32 server;
		pointer notify_ptr;
	} opendb_pending;

	typedef [public] struct {
		bool8 delete_on_close;
		utf8string path;
		uint32 num_entries;
		opendb_entry entries[num_entries];
		uint32 num_pending;
		opendb_pending pending[num_pending];
	} opendb_file;
}