mirror of
https://github.com/samba-team/samba.git
synced 2024-12-29 11:21:54 +03:00
1cd4339b9a
uint32_t server_id
to
struct server_id server_id;
which allows a server ID to have an node number. The node number will
be zero in non-clustered case. This is the most basic hook needed for
clustering, and ctdb.
(This used to be commit 2365abaa99
)
43 lines
832 B
Plaintext
43 lines
832 B
Plaintext
#include "idl_types.h"
|
|
|
|
/*
|
|
IDL structures for opendb code
|
|
|
|
this defines the structures used in the opendb database code, in
|
|
ntvfs/common/opendb.c
|
|
*/
|
|
|
|
import "misc.idl";
|
|
|
|
[
|
|
pointer_default(unique)
|
|
]
|
|
interface opendb
|
|
{
|
|
typedef struct {
|
|
server_id 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 */
|
|
boolean8 delete_on_close;
|
|
uint32 oplock_level;
|
|
} opendb_entry;
|
|
|
|
typedef struct {
|
|
server_id server;
|
|
pointer notify_ptr;
|
|
} opendb_pending;
|
|
|
|
typedef [public] struct {
|
|
boolean8 delete_on_close;
|
|
utf8string path;
|
|
uint32 num_entries;
|
|
opendb_entry entries[num_entries];
|
|
uint32 num_pending;
|
|
opendb_pending pending[num_pending];
|
|
} opendb_file;
|
|
}
|