smb_lib.h (150802) | smb_lib.h (281550) |
---|---|
1/* 2 * Copyright (c) 2000-2001 Boris Popov 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * $Id: smb_lib.h,v 1.24 2001/12/20 15:19:43 bp Exp $ | 1/* 2 * Copyright (c) 2000-2001 Boris Popov 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * $Id: smb_lib.h,v 1.24 2001/12/20 15:19:43 bp Exp $ |
33 * $FreeBSD: head/contrib/smbfs/include/netsmb/smb_lib.h 150802 2005-10-02 08:32:49Z bp $ | 33 * $FreeBSD: head/contrib/smbfs/include/netsmb/smb_lib.h 281550 2015-04-15 09:09:20Z tijl $ |
34 */ 35#ifndef _NETSMB_SMB_LIB_H_ 36#define _NETSMB_SMB_LIB_H_ 37 38#include <netsmb/smb.h> 39#include <netsmb/smb_dev.h> 40 41#ifndef SMB_CFG_FILE --- 144 unchanged lines hidden (view full) --- 186int smb_ctx_setsrvaddr(struct smb_ctx *, const char *); 187int smb_ctx_opt(struct smb_ctx *, int, const char *); 188int smb_ctx_lookup(struct smb_ctx *, int, int); 189int smb_ctx_login(struct smb_ctx *); 190int smb_ctx_readrc(struct smb_ctx *); 191int smb_ctx_resolve(struct smb_ctx *); 192int smb_ctx_setflags(struct smb_ctx *, int, int, int); 193 | 34 */ 35#ifndef _NETSMB_SMB_LIB_H_ 36#define _NETSMB_SMB_LIB_H_ 37 38#include <netsmb/smb.h> 39#include <netsmb/smb_dev.h> 40 41#ifndef SMB_CFG_FILE --- 144 unchanged lines hidden (view full) --- 186int smb_ctx_setsrvaddr(struct smb_ctx *, const char *); 187int smb_ctx_opt(struct smb_ctx *, int, const char *); 188int smb_ctx_lookup(struct smb_ctx *, int, int); 189int smb_ctx_login(struct smb_ctx *); 190int smb_ctx_readrc(struct smb_ctx *); 191int smb_ctx_resolve(struct smb_ctx *); 192int smb_ctx_setflags(struct smb_ctx *, int, int, int); 193 |
194int smb_smb_open_print_file(struct smb_ctx *, int, int, const char *, smbfh*); | 194int smb_smb_open_print_file(struct smb_ctx *, int, int, char *, smbfh*); |
195int smb_smb_close_print_file(struct smb_ctx *, smbfh); 196 197int smb_read(struct smb_ctx *, smbfh, off_t, size_t, char *); 198int smb_write(struct smb_ctx *, smbfh, off_t, size_t, const char *); 199 200#define smb_rq_getrequest(rqp) (&(rqp)->rq_rq) 201#define smb_rq_getreply(rqp) (&(rqp)->rq_rp) 202 203int smb_rq_init(struct smb_ctx *, u_char, size_t, struct smb_rq **); 204void smb_rq_done(struct smb_rq *); 205void smb_rq_wend(struct smb_rq *); 206int smb_rq_simple(struct smb_rq *); | 195int smb_smb_close_print_file(struct smb_ctx *, smbfh); 196 197int smb_read(struct smb_ctx *, smbfh, off_t, size_t, char *); 198int smb_write(struct smb_ctx *, smbfh, off_t, size_t, const char *); 199 200#define smb_rq_getrequest(rqp) (&(rqp)->rq_rq) 201#define smb_rq_getreply(rqp) (&(rqp)->rq_rp) 202 203int smb_rq_init(struct smb_ctx *, u_char, size_t, struct smb_rq **); 204void smb_rq_done(struct smb_rq *); 205void smb_rq_wend(struct smb_rq *); 206int smb_rq_simple(struct smb_rq *); |
207int smb_rq_dmem(struct mbdata *, const char *, size_t); 208int smb_rq_dstring(struct mbdata *, const char *); | 207int smb_rq_dmem(struct mbdata *, char *, size_t); 208int smb_rq_dstring(struct mbdata *, char *); |
209 210int smb_t2_request(struct smb_ctx *, int, int, const char *, 211 int, void *, int, void *, int *, void *, int *, void *); 212 213char* smb_simplecrypt(char *dst, const char *src); 214int smb_simpledecrypt(char *dst, const char *src); 215 216int m_getm(struct mbuf *, size_t, struct mbuf **); --- 24 unchanged lines hidden (view full) --- 241int mb_get_int64be(struct mbdata *, int64_t *); 242int mb_get_int64le(struct mbdata *, int64_t *); 243int mb_get_mem(struct mbdata *, char *, size_t); 244 245extern u_char nls_lower[256], nls_upper[256]; 246 247int nls_setrecode(const char *, const char *); 248int nls_setlocale(const char *); | 209 210int smb_t2_request(struct smb_ctx *, int, int, const char *, 211 int, void *, int, void *, int *, void *, int *, void *); 212 213char* smb_simplecrypt(char *dst, const char *src); 214int smb_simpledecrypt(char *dst, const char *src); 215 216int m_getm(struct mbuf *, size_t, struct mbuf **); --- 24 unchanged lines hidden (view full) --- 241int mb_get_int64be(struct mbdata *, int64_t *); 242int mb_get_int64le(struct mbdata *, int64_t *); 243int mb_get_mem(struct mbdata *, char *, size_t); 244 245extern u_char nls_lower[256], nls_upper[256]; 246 247int nls_setrecode(const char *, const char *); 248int nls_setlocale(const char *); |
249char* nls_str_toext(char *, const char *); 250char* nls_str_toloc(char *, const char *); 251void* nls_mem_toext(void *, const void *, int); 252void* nls_mem_toloc(void *, const void *, int); | 249char* nls_str_toext(char *, char *); 250char* nls_str_toloc(char *, char *); 251void* nls_mem_toext(void *, void *, int); 252void* nls_mem_toloc(void *, void *, int); |
253char* nls_str_upper(char *, const char *); 254char* nls_str_lower(char *, const char *); 255 256__END_DECLS 257 258#endif /* _NETSMB_SMB_LIB_H_ */ | 253char* nls_str_upper(char *, const char *); 254char* nls_str_lower(char *, const char *); 255 256__END_DECLS 257 258#endif /* _NETSMB_SMB_LIB_H_ */ |