summaryrefslogtreecommitdiff
path: root/source4/include
diff options
context:
space:
mode:
Diffstat (limited to 'source4/include')
-rw-r--r--source4/include/core.h24
-rw-r--r--source4/include/includes.h21
2 files changed, 24 insertions, 21 deletions
diff --git a/source4/include/core.h b/source4/include/core.h
index 28a14562ef..cb9da4dd87 100644
--- a/source4/include/core.h
+++ b/source4/include/core.h
@@ -24,6 +24,8 @@
#ifndef _SAMBA_CORE_H
#define _SAMBA_CORE_H
+#include "libcli/util/nt_status.h"
+
#define False (0)
#define True (1)
#define Auto (2)
@@ -74,4 +76,26 @@ typedef NTSTATUS (*init_module_fn) (void);
/* same struct as dom_sid but inside a 28 bytes fixed buffer in NDR */
#define dom_sid28 dom_sid
+/* 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,
+ PROTOCOL_SMB2
+};
+
+/* 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
+};
+
+
+
#endif /* _SAMBA_CORE_H */
diff --git a/source4/include/includes.h b/source4/include/includes.h
index f4642cecb9..22dc922d1b 100644
--- a/source4/include/includes.h
+++ b/source4/include/includes.h
@@ -95,31 +95,10 @@ _PUBLIC_ void smb_panic(const char *why) NORETURN_ATTRIBUTE;
#include <varargs.h>
#endif
-/* 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,
- PROTOCOL_SMB2
-};
-
-/* 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 "libcli/util/nt_status.h"
#include "talloc/talloc.h"
#include "core.h"
#include "charset/charset.h"