187866Ssheldonh/* 287866Ssheldonh * Copyright (c) 2000-2001, Boris Popov 387866Ssheldonh * All rights reserved. 487866Ssheldonh * 587866Ssheldonh * Redistribution and use in source and binary forms, with or without 687866Ssheldonh * modification, are permitted provided that the following conditions 787866Ssheldonh * are met: 887866Ssheldonh * 1. Redistributions of source code must retain the above copyright 987866Ssheldonh * notice, this list of conditions and the following disclaimer. 1087866Ssheldonh * 2. Redistributions in binary form must reproduce the above copyright 1187866Ssheldonh * notice, this list of conditions and the following disclaimer in the 1287866Ssheldonh * documentation and/or other materials provided with the distribution. 1387866Ssheldonh * 3. All advertising materials mentioning features or use of this software 1487866Ssheldonh * must display the following acknowledgement: 1587866Ssheldonh * This product includes software developed by Boris Popov. 1687866Ssheldonh * 4. Neither the name of the author nor the names of any co-contributors 1787866Ssheldonh * may be used to endorse or promote products derived from this software 1887866Ssheldonh * without specific prior written permission. 1987866Ssheldonh * 2087866Ssheldonh * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 2187866Ssheldonh * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2287866Ssheldonh * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2387866Ssheldonh * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 2487866Ssheldonh * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2587866Ssheldonh * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2687866Ssheldonh * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2787866Ssheldonh * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2887866Ssheldonh * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2987866Ssheldonh * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3087866Ssheldonh * SUCH DAMAGE. 3187866Ssheldonh * 3287866Ssheldonh * $Id: smb_rap.h,v 1.3 2001/04/10 05:37:22 bp Exp $ 3387866Ssheldonh */ 3487866Ssheldonh#ifndef _NETSMB_SMB_RAP_H_ 3587866Ssheldonh#define _NETSMB_SMB_RAP_H_ 3687866Ssheldonh 3787866Ssheldonhstruct smb_rap { 3887866Ssheldonh char * r_sparam; 3987866Ssheldonh char * r_nparam; 4087866Ssheldonh char * r_sdata; 4187866Ssheldonh char * r_ndata; 4287866Ssheldonh char * r_pbuf; /* rq parameters */ 4387866Ssheldonh int r_plen; /* rq param len */ 4487866Ssheldonh char * r_npbuf; 4587866Ssheldonh char * r_dbuf; /* rq data */ 4687866Ssheldonh int r_dlen; /* rq data len */ 4787866Ssheldonh char * r_ndbuf; 4887866Ssheldonh u_int32_t r_result; 4987866Ssheldonh char * r_rcvbuf; 5087866Ssheldonh int r_rcvbuflen; 5187866Ssheldonh int r_entries; 5287866Ssheldonh}; 5387866Ssheldonh 5487866Ssheldonhstruct smb_share_info_1 { 5587866Ssheldonh char shi1_netname[13]; 5687866Ssheldonh char shi1_pad; 5787866Ssheldonh u_int16_t shi1_type; 5887866Ssheldonh u_int32_t shi1_remark; /* char * */ 5987866Ssheldonh}; 6087866Ssheldonh 6187866Ssheldonh__BEGIN_DECLS 6287866Ssheldonh 6387866Ssheldonhint smb_rap_create(int, const char *, const char *, struct smb_rap **); 6487866Ssheldonhvoid smb_rap_done(struct smb_rap *); 6587866Ssheldonhint smb_rap_request(struct smb_rap *, struct smb_ctx *); 6687866Ssheldonhint smb_rap_setNparam(struct smb_rap *, long); 6787866Ssheldonhint smb_rap_setPparam(struct smb_rap *, void *); 6887866Ssheldonhint smb_rap_error(struct smb_rap *, int); 6987866Ssheldonh 7087866Ssheldonhint smb_rap_NetShareEnum(struct smb_ctx *, int, void *, int, int *, int *); 7187866Ssheldonh 7287866Ssheldonh__END_DECLS 7387866Ssheldonh 7487866Ssheldonh#endif /* _NETSMB_SMB_RAP_H_ */ 75