From: Stefan Metzmacher Date: Wed, 3 Mar 2010 08:45:01 +0000 (+0100) Subject: s4:libcli/wrepl: avoid neested named structures X-Git-Tag: samba-3.6.0pre1~4754 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0dfc77891509f056352748e3082794cb360200c7;p=thirdparty%2Fsamba.git s4:libcli/wrepl: avoid neested named structures metze --- diff --git a/source4/libcli/wrepl/winsrepl.h b/source4/libcli/wrepl/winsrepl.h index ec1fb6bb593..a69d3d83c37 100644 --- a/source4/libcli/wrepl/winsrepl.h +++ b/source4/libcli/wrepl/winsrepl.h @@ -129,6 +129,24 @@ struct wrepl_pull_table { (type | (state << 2) | (node << 5) | \ (is_static ? WREPL_FLAGS_IS_STATIC : 0)) +struct wrepl_address { + const char *owner; + const char *address; +}; + +struct wrepl_name { + struct nbt_name name; + enum wrepl_name_type type; + enum wrepl_name_state state; + enum wrepl_name_node node; + bool is_static; + uint32_t raw_flags; + uint64_t version_id; + const char *owner; + uint32_t num_addresses; + struct wrepl_address *addresses; +}; + /* a full pull replication */ @@ -139,21 +157,7 @@ struct wrepl_pull_names { } in; struct { uint32_t num_names; - struct wrepl_name { - struct nbt_name name; - enum wrepl_name_type type; - enum wrepl_name_state state; - enum wrepl_name_node node; - bool is_static; - uint32_t raw_flags; - uint64_t version_id; - const char *owner; - uint32_t num_addresses; - struct wrepl_address { - const char *owner; - const char *address; - } *addresses; - } *names; + struct wrepl_name *names; } out; };