summaryrefslogtreecommitdiff
path: root/source3/aparser/parser.h
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>2000-05-27 01:21:27 +0000
committerLuke Leighton <lkcl@samba.org>2000-05-27 01:21:27 +0000
commit5c6a7861bf4d371a16eb51e0f3a512e6b405d0b7 (patch)
tree243ddbe78a2340f018d1e907a5359dc1a006c7d3 /source3/aparser/parser.h
parenta0e1930489523b3c9682e6f90db710553cd70084 (diff)
downloadsamba-5c6a7861bf4d371a16eb51e0f3a512e6b405d0b7.tar.gz
samba-5c6a7861bf4d371a16eb51e0f3a512e6b405d0b7.tar.bz2
samba-5c6a7861bf4d371a16eb51e0f3a512e6b405d0b7.zip
cifs parser.
(This used to be commit 96fd33b8982d4d7ff1eef6f2ef836381d443b143)
Diffstat (limited to 'source3/aparser/parser.h')
-rw-r--r--source3/aparser/parser.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/source3/aparser/parser.h b/source3/aparser/parser.h
index 52d1b83941..51234d3dea 100644
--- a/source3/aparser/parser.h
+++ b/source3/aparser/parser.h
@@ -28,11 +28,20 @@ typedef unsigned short uint16;
typedef unsigned short wchar;
typedef unsigned uint32;
+#ifndef _PSTRING
+
+#define PSTRING_LEN 1024
+#define FSTRING_LEN 128
+
+typedef char pstring[PSTRING_LEN];
+typedef char fstring[FSTRING_LEN];
+
+#define _PSTRING
+
+#endif
#define False 0
#define True 1
-typedef char pstring[1024];
-
/* zero a structure given a pointer to the structure */
#define ZERO_STRUCTP(x) { if ((x) != NULL) memset((char *)(x), 0, sizeof(*(x))); }
@@ -68,5 +77,7 @@ BOOL io_uint32(char *name, prs_struct *ps, int depth, uint32 *data32, unsigned f
BOOL io_uint16(char *name, prs_struct *ps, int depth, uint16 *data16, unsigned flags);
BOOL io_uint8(char *name, prs_struct *ps, int depth, uint8 *data8, unsigned flags);
BOOL io_pointer(char *desc, prs_struct *ps, int depth, void **p, unsigned flags);
+BOOL io_fstring(char *name, prs_struct *ps, int depth, fstring *str, unsigned flags);
BOOL io_wstring(char *name, prs_struct *ps, int depth, uint16 *data16s, int len, unsigned flags);
+BOOL io_uint8s(char *name, prs_struct *ps, int depth, uint8 *data8s, int len, unsigned flags);