param: domain_logons and domain_master are of type enum_bool_auto
[mat/samba.git] / lib / param / loadparm.h
index ecf8f9c6a8391a12dd9de3ccd81a4625e6f79641..34881dd97b46a70e609ec3b67643f2b402874aee 100644 (file)
@@ -126,7 +126,7 @@ struct parm_struct {
        char *szService;                                                \
        char *szInclude;                                                \
        bool bWidelinks;                                                \
-       int bAvailable;                                                 \
+       bool bAvailable;                                                        \
        struct parmlist_entry *param_opt;                               \
        struct bitmap *copymap;                                         \
        char dummy[3];          /* for alignment */
@@ -134,5 +134,6 @@ struct parm_struct {
 #include "lib/param/param_local.h"
 
 const char* server_role_str(uint32_t role);
-int lp_find_server_role(int server_role, int security, bool domain_logons, bool domain_master);
+int lp_find_server_role(int server_role, int security, int domain_logons, int domain_master);
 int lp_find_security(int server_role, int security);
+bool lp_is_security_and_server_role_valid(int server_role, int security);