diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-01-06 07:34:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:08:27 -0500 |
commit | d62a44c447c2754948448ae618c75d29a6b8d89e (patch) | |
tree | 182837b738a35bd2abe8b3fa1e47c3e0e316c594 /source4/rpc_server | |
parent | 66af8726e525d6978936d5e950b0e4c3af66c86c (diff) | |
download | samba-d62a44c447c2754948448ae618c75d29a6b8d89e.tar.gz samba-d62a44c447c2754948448ae618c75d29a6b8d89e.tar.bz2 samba-d62a44c447c2754948448ae618c75d29a6b8d89e.zip |
r4558: more use of bitmaps and enums
metze
(This used to be commit 2a859fbc90a6b043bac318196e42c2949958d57f)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/common/server_info.c | 9 | ||||
-rw-r--r-- | source4/rpc_server/common/share_info.c | 4 |
2 files changed, 9 insertions, 4 deletions
diff --git a/source4/rpc_server/common/server_info.c b/source4/rpc_server/common/server_info.c index 9212ada3da..1a628a2ee6 100644 --- a/source4/rpc_server/common/server_info.c +++ b/source4/rpc_server/common/server_info.c @@ -21,15 +21,20 @@ */ #include "includes.h" +#include "librpc/gen_ndr/ndr_srvsvc.h" /* Here are common server info functions used by some dcerpc server interfaces */ /* This hardcoded value should go into a ldb database! */ -uint32_t dcesrv_common_get_platform_id(TALLOC_CTX *mem_ctx, struct dcesrv_context *dce_ctx) +enum srvsvc_PlatformId dcesrv_common_get_platform_id(TALLOC_CTX *mem_ctx, struct dcesrv_context *dce_ctx) { - return lp_parm_int(-1, "server_info", "platform_id", 500); + enum srvsvc_PlatformId id; + + id = lp_parm_int(-1, "server_info", "platform_id", PLATFORM_ID_NT); + + return id; } const char *dcesrv_common_get_server_name(TALLOC_CTX *mem_ctx, struct dcesrv_context *dce_ctx, const char *server_unc) diff --git a/source4/rpc_server/common/share_info.c b/source4/rpc_server/common/share_info.c index 6440c70676..ec744a5039 100644 --- a/source4/rpc_server/common/share_info.c +++ b/source4/rpc_server/common/share_info.c @@ -63,7 +63,7 @@ uint32_t dcesrv_common_get_share_current_users(TALLOC_CTX *mem_ctx, struct dcesr } /* This hardcoded value should go into a ldb database! */ -uint32_t dcesrv_common_get_share_type(TALLOC_CTX *mem_ctx, struct dcesrv_context *dce_ctx, int snum) +enum srvsvc_ShareType dcesrv_common_get_share_type(TALLOC_CTX *mem_ctx, struct dcesrv_context *dce_ctx, int snum) { /* for disk share 0x00000000 * for print share 0x00000001 @@ -73,7 +73,7 @@ uint32_t dcesrv_common_get_share_type(TALLOC_CTX *mem_ctx, struct dcesrv_context * ADMIN$, IPC$, C$, D$, E$ ... are type |= 0x80000000 * this ones are hidden in NetShareEnum, but shown in NetShareEnumAll */ - uint32_t share_type = 0; + enum srvsvc_ShareType share_type = 0; if (!lp_browseable(snum)) { share_type |= STYPE_HIDDEN; |