The compatibility function also should have a const buffer pointer
[Samba/gbeck.git] / source3 / libnet / libnet_proto.h
blobddd730b1a8a4e504e49225f15e3a8027ab6eef44
1 /*
2 * Unix SMB/CIFS implementation.
3 * collected prototypes header
5 * frozen from "make proto" in May 2008
7 * Copyright (C) Michael Adam 2008
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 3 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, see <http://www.gnu.org/licenses/>.
23 #ifndef _LIBNET_PROTO_H_
24 #define _LIBNET_PROTO_H_
27 /* The following definitions come from libnet/libnet_join.c */
29 NTSTATUS libnet_join_ok(const char *netbios_domain_name,
30 const char *machine_name,
31 const char *dc_name);
32 WERROR libnet_init_JoinCtx(TALLOC_CTX *mem_ctx,
33 struct libnet_JoinCtx **r);
34 WERROR libnet_init_UnjoinCtx(TALLOC_CTX *mem_ctx,
35 struct libnet_UnjoinCtx **r);
36 WERROR libnet_Join(TALLOC_CTX *mem_ctx,
37 struct libnet_JoinCtx *r);
38 WERROR libnet_Unjoin(TALLOC_CTX *mem_ctx,
39 struct libnet_UnjoinCtx *r);
41 /* The following definitions come from librpc/gen_ndr/ndr_libnet_join.c */
43 _PUBLIC_ void ndr_print_libnet_JoinCtx(struct ndr_print *ndr, const char *name, int flags, const struct libnet_JoinCtx *r);
44 _PUBLIC_ void ndr_print_libnet_UnjoinCtx(struct ndr_print *ndr, const char *name, int flags, const struct libnet_UnjoinCtx *r);
46 /* The following definitions come from libnet/libnet_keytab.c */
48 #ifdef HAVE_KRB5
49 krb5_error_code libnet_keytab_init(TALLOC_CTX *mem_ctx,
50 const char *keytab_name,
51 struct libnet_keytab_context **ctx);
52 krb5_error_code libnet_keytab_add(struct libnet_keytab_context *ctx);
53 #endif
55 /* The following definitions come from libnet/libnet_samsync.c */
57 NTSTATUS libnet_samsync_init_context(TALLOC_CTX *mem_ctx,
58 const struct dom_sid *domain_sid,
59 struct samsync_context **ctx_p);
60 NTSTATUS libnet_samsync(enum netr_SamDatabaseID database_id,
61 struct samsync_context *ctx);
62 NTSTATUS pull_netr_AcctLockStr(TALLOC_CTX *mem_ctx,
63 struct lsa_BinaryString *r,
64 struct netr_AcctLockStr **str_p);
66 /* The following definitions come from libnet/libnet_dssync.c */
68 NTSTATUS libnet_dssync_init_context(TALLOC_CTX *mem_ctx,
69 struct dssync_context **ctx_p);
70 NTSTATUS libnet_dssync(TALLOC_CTX *mem_ctx,
71 struct dssync_context *ctx);
73 #endif /* _LIBNET_PROTO_H_ */