svn commit: lorikeet r41 - in trunk/ethereal/plugins/pidl: .
tpot at samba.org
tpot at samba.org
Sat Sep 4 01:56:12 GMT 2004
Author: tpot
Date: 2004-09-04 01:56:11 +0000 (Sat, 04 Sep 2004)
New Revision: 41
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=lorikeet&path=/trunk/ethereal/plugins/pidl&rev=41&nolog=1
Log:
Misc fixes for building more parsers:
- copy definition of DATA_BLOB
- add typedef for WERROR
- #include ndr_misc.h before any other prototypes as there is an
implicit dependency here on most of the security related structures
Modified:
trunk/ethereal/plugins/pidl/eparser.h
Changeset:
Modified: trunk/ethereal/plugins/pidl/eparser.h
===================================================================
--- trunk/ethereal/plugins/pidl/eparser.h 2004-09-04 01:54:58 UTC (rev 40)
+++ trunk/ethereal/plugins/pidl/eparser.h 2004-09-04 01:56:11 UTC (rev 41)
@@ -56,6 +56,13 @@
/* zero a structure */
#define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x))
+/* used to hold an arbitrary blob of data */
+typedef struct data_blob {
+ uint8_t *data;
+ size_t length;
+ void (*free)(struct data_blob *data_blob);
+} DATA_BLOB;
+
/* zero a structure given a pointer to the structure */
#define ZERO_STRUCTP(x) do { if ((x) != NULL) memset((char *)(x), 0, sizeof(*(x))); } while(0)
@@ -79,6 +86,7 @@
};
typedef int NTSTATUS;
+typedef int WERROR;
typedef guint64 uint64;
typedef guint32 uint32;
typedef guint16 uint16;
@@ -93,6 +101,11 @@
typedef void (*ndr_pull_flags_fn_t)(struct ndr_pull *, int ndr_flags, void *);
+/* There is a dependency on ndr_misc for most of the IDL files for the
+ security related structures it contains. */
+
+#include "ndr_misc.h"
+
#include "packet-dcerpc-proto.h"
#include "glib.h"
More information about the samba-cvs
mailing list