smb_xdr.h revision 1fcced4c370617db71610fecffd5451a5894ca5e
/*
* 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
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SMBSRV_SMB_XDR_H
#define _SMBSRV_SMB_XDR_H
#ifdef __cplusplus
extern "C" {
#endif
#include <smbsrv/smb_ioctl.h>
typedef struct smb_dr_kshare {
char *k_path;
char *k_sharename;
#ifdef _KERNEL
#define xdr_int8_t xdr_char
#define xdr_uint8_t xdr_u_char
#define xdr_int16_t xdr_short
#define xdr_uint16_t xdr_u_short
#else
#endif /* _KERNEL */
/* null-terminated string buffer */
typedef struct smb_dr_string {
char *buf;
/* byte buffer (non-null terminated) */
typedef struct smb_dr_bytes {
/*
* Door operations for opipes.
*/
typedef enum {
SMB_OPIPE_NULL = 0,
typedef struct smb_opipe_hdr {
typedef struct smb_netuserinfo {
char *ui_domain;
char *ui_account;
char *ui_workstation;
typedef struct smb_opennum {
char qualifier[MAXNAMELEN];
typedef struct smb_netconnectinfo {
char *ci_username;
char *ci_share;
typedef struct smb_netfileinfo {
char *fi_path;
char *fi_username;
typedef struct smb_netsvcitem {
union {
} nsi_un;
typedef struct smb_netsvc {
} smb_netsvc_t;
uint_t *);
uint_t *);
/*
* VSS Door Structures
*/
#define SMB_VSS_GMT_SIZE sizeof ("@GMT-yyyy.mm.dd-hh.mm.ss")
typedef struct smb_dr_get_gmttokens {
char *gg_path;
typedef char *gmttoken;
typedef struct smb_dr_return_gmttokens {
struct {
} rg_gmttokens;
typedef struct smb_dr_map_gmttoken {
char *mg_path;
char *mg_gmttoken;
#ifdef __cplusplus
}
#endif
#endif /* _SMBSRV_SMB_XDR_H */