diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-05-03 14:38:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:16:29 -0500 |
commit | 35a05d1dc0c551656d9caeea87a9925182d717bc (patch) | |
tree | 24a0829aff6680175788ff6f87a3a5672bb6fc8f /source4/libnet/libnet_vampire.h | |
parent | eb3b5f28d4686802070a770ef29bb71dd4d82d54 (diff) | |
download | samba-35a05d1dc0c551656d9caeea87a9925182d717bc.tar.gz samba-35a05d1dc0c551656d9caeea87a9925182d717bc.tar.bz2 samba-35a05d1dc0c551656d9caeea87a9925182d717bc.zip |
r6603: More work on the samdump puzzle. This implements a function pointer
callback interface, so we can start dumping into more than just stdout
soon.
Also use the enums instead of uint32 where possible and valid.
Andrew Bartlett
(This used to be commit f0c67a4a24dbd7fc32fc864d61a21eeee587178e)
Diffstat (limited to 'source4/libnet/libnet_vampire.h')
-rw-r--r-- | source4/libnet/libnet_vampire.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/source4/libnet/libnet_vampire.h b/source4/libnet/libnet_vampire.h index 22ac1606bd..4777f51b0b 100644 --- a/source4/libnet/libnet_vampire.h +++ b/source4/libnet/libnet_vampire.h @@ -21,6 +21,30 @@ #include "librpc/gen_ndr/ndr_netlogon.h" /* struct and enum for doing a remote domain join */ +enum libnet_SamSync_level { + LIBNET_SAMSYNC_GENERIC, + LIBNET_SAMSYNC_NETLOGON, +}; + +union libnet_SamSync { + struct { + enum libnet_SamSync_level level; + char *error_string; + } generic; + + struct { + enum libnet_SamSync_level level; + NTSTATUS (*delta_fn)(TALLOC_CTX *mem_ctx, + void *private, + struct creds_CredentialState *creds, + enum netr_SamDatabaseID database, + struct netr_DELTA_ENUM *delta, + char **error_string); + void *fn_ctx; + char *error_string; + } netlogon; +}; + enum libnet_SamDump_level { LIBNET_SAMDUMP_GENERIC, LIBNET_SAMDUMP_NETLOGON, |