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
,
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 */
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
);
54 struct libnet_keytab_entry
*libnet_keytab_search(struct libnet_keytab_context
*ctx
,
55 const char *principal
, int kvno
,
56 const krb5_enctype enctype
,
60 /* The following definitions come from libnet/libnet_samsync.c */
62 NTSTATUS
libnet_samsync_init_context(TALLOC_CTX
*mem_ctx
,
63 const struct dom_sid
*domain_sid
,
64 struct samsync_context
**ctx_p
);
65 NTSTATUS
libnet_samsync(enum netr_SamDatabaseID database_id
,
66 struct samsync_context
*ctx
);
67 NTSTATUS
pull_netr_AcctLockStr(TALLOC_CTX
*mem_ctx
,
68 struct lsa_BinaryString
*r
,
69 struct netr_AcctLockStr
**str_p
);
71 /* The following definitions come from libnet/libnet_dssync.c */
73 NTSTATUS
libnet_dssync_init_context(TALLOC_CTX
*mem_ctx
,
74 struct dssync_context
**ctx_p
);
75 NTSTATUS
libnet_dssync(TALLOC_CTX
*mem_ctx
,
76 struct dssync_context
*ctx
);
78 #endif /* _LIBNET_PROTO_H_ */