summaryrefslogtreecommitdiff
path: root/source4/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-11-03 00:17:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:05:22 -0500
commit6f214cc510a59b7a65ee9d4486baf14a3e579f73 (patch)
tree4e579f2500247716babf400b3bbf13039bacce02 /source4/include
parentacb23b2c5fa02ebbee762a8bf4b9d1fec40d4fea (diff)
downloadsamba-6f214cc510a59b7a65ee9d4486baf14a3e579f73.tar.gz
samba-6f214cc510a59b7a65ee9d4486baf14a3e579f73.tar.bz2
samba-6f214cc510a59b7a65ee9d4486baf14a3e579f73.zip
r3494: got rid of include/rewrite.h, and split out the dynconfig.h header
(This used to be commit 558de54ec6432a4ae90aa14a585f32c6cd03ced2)
Diffstat (limited to 'source4/include')
-rw-r--r--source4/include/charset.h13
-rw-r--r--source4/include/includes.h17
-rw-r--r--source4/include/pstring.h8
-rw-r--r--source4/include/rewrite.h91
-rw-r--r--source4/include/smb.h12
5 files changed, 40 insertions, 101 deletions
diff --git a/source4/include/charset.h b/source4/include/charset.h
index 6c3ad2d916..ba1402acb3 100644
--- a/source4/include/charset.h
+++ b/source4/include/charset.h
@@ -42,3 +42,16 @@ struct charset_functions {
typedef uint32_t codepoint_t;
#define INVALID_CODEPOINT ((codepoint_t)-1)
+
+
+/* generic iconv conversion structure */
+typedef struct {
+ size_t (*direct)(void *cd, const char **inbuf, size_t *inbytesleft,
+ char **outbuf, size_t *outbytesleft);
+ size_t (*pull)(void *cd, const char **inbuf, size_t *inbytesleft,
+ char **outbuf, size_t *outbytesleft);
+ size_t (*push)(void *cd, const char **inbuf, size_t *inbytesleft,
+ char **outbuf, size_t *outbytesleft);
+ void *cd_direct, *cd_pull, *cd_push;
+} *smb_iconv_t;
+
diff --git a/source4/include/includes.h b/source4/include/includes.h
index 78397faac6..9f2c233e73 100644
--- a/source4/include/includes.h
+++ b/source4/include/includes.h
@@ -127,6 +127,12 @@
#define uint64 uint64_t
#endif
+#define False (0)
+#define True (1)
+#define Auto (2)
+
+typedef int BOOL;
+
/*
we use struct ipv4_addr to avoid having to include all the
system networking headers everywhere
@@ -152,11 +158,7 @@ extern char *sys_errlist[];
extern int errno;
#endif
-/* Our own pstrings and fstrings */
-#include "pstring.h"
-
/* Lists, trees, caching, database... */
-#include "dynconfig.h"
#include "version.h"
#include "xfile.h"
#include "talloc.h"
@@ -169,7 +171,12 @@ extern int errno;
#include "trans2.h"
#include "nterr.h"
#include "charset.h"
-#include "rewrite.h"
+#include "debug.h"
+#include "doserr.h"
+#include "enums.h"
+#include "pstring.h"
+#include "smb_macros.h"
+#include "rpc_secdes.h"
#include "smb.h"
#include "ads.h"
#include "lib/socket/socket.h"
diff --git a/source4/include/pstring.h b/source4/include/pstring.h
index 92870e4cae..5bd03ec0d8 100644
--- a/source4/include/pstring.h
+++ b/source4/include/pstring.h
@@ -1,6 +1,8 @@
/*
samba -- Unix SMB/CIFS implementation.
- Safe standardized string types
+
+ ugly string types from Samba3. Will be removed
+ with glee when we finally don't use them.
Copyright (C) Andrew Tridgell 1992-2000
Copyright (C) John H Terpstra 1996-2000
@@ -23,8 +25,6 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#ifndef _PSTRING
-
#define PSTRING_LEN 1024
#define FSTRING_LEN 256
@@ -32,5 +32,3 @@ typedef char pstring[PSTRING_LEN];
typedef char fstring[FSTRING_LEN];
#define _PSTRING
-
-#endif /* ndef _PSTRING */
diff --git a/source4/include/rewrite.h b/source4/include/rewrite.h
deleted file mode 100644
index fa2168bed7..0000000000
--- a/source4/include/rewrite.h
+++ /dev/null
@@ -1,91 +0,0 @@
-/*
- Unix SMB/CIFS implementation.
- SMB parameters and setup, plus a whole lot more.
-
- Copyright (C) Andrew Tridgell 1992-2000
- Copyright (C) John H Terpstra 1996-2002
- Copyright (C) Luke Kenneth Casson Leighton 1996-2000
- Copyright (C) Paul Ashton 1998-2000
- Copyright (C) Simo Sorce 2001-2002
- Copyright (C) Martin Pool 2002
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-*/
-
-#ifndef _REWRITE_H
-#define _REWRITE_H
-
-#define False (0)
-#define True (1)
-#define Auto (2)
-
-#ifndef _BOOL
-typedef int BOOL;
-#define _BOOL /* So we don't typedef BOOL again in vfs.h */
-#endif
-
-/* string manipulation flags - see clistr.c and srvstr.c */
-#define STR_TERMINATE 1
-#define STR_UPPER 2
-#define STR_ASCII 4
-#define STR_UNICODE 8
-#define STR_NOALIGN 16
-#define STR_NO_RANGE_CHECK 32
-#define STR_LEN8BIT 64
-#define STR_TERMINATE_ASCII 128 /* only terminate if ascii */
-#define STR_LEN_NOTERM 256 /* the length field is the unterminated length */
-
-/* Debugging stuff */
-#include "debug.h"
-#include "doserr.h"
-
-#include "enums.h"
-
-/*
- * Loopback command offsets.
- */
-
-#define OPBRK_CMD_LEN_OFFSET 0
-#define OPBRK_CMD_PORT_OFFSET 4
-#define OPBRK_CMD_HEADER_LEN 6
-
-#define OPBRK_MESSAGE_CMD_OFFSET 0
-
-/* Message types */
-#define OPLOCK_BREAK_CMD 0x1
-#define KERNEL_OPLOCK_BREAK_CMD 0x2
-#define LEVEL_II_OPLOCK_BREAK_CMD 0x3
-#define ASYNC_LEVEL_II_OPLOCK_BREAK_CMD 0x4
-
-#define CMD_REPLY 0x8000
-
-#include "smb_macros.h"
-
-#include "rpc_secdes.h"
-
-#define SAFE_NETBIOS_CHARS ". -_"
-
-/* generic iconv conversion structure */
-typedef struct {
- size_t (*direct)(void *cd, const char **inbuf, size_t *inbytesleft,
- char **outbuf, size_t *outbytesleft);
- size_t (*pull)(void *cd, const char **inbuf, size_t *inbytesleft,
- char **outbuf, size_t *outbytesleft);
- size_t (*push)(void *cd, const char **inbuf, size_t *inbytesleft,
- char **outbuf, size_t *outbytesleft);
- void *cd_direct, *cd_pull, *cd_push;
-} *smb_iconv_t;
-
-#endif /* _REWRITE_H */
diff --git a/source4/include/smb.h b/source4/include/smb.h
index bc9eb2acb8..940af75671 100644
--- a/source4/include/smb.h
+++ b/source4/include/smb.h
@@ -592,4 +592,16 @@ typedef uint64_t HYPER_T;
/* passed to br lock code */
enum brl_type {READ_LOCK, WRITE_LOCK, PENDING_READ_LOCK, PENDING_WRITE_LOCK};
+/* string manipulation flags - see clistr.c and srvstr.c */
+#define STR_TERMINATE 1
+#define STR_UPPER 2
+#define STR_ASCII 4
+#define STR_UNICODE 8
+#define STR_NOALIGN 16
+#define STR_NO_RANGE_CHECK 32
+#define STR_LEN8BIT 64
+#define STR_TERMINATE_ASCII 128 /* only terminate if ascii */
+#define STR_LEN_NOTERM 256 /* the length field is the unterminated length */
+
+
#endif /* _SMB_H */