/** Feel free to add definitions for other compilers here. */
#endif
+#ifndef PRINTF_ATTRIBUTE
+#if !defined(NO_PRINTF_ATTRIBUTE) && (__GNUC__ >= 3)
+/** Use gcc attribute to check printf fns. a1 is the 1-based index of
+ * the parameter containing the format, and a2 the index of the first
+ * argument. Note that some gcc 2.x versions don't handle this
+ * properly **/
+#define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format (__printf__, a1, a2)))
+#else
+#define PRINTF_ATTRIBUTE(a1, a2)
+#endif
+#endif
+
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <varargs.h>
#endif
-/* tell ldb we have the internal ldap code */
-#define HAVE_ILDAP 1
-
/*
we use struct ipv4_addr to avoid having to include all the
system networking headers everywhere
uint32_t addr;
};
+/* protocol types. It assumes that higher protocols include lower protocols
+ as subsets. FIXME: Move to one of the smb-specific headers */
+enum protocol_types {PROTOCOL_NONE,PROTOCOL_CORE,PROTOCOL_COREPLUS,PROTOCOL_LANMAN1,PROTOCOL_LANMAN2,PROTOCOL_NT1};
+
+/* passed to br lock code. FIXME: Move to one of the smb-specific headers */
+enum brl_type {READ_LOCK, WRITE_LOCK, PENDING_READ_LOCK, PENDING_WRITE_LOCK};
+
#define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2)
#include "lib/replace/replace.h"
/* Lists, trees, caching, database... */
-#include "xfile.h"
-#include "lib/talloc/talloc.h"
#include "nt_status.h"
-#include "structs.h"
-#include "trans2.h"
-#include "nterr.h"
+#include "talloc/talloc.h"
#include "core.h"
-#include "smb.h"
-#include "charset.h"
-#include "debug.h"
-#include "doserr.h"
-#include "enums.h"
-#include "smb_macros.h"
-#include "byteorder.h"
+#include "charset/charset.h"
+#include "structs.h"
+#include "util/util.h"
+#include "libcli/util/nterr.h"
+#include "libcli/util/doserr.h"
#include "librpc/ndr/libndr.h"
#include "librpc/gen_ndr/dcerpc.h"
#include "librpc/ndr/ndr_orpc.h"
#include "librpc/gen_ndr/orpc.h"
#include "librpc/rpc/dcerpc.h"
-#include "smb_interfaces.h"
-#include "cli_context.h"
+#include "libcli/raw/trans2.h"
+#include "libcli/raw/interfaces.h"
#include "auth/credentials/credentials.h"
#include "libcli/nbt/libnbt.h"
-/***** automatically generated prototypes *****/
-#include "include/proto.h"
-#include "basic.h"
#undef _PRINTF_ATTRIBUTE
#define _PRINTF_ATTRIBUTE(a1, a2)
-/* String routines */
+/***** automatically generated prototypes *****/
+#include "include/proto.h"
-#include "safe_string.h"
+/* String routines */
-#ifndef HAVE_PIPE
-#define SYNC_DNS 1
-#endif
+#include "util/safe_string.h"
extern int DEBUGLEVEL;
#define discard_const(ptr) ((void *)((intptr_t)(ptr)))
#define discard_const_p(type, ptr) ((type *)discard_const(ptr))
+#ifndef _PUBLIC_
#define _PUBLIC_
+#endif
#endif /* _INCLUDES_H */