libcli/smb move enum protocol_types to a common header
authorAndrew Bartlett <abartlet@samba.org>
Wed, 6 Jul 2011 03:05:45 +0000 (13:05 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 6 Jul 2011 03:32:51 +0000 (05:32 +0200)
lib/util/ms_fnmatch.c
lib/util/util.h
libcli/smb/smb_constants.h
source3/include/smb.h
source4/libcli/raw/libcliraw.h

index 1ba5888ca09875615d4143c8305c0876692c8302..ede9eff78f821ead827abc4bf471c863b9fad1ba 100644 (file)
@@ -29,6 +29,7 @@
  */
 
 #include "includes.h"
+#include "libcli/smb/smb_constants.h"
 
 static int null_match(const char *p)
 {
index c71544018647ca826d07109052e6db27fd618b93..b9734b07c88e0e05c9f95bf9c55b30934cc63fda 100644 (file)
@@ -762,21 +762,6 @@ _PUBLIC_ int sys_fsusage(const char *path, uint64_t *dfree, uint64_t *dsize);
  * @brief MS-style Filename matching
  */
 
-#if _SAMBA_BUILD_ == 4
-/* 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
-};
-
-#endif
-
 int ms_fnmatch_protocol(const char *pattern, const char *string, int protocol);
 
 /** a generic fnmatch function - uses for non-CIFS pattern matching */
index 59a6d9e388bd4e271f23c74109438a270fe49ca1..33a2a8d5b7062a74c8f0b75b3e58766df61b9f25 100644 (file)
 #ifndef _SMB_CONSTANTS_H
 #define _SMB_CONSTANTS_H
 
+/* protocol types. It assumes that higher protocols include lower protocols
+   as subsets. */
+enum protocol_types {
+       PROTOCOL_NONE,
+       PROTOCOL_CORE,
+       PROTOCOL_COREPLUS,
+       PROTOCOL_LANMAN1,
+       PROTOCOL_LANMAN2,
+       PROTOCOL_NT1,
+       PROTOCOL_SMB2
+};
+
 /* NT Flags2 bits - cifs6.txt section 3.1.2 */
 #define FLAGS2_LONG_PATH_COMPONENTS    0x0001
 #define FLAGS2_EXTENDED_ATTRIBUTES     0x0002
index 4319a1056d3396248cb223414abaebdcfa622dee..36f1912b5592984da69c5d884f45b5e323e89f34 100644 (file)
@@ -1229,18 +1229,6 @@ http://msdn.microsoft.com/en-us/library/cc246334(PROT.13).aspx
 #define CAP_UNIX             0x800000 /* Capabilities for UNIX extensions. Created by HP. */
 #define CAP_EXTENDED_SECURITY 0x80000000
 
-/* protocol types. It assumes that higher protocols include lower protocols
-   as subsets */
-enum protocol_types {
-       PROTOCOL_NONE,
-       PROTOCOL_CORE,
-       PROTOCOL_COREPLUS,
-       PROTOCOL_LANMAN1,
-       PROTOCOL_LANMAN2,
-       PROTOCOL_NT1,
-       PROTOCOL_SMB2
-};
-
 /* printing types */
 enum printing_types {PRINT_BSD,PRINT_SYSV,PRINT_AIX,PRINT_HPUX,
                     PRINT_QNX,PRINT_PLP,PRINT_LPRNG,PRINT_SOFTQ,
index 40813f372932f877b6f4833bce0534f65cf869e6..cb8e81c1bcaa23f66bb184f18410b7f681438268 100644 (file)
@@ -22,6 +22,7 @@
 #ifndef __LIBCLI_RAW_H__
 #define __LIBCLI_RAW_H__
 
+#include "libcli/smb/smb_common.h"
 #include "libcli/raw/request.h"
 #include "librpc/gen_ndr/nbt.h"