summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-07-29 15:35:45 +0200
committerStefan Metzmacher <metze@samba.org>2009-07-31 14:38:36 +0200
commitf6c0ba9869ded22da666b974448fa6333f8a9ad3 (patch)
treef1d308aa6406cd10ecc16690c0b0b0c142ad1d0e /source4/librpc
parent639df54cf5289f2d74c00092f654458f1b4b834e (diff)
downloadsamba-f6c0ba9869ded22da666b974448fa6333f8a9ad3.tar.gz
samba-f6c0ba9869ded22da666b974448fa6333f8a9ad3.tar.bz2
samba-f6c0ba9869ded22da666b974448fa6333f8a9ad3.zip
winsif.idl: add definition of WinsRecordAction()
metze
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/idl/winsif.idl54
1 files changed, 53 insertions, 1 deletions
diff --git a/source4/librpc/idl/winsif.idl b/source4/librpc/idl/winsif.idl
index 53a0003f70..af7f43dd54 100644
--- a/source4/librpc/idl/winsif.idl
+++ b/source4/librpc/idl/winsif.idl
@@ -11,7 +11,59 @@ import "nbt.idl";
{
/*****************/
/* Function 0x00 */
- void WinsRecordAction();
+ typedef struct {
+ uint8 type;
+ uint32 length;
+ ipv4address addr;
+ } winsif_Address;
+
+ typedef enum {
+ WINSIF_ACTION_INSERT = 0x0000,
+ WINSIF_ACTION_DELETE = 0x0001,
+ WINSIF_ACTION_RELEASE = 0x0002,
+ WINSIF_ACTION_MODIFY = 0x0003,
+ WINSIF_ACTION_QUERY = 0x0004
+ } winsif_Action;
+
+ typedef enum {
+ WINSIF_RECORD_UNIQUE_NAME = 0x0000,
+ WINSIF_RECORD_GROUP_NAME = 0x0001,
+ WINSIF_RECORD_SGROUP_NAME = 0x0002,
+ WINSIF_RECORD_MHOMED_NAME = 0x0003
+ } winsif_RecordType;
+
+ typedef [enum8bit] enum {
+ WINSIF_NODE_B = 0x00,
+ WINSIF_NODE_P = 0x01,
+ WINSIF_NODE_H = 0x03
+ } winsif_NodeType;
+
+ typedef [v1_enum] enum {
+ WINSIF_RECORD_ACTIVE = 0x00000000,
+ WINSIF_RECORD_RELEASED = 0x00000001,
+ WINSIF_RECORD_TOMBSTONE = 0x00000002,
+ WINSIF_RECORD_DELETED = 0x00000003
+ } winsif_RecordState;
+
+ typedef struct {
+ winsif_Action cmd;
+ wrepl_nbt_name *name;
+ [value(name?16:0)] uint32 name_len;
+ winsif_RecordType record_type;
+ uint32 num_of_addresses;
+ [size_is(num_of_addresses)] winsif_Address *addresses;
+ winsif_Address address;
+ hyper version_number;
+ winsif_NodeType node_type;
+ ipv4address owner_address;
+ winsif_RecordState record_state;
+ boolean32 is_static;
+ time_t expire_time;
+ } winsif_RecordAction;
+
+ WERROR winsif_WinsRecordAction(
+ [in,out,ref] winsif_RecordAction **record_action
+ );
/*****************/
/* Function 0x01 */