libnet: freeze libnet_proto.h from "make proto"
[metze/samba/wip.git] / source3 / libnet / libnet_proto.h
1 /*
2  * Unix SMB/CIFS implementation.
3  * collected prototypes header
4  *
5  * frozen from "make proto" in May 2008
6  *
7  * Copyright (C) Michael Adam 2008
8  *
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.
13  *
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.
18  *
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/>.
21  */
22
23 #ifndef _LIBNET_PROTO_H_
24 #define _LIBNET_PROTO_H_
25
26
27 /* The following definitions come from libnet/libnet_join.c  */
28
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);
40
41 /* The following definitions come from librpc/gen_ndr/ndr_libnet_join.c  */
42
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);
45
46 #endif /*  _LIBNET_PROTO_H_  */