From 9b9c23b19be5a90821e1075a76f8b94fdb2424e2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 1 Feb 2005 04:12:44 +0000 Subject: r5155: define ipv4address as a based IDL type, mapped to a "const char *" in the header, and defined on the wire as a 4 byte network byte order IP. This means the calling code doesn't have to worry about network byte order conversions. (This used to be commit 72048e37179dd5b9ada0c5280d2f0d8c23d1a17d) --- source4/build/pidl/util.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4/build/pidl') diff --git a/source4/build/pidl/util.pm b/source4/build/pidl/util.pm index c57322a462..112b617806 100644 --- a/source4/build/pidl/util.pm +++ b/source4/build/pidl/util.pm @@ -302,6 +302,7 @@ my %type_alignments = "WERROR" => 4, "boolean32" => 4, "unsigned32" => 4, + "ipv4address" => 4, "hyper" => 8, "NTTIME_hyper" => 8 ); @@ -538,7 +539,8 @@ my %type_mappings = "udlong" => "uint64_t", "hyper" => "uint64_t", "NTTIME_1sec" => "NTTIME", - "NTTIME_hyper" => "NTTIME" + "NTTIME_hyper" => "NTTIME", + "ipv4address" => "const char *" ); # map from a IDL type to a C header type -- cgit