Deleted Added
full compact
smb_lib.h (150313) smb_lib.h (150802)
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 150313 2005-09-19 08:11:04Z imura $
33 * $FreeBSD: head/contrib/smbfs/include/netsmb/smb_lib.h 150802 2005-10-02 08:32:49Z bp $
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

--- 62 unchanged lines hidden (view full) ---

104 int ct_minlevel;
105 int ct_maxlevel;
106 char * ct_srvaddr; /* hostname or IP address of server */
107 char ct_locname[SMB_MAXUSERNAMELEN + 1];
108 const char * ct_uncnext;
109 struct nb_ctx * ct_nb;
110 struct smbioc_ossn ct_ssn;
111 struct smbioc_oshare ct_sh;
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

--- 62 unchanged lines hidden (view full) ---

104 int ct_minlevel;
105 int ct_maxlevel;
106 char * ct_srvaddr; /* hostname or IP address of server */
107 char ct_locname[SMB_MAXUSERNAMELEN + 1];
108 const char * ct_uncnext;
109 struct nb_ctx * ct_nb;
110 struct smbioc_ossn ct_ssn;
111 struct smbioc_oshare ct_sh;
112 long ct_smbtcpport;
112};
113
114#define SMBCF_NOPWD 0x0001 /* don't ask for a password */
115#define SMBCF_SRIGHTS 0x0002 /* share access rights was supplied */
116#define SMBCF_LOCALE 0x0004 /* use current locale */
117#define SMBCF_RESOLVED 0x8000 /* structure has been verified */
118
119/*

--- 50 unchanged lines hidden (view full) ---

170/*
171 * Context management
172 */
173int smb_ctx_init(struct smb_ctx *, int, char *[], int, int, int);
174void smb_ctx_done(struct smb_ctx *);
175int smb_ctx_parseunc(struct smb_ctx *, const char *, int, const char **);
176int smb_ctx_setcharset(struct smb_ctx *, const char *);
177int smb_ctx_setserver(struct smb_ctx *, const char *);
113};
114
115#define SMBCF_NOPWD 0x0001 /* don't ask for a password */
116#define SMBCF_SRIGHTS 0x0002 /* share access rights was supplied */
117#define SMBCF_LOCALE 0x0004 /* use current locale */
118#define SMBCF_RESOLVED 0x8000 /* structure has been verified */
119
120/*

--- 50 unchanged lines hidden (view full) ---

171/*
172 * Context management
173 */
174int smb_ctx_init(struct smb_ctx *, int, char *[], int, int, int);
175void smb_ctx_done(struct smb_ctx *);
176int smb_ctx_parseunc(struct smb_ctx *, const char *, int, const char **);
177int smb_ctx_setcharset(struct smb_ctx *, const char *);
178int smb_ctx_setserver(struct smb_ctx *, const char *);
179int smb_ctx_setnbport(struct smb_ctx *, int);
180int smb_ctx_setsmbport(struct smb_ctx *, int);
178int smb_ctx_setuser(struct smb_ctx *, const char *);
179int smb_ctx_setshare(struct smb_ctx *, const char *, int);
180int smb_ctx_setscope(struct smb_ctx *, const char *);
181int smb_ctx_setworkgroup(struct smb_ctx *, const char *);
182int smb_ctx_setpassword(struct smb_ctx *, const char *);
183int smb_ctx_setsrvaddr(struct smb_ctx *, const char *);
184int smb_ctx_opt(struct smb_ctx *, int, const char *);
185int smb_ctx_lookup(struct smb_ctx *, int, int);

--- 70 unchanged lines hidden ---
181int smb_ctx_setuser(struct smb_ctx *, const char *);
182int smb_ctx_setshare(struct smb_ctx *, const char *, int);
183int smb_ctx_setscope(struct smb_ctx *, const char *);
184int smb_ctx_setworkgroup(struct smb_ctx *, const char *);
185int smb_ctx_setpassword(struct smb_ctx *, const char *);
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);

--- 70 unchanged lines hidden ---