summaryrefslogtreecommitdiff
path: root/librpc/idl
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2012-02-28 14:56:37 +1100
committerAmitay Isaacs <amitay@gmail.com>2012-03-02 00:24:50 +1100
commite15fc28e6bdf4488940260c8a26459845283f617 (patch)
tree82634a55560bc9d0e0644207e0a665a30c86da4f /librpc/idl
parent0c8a10ecb0f5eca08ca58f86c18aa1bae25d1353 (diff)
downloadsamba-e15fc28e6bdf4488940260c8a26459845283f617.tar.gz
samba-e15fc28e6bdf4488940260c8a26459845283f617.tar.bz2
samba-e15fc28e6bdf4488940260c8a26459845283f617.zip
idl: dnsserver: Add DNS_RPC_RECORD_STRING data type for TXT DNS record
Diffstat (limited to 'librpc/idl')
-rw-r--r--librpc/idl/dnsserver.idl10
1 files changed, 8 insertions, 2 deletions
diff --git a/librpc/idl/dnsserver.idl b/librpc/idl/dnsserver.idl
index 5e29511379..506d72ef76 100644
--- a/librpc/idl/dnsserver.idl
+++ b/librpc/idl/dnsserver.idl
@@ -71,7 +71,7 @@ import "misc.idl", "dnsp.idl";
/* DNS_RECORD_TYPE is defined in dnsp.idl as dns_record_type */
/* DNS_RPC_NODE_FLAGS is defined in dnsp.idl as dns_rpc_node_flags */
- typedef [gensize] struct {
+ typedef [public,gensize] struct {
[value(strlen(str))] uint8 len;
[charset(UTF8)] uint8 str[len];
}
@@ -103,6 +103,12 @@ import "misc.idl", "dnsp.idl";
}
DNS_RPC_RECORD_NAME_PREFERENCE;
+ typedef [gensize,nopull,nopush] struct {
+ uint8 count;
+ DNS_RPC_NAME str[count];
+ }
+ DNS_RPC_RECORD_STRING;
+
typedef struct {
uint16 wPriority;
uint16 wWeight;
@@ -125,7 +131,7 @@ import "misc.idl", "dnsp.idl";
[case(DNS_TYPE_PTR)] DNS_RPC_NAME ptr;
[case(DNS_TYPE_HINFO)] DNS_RPC_NAME hinfo;
[case(DNS_TYPE_MX)] DNS_RPC_RECORD_NAME_PREFERENCE mx;
- [case(DNS_TYPE_TXT)] DNS_RPC_NAME name;
+ [case(DNS_TYPE_TXT)] DNS_RPC_RECORD_STRING txt;
[case(DNS_TYPE_AAAA)] ipv6address ipv6;
[case(DNS_TYPE_SRV)] DNS_RPC_RECORD_SRV srv;
[case(DNS_TYPE_DNAME)] DNS_RPC_NAME name;