From 10572d1bf46da4e5dce2e9744778d8cffa312cb0 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 17 Nov 2008 16:28:34 +0100 Subject: s3-libnet-samsync: add samsync_ops. Guenther --- source3/libnet/libnet_samsync.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'source3/libnet/libnet_samsync.h') diff --git a/source3/libnet/libnet_samsync.h b/source3/libnet/libnet_samsync.h index 4a356e2eed..42bf8d1537 100644 --- a/source3/libnet/libnet_samsync.h +++ b/source3/libnet/libnet_samsync.h @@ -32,6 +32,21 @@ typedef NTSTATUS (*samsync_delta_fn_t)(TALLOC_CTX *, struct netr_DELTA_ENUM_ARRAY *, bool, struct samsync_context *); +struct samsync_ops { + NTSTATUS (*startup)(TALLOC_CTX *mem_ctx, + struct samsync_context *ctx, + enum netr_SamDatabaseID id, + uint64_t *sequence_num); + NTSTATUS (*process_objects)(TALLOC_CTX *mem_ctx, + enum netr_SamDatabaseID id, + struct netr_DELTA_ENUM_ARRAY *array, + bool last_query, + struct samsync_context *ctx); + NTSTATUS (*finish)(TALLOC_CTX *mem_ctx, + struct samsync_context *ctx, + enum netr_SamDatabaseID id, + uint64_t sequence_num); +}; struct samsync_object { uint16_t database_id; @@ -64,6 +79,9 @@ struct samsync_context { struct samsync_object *objects; struct rpc_pipe_client *cli; + + const struct samsync_ops *ops; + samsync_delta_fn_t delta_fn; void *private_data; }; -- cgit