diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-04-26 00:32:29 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:51:34 -0500 |
commit | 31d44e36823af542073040fc5a761f00ff28a1ed (patch) | |
tree | 9cd3760f7ccd1fc39152c82bd4d3c720f4685d1e | |
parent | 304396c8920dd79f82249bbbfa75b3a905641909 (diff) | |
download | samba-31d44e36823af542073040fc5a761f00ff28a1ed.tar.gz samba-31d44e36823af542073040fc5a761f00ff28a1ed.tar.bz2 samba-31d44e36823af542073040fc5a761f00ff28a1ed.zip |
r359: moved the share type definitions to srvsvc.idl
I'd like to see more protocol defininitions in the IDL files and less
in smb.h where possible.
(This used to be commit 854b875bbe447955fb0c3876f046931d0bfde06c)
-rw-r--r-- | source4/include/smb.h | 9 | ||||
-rw-r--r-- | source4/librpc/idl/srvsvc.idl | 8 |
2 files changed, 8 insertions, 9 deletions
diff --git a/source4/include/smb.h b/source4/include/smb.h index e5e7e26444..520aee487c 100644 --- a/source4/include/smb.h +++ b/source4/include/smb.h @@ -215,15 +215,6 @@ enum socket_error {SOCKET_READ_TIMEOUT, incorrect parameters - what does it mean? maybe created temporary file? */ #define NTCREATEX_ACTION_UNKNOWN 5 - - -/* share types */ -#define STYPE_DISKTREE 0 /* Disk drive */ -#define STYPE_PRINTQ 1 /* Spooler queue */ -#define STYPE_DEVICE 2 /* Serial device */ -#define STYPE_IPC 3 /* Interprocess communication (IPC) */ -#define STYPE_HIDDEN 0x80000000 /* share is a hidden one (ends with $) */ - #include "doserr.h" /* diff --git a/source4/librpc/idl/srvsvc.idl b/source4/librpc/idl/srvsvc.idl index 4d737a6c0d..a9d43539e9 100644 --- a/source4/librpc/idl/srvsvc.idl +++ b/source4/librpc/idl/srvsvc.idl @@ -370,6 +370,14 @@ /**************************/ /* srvsvc_NetShare */ /**************************/ + + /* share types */ + const int STYPE_DISKTREE = 0; + const int STYPE_PRINTQ = 1; + const int STYPE_DEVICE = 2; /* Serial device */ + const int STYPE_IPC = 3; /* Interprocess communication (IPC) */ + const int STYPE_HIDDEN = 0x80000000; /* share is a hidden one */ + typedef struct { unistr *name; } srvsvc_NetShareInfo0; |