smbd.h revision fd9ee8b58485b20072eeef1310a88ff348d5e7fa
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
#ifndef _SMBD_H
#define _SMBD_H
#ifdef __cplusplus
extern "C" {
#endif
#include <thread.h>
#include <synch.h>
#include <smbsrv/smb_ioctl.h>
#include <smbsrv/smb_token.h>
#include <smbsrv/libmlsvc.h>
int smbd_opipe_start(void);
void smbd_opipe_stop(void);
int smbd_share_start(void);
void smbd_share_stop(void);
int smbd_nicmon_start(const char *);
void smbd_nicmon_stop(void);
int smbd_nicmon_refresh(void);
int smbd_dc_monitor_init(void);
void smbd_dc_monitor_refresh(void);
void smbd_user_nonauth_logon(uint32_t);
void smbd_user_auth_logoff(uint32_t);
void smbd_set_secmode(int);
boolean_t smbd_online(void);
void smbd_online_wait(const char *);
void smbd_spool_init(void);
void smbd_spool_fini(void);
int smbd_cups_init(void);
void smbd_cups_fini(void);
void smbd_load_printers(void);
int smbd_vss_get_count(const char *, uint32_t *);
uint32_t *, char **);
int smbd_vss_map_gmttoken(const char *, char *, char *);
typedef struct smbd {
const char *s_version; /* smbd version string */
const char *s_pname; /* basename to use for messages */
int s_fg; /* Run in foreground */
volatile uint_t s_refreshes;
int s_door_lmshr;
int s_door_srv;
int s_door_opipe;
int s_secmode; /* Current security mode */
char s_site[MAXHOSTNAMELEN];
} smbd_t;
#define SMBD_LOGNAME "smbd"
#define SMBD_LOGSIZE 1024
#define SMBD_DOOR_NAMESZ 16
typedef struct smbd_door {
char sd_name[SMBD_DOOR_NAMESZ];
} smbd_door_t;
int smbd_door_start(void);
void smbd_door_stop(void);
void smbd_door_init(smbd_door_t *, const char *);
void smbd_door_fini(smbd_door_t *);
void smbd_door_enter(smbd_door_t *);
#ifdef __cplusplus
}
#endif
#endif /* _SMBD_H */