s4:drsuapi: move struct drsuapi_getncchanges_state to the top of getncchanges.c
authorStefan Metzmacher <metze@samba.org>
Mon, 17 Dec 2012 13:08:56 +0000 (14:08 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 1 Jan 2013 18:28:07 +0000 (19:28 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/rpc_server/drsuapi/getncchanges.c

index 09406d6..00988fc 100644 (file)
 #include "auth/session.h"
 #include "dsdb/common/util.h"
 
+/* state of a partially completed getncchanges call */
+struct drsuapi_getncchanges_state {
+       struct GUID *guids;
+       uint32_t num_records;
+       uint32_t num_processed;
+       struct ldb_dn *ncRoot_dn;
+       bool is_schema_nc;
+       uint64_t min_usn;
+       uint64_t highest_usn;
+       struct ldb_dn *last_dn;
+       struct drsuapi_DsReplicaLinkedAttribute *la_list;
+       uint32_t la_count;
+       bool la_sorted;
+       uint32_t la_idx;
+       struct drsuapi_DsReplicaCursorCtrEx *uptodateness_vector;
+};
+
 /*
   build a DsReplicaObjectIdentifier from a ldb msg
  */
@@ -1147,23 +1164,6 @@ static WERROR getncchanges_change_master(struct drsuapi_bind_state *b_state,
        return WERR_OK;
 }
 
-/* state of a partially completed getncchanges call */
-struct drsuapi_getncchanges_state {
-       struct GUID *guids;
-       uint32_t num_records;
-       uint32_t num_processed;
-       struct ldb_dn *ncRoot_dn;
-       bool is_schema_nc;
-       uint64_t min_usn;
-       uint64_t highest_usn;
-       struct ldb_dn *last_dn;
-       struct drsuapi_DsReplicaLinkedAttribute *la_list;
-       uint32_t la_count;
-       bool la_sorted;
-       uint32_t la_idx;
-       struct drsuapi_DsReplicaCursorCtrEx *uptodateness_vector;
-};
-
 /*
   see if this getncchanges request includes a request to reveal secret information
  */