libsmbrdr.h revision 8d7e41661dc4633488e93b13363137523ce59977
/*
* 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
* or http://www.opensolaris.org/os/licensing.
* 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
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _LIBSMBRDR_H
#define _LIBSMBRDR_H
#include <smbsrv/libsmb.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct smbrdr_session_info {
int si_server_os;
int si_server_lm;
int si_dc_type;
} smbrdr_session_info_t;
/*
* Redirector IPC functions
*
* The following functions are required by the mlsvc_join to
* apply new authentication information for the authenticated IPC, rollback
* or commit the changes to the original authentication information.
*/
extern void smbrdr_ipc_set(char *, unsigned char *);
extern void smbrdr_ipc_commit(void);
extern void smbrdr_ipc_rollback(void);
extern char *smbrdr_ipc_get_user(void);
extern unsigned char *smbrdr_ipc_get_passwd(void);
/* Redirector LOGON function */
extern int mlsvc_logon(char *, char *, char *);
extern int smbrdr_readx(int, char *, int);
/* Redirector named pipe functions */
extern int smbrdr_open_pipe(char *, char *, char *, char *);
extern int smbrdr_close_pipe(int);
/* Redirector session functions */
extern void smbrdr_init(void);
extern int smbrdr_session_info(int, smbrdr_session_info_t *);
extern int mlsvc_echo(char *);
extern void mlsvc_disconnect(char *);
extern int smbrdr_transact(int, char *, int, char *, int);
/* DEBUG functions */
extern void smbrdr_dump_ofiles(void);
extern void smbrdr_dump_sessions(void);
extern void smbrdr_dump_netuse();
#ifdef __cplusplus
}
#endif
#endif /* _LIBSMBRDR_H */