param: domain_logons and domain_master are of type enum_bool_auto
[mat/samba.git] / lib / param / loadparm.h
index 1fa06b65874ca48f39ebf07b1b1bfa860eb95ee6..34881dd97b46a70e609ec3b67643f2b402874aee 100644 (file)
@@ -126,9 +126,14 @@ 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 */
 
 #include "lib/param/param_local.h"
+
+const char* server_role_str(uint32_t role);
+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);