4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22 /*
23 * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
24 * Copyright 2014 Nexenta Systems, Inc. All rights reserved.
25 */
26
27 #ifndef _SMBD_H
28 #define _SMBD_H
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33
34 #include <sys/types.h>
35 #include <thread.h>
36 #include <synch.h>
37 #include <smbsrv/smb_ioctl.h>
38 #include <smbsrv/smb_token.h>
39 #include <smbsrv/libsmb.h>
40 #include <smbsrv/libmlsvc.h>
41
42 void smbd_report(const char *fmt, ...);
43 int smbd_pipesvc_start(void);
44 void smbd_pipesvc_stop(void);
45 int smbd_share_start(void);
46 void smbd_share_stop(void);
47 int smbd_nicmon_start(const char *);
48 void smbd_nicmon_stop(void);
49 int smbd_nicmon_refresh(void);
50 int smbd_dc_monitor_init(void);
51 void smbd_dc_monitor_refresh(void);
52 smb_token_t *smbd_user_auth_logon(smb_logon_t *);
53 void smbd_user_nonauth_logon(uint32_t);
54 void smbd_user_auth_logoff(uint32_t);
55 void smbd_join(smb_joininfo_t *, smb_joinres_t *);
56 void smbd_set_secmode(int);
57 boolean_t smbd_online(void);
58 void smbd_online_wait(const char *);
59 void smbd_get_authconf(smb_kmod_cfg_t *);
60
61 void smbd_spool_start(void);
62 void smbd_spool_stop(void);
63 int smbd_cups_init(void);
64 void smbd_cups_fini(void);
65 void smbd_load_printers(void);
66
67 int smbd_vss_get_count(const char *, uint32_t *);
68 void smbd_vss_get_snapshots(const char *, uint32_t, uint32_t *,
69 uint32_t *, char **);
70 int smbd_vss_map_gmttoken(const char *, char *, time_t, char *);
71
72 typedef struct smbd {
73 const char *s_version; /* smbd version string */
74 const char *s_pname; /* basename to use for messages */
75 pid_t s_pid; /* process-ID of current daemon */
76 uid_t s_uid; /* UID of current daemon */
77 gid_t s_gid; /* GID of current daemon */
78 int s_fg; /* Run in foreground */
79 int s_debug; /* Enable debug output */
|
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22 /*
23 * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
24 * Copyright 2018 Nexenta Systems, Inc. All rights reserved.
25 */
26
27 #ifndef _SMBD_H
28 #define _SMBD_H
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33
34 #include <sys/types.h>
35 #include <thread.h>
36 #include <synch.h>
37 #include <smbsrv/smb_ioctl.h>
38 #include <smbsrv/smb_token.h>
39 #include <smbsrv/libsmb.h>
40 #include <smbsrv/libmlsvc.h>
41
42 void smbd_report(const char *fmt, ...);
43 int smbd_pipesvc_start(void);
44 void smbd_pipesvc_stop(void);
45 int smbd_share_start(void);
46 void smbd_share_stop(void);
47 int smbd_nicmon_start(const char *);
48 void smbd_nicmon_stop(void);
49 int smbd_nicmon_refresh(void);
50 int smbd_dc_monitor_init(void);
51 void smbd_dc_monitor_refresh(void);
52 smb_token_t *smbd_user_auth_logon(smb_logon_t *);
53 void smbd_user_nonauth_logon(uint32_t);
54 void smbd_user_auth_logoff(uint32_t);
55 void smbd_join(smb_joininfo_t *, smb_joinres_t *);
56 void smbd_set_secmode(int);
57 boolean_t smbd_online(void);
58 void smbd_online_wait(const char *);
59 void smbd_get_authconf(smb_kmod_cfg_t *);
60 boolean_t smbd_logon_audit(smb_token_t *, smb_inaddr_t *, char *, char *);
61
62 void smbd_spool_start(void);
63 void smbd_spool_stop(void);
64 int smbd_cups_init(void);
65 void smbd_cups_fini(void);
66 void smbd_load_printers(void);
67
68 int smbd_vss_get_count(const char *, uint32_t *);
69 void smbd_vss_get_snapshots(const char *, uint32_t, uint32_t *,
70 uint32_t *, char **);
71 int smbd_vss_map_gmttoken(const char *, char *, time_t, char *);
72
73 typedef struct smbd {
74 const char *s_version; /* smbd version string */
75 const char *s_pname; /* basename to use for messages */
76 pid_t s_pid; /* process-ID of current daemon */
77 uid_t s_uid; /* UID of current daemon */
78 gid_t s_gid; /* GID of current daemon */
79 int s_fg; /* Run in foreground */
80 int s_debug; /* Enable debug output */
|