2 * Unix SMB/CIFS implementation.
4 * Copyright (C) Guenther Deschner 2007
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, see <http://www.gnu.org/licenses/>.
20 #ifndef __LIB_NETAPI_H__
21 #define __LIB_NETAPI_H__
23 #define NET_API_STATUS uint32_t
25 struct libnetapi_ctx {
26 const char *debuglevel;
32 NET_API_STATUS libnetapi_init(struct libnetapi_ctx **ctx);
33 NET_API_STATUS libnetapi_getctx(struct libnetapi_ctx **ctx);
34 NET_API_STATUS libnetapi_free(struct libnetapi_ctx *ctx);
35 NET_API_STATUS libnetapi_set_debuglevel(struct libnetapi_ctx *ctx, const char *debuglevel);
36 NET_API_STATUS libnetapi_get_debuglevel(struct libnetapi_ctx *ctx, const char **debuglevel);
37 NET_API_STATUS libnetapi_set_username(struct libnetapi_ctx *ctx, const char *username);
38 NET_API_STATUS libnetapi_set_password(struct libnetapi_ctx *ctx, const char *password);
39 NET_API_STATUS libnetapi_set_workgroup(struct libnetapi_ctx *ctx, const char *workgroup);
41 #include "joindomain.h"