From 5c6a7861bf4d371a16eb51e0f3a512e6b405d0b7 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Sat, 27 May 2000 01:21:27 +0000 Subject: cifs parser. (This used to be commit 96fd33b8982d4d7ff1eef6f2ef836381d443b143) --- source3/aparser/parser.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'source3/aparser/parser.h') 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); -- cgit