X-Git-Url: http://git.samba.org/?p=samba.git;a=blobdiff_plain;f=source4%2Fparam%2Fshare.h;h=9f9cbdce5bed8ed447f37ffa68c9fa8bb6c97d0d;hp=cbbf8dc04474ccda910eb23727bee8e723473ac3;hb=4fc27c9969960dfef73ad80438d274e0f45e119e;hpb=0479a2f1cbae51fcd8dbdc3c148c808421fb4d25 diff --git a/source4/param/share.h b/source4/param/share.h index cbbf8dc0447..9f9cbdce5be 100644 --- a/source4/param/share.h +++ b/source4/param/share.h @@ -49,10 +49,11 @@ struct share_info { struct share_ops { const char *name; - NTSTATUS (*init)(TALLOC_CTX *, const struct share_ops*, struct share_context **); + NTSTATUS (*init)(TALLOC_CTX *, const struct share_ops*, struct loadparm_context *lp_ctx, + struct share_context **); const char *(*string_option)(struct share_config *, const char *, const char *); int (*int_option)(struct share_config *, const char *, int); - BOOL (*bool_option)(struct share_config *, const char *, BOOL); + bool (*bool_option)(struct share_config *, const char *, bool); const char **(*string_list_option)(TALLOC_CTX *, struct share_config *, const char *); NTSTATUS (*list_all)(TALLOC_CTX *, struct share_context *, int *, const char ***); NTSTATUS (*get_config)(TALLOC_CTX *, struct share_context *, const char *, struct share_config **); @@ -61,6 +62,8 @@ struct share_ops { NTSTATUS (*remove)(struct share_context *, const char *); }; +struct loadparm_context; + #include "param/share_proto.h" /* list of shares options */ @@ -87,6 +90,7 @@ struct share_ops { #define SHARE_MAP_ARCHIVE "map-archive" #define SHARE_STRICT_LOCKING "strict-locking" +#define SHARE_OPLOCKS "oplocks" #define SHARE_STRICT_SYNC "strict-sync" #define SHARE_MSDFS_ROOT "msdfs-root" #define SHARE_CI_FILESYSTEM "ci-filesystem" @@ -103,8 +107,8 @@ struct share_ops { #define SHARE_VOLUME_DEFAULT NULL #define SHARE_TYPE_DEFAULT "DISK" #define SHARE_CSC_POLICY_DEFAULT 0 -#define SHARE_AVAILABLE_DEFAULT True -#define SHARE_BROWSEABLE_DEFAULT True +#define SHARE_AVAILABLE_DEFAULT true +#define SHARE_BROWSEABLE_DEFAULT true #define SHARE_MAX_CONNECTIONS_DEFAULT 0 #define SHARE_DIR_MASK_DEFAULT 0755 @@ -116,14 +120,15 @@ struct share_ops { /* I'd like to see the following options go away * and always use EAs and SECDESCs */ -#define SHARE_READONLY_DEFAULT True -#define SHARE_MAP_SYSTEM_DEFAULT False -#define SHARE_MAP_HIDDEN_DEFAULT False -#define SHARE_MAP_ARCHIVE_DEFAULT True - -#define SHARE_STRICT_LOCKING_DEFAULT True -#define SHARE_STRICT_SYNC_DEFAULT False -#define SHARE_MSDFS_ROOT_DEFAULT False -#define SHARE_CI_FILESYSTEM_DEFAULT False +#define SHARE_READONLY_DEFAULT true +#define SHARE_MAP_SYSTEM_DEFAULT false +#define SHARE_MAP_HIDDEN_DEFAULT false +#define SHARE_MAP_ARCHIVE_DEFAULT true + +#define SHARE_STRICT_LOCKING_DEFAULT true +#define SHARE_OPLOCKS_DEFAULT true +#define SHARE_STRICT_SYNC_DEFAULT false +#define SHARE_MSDFS_ROOT_DEFAULT false +#define SHARE_CI_FILESYSTEM_DEFAULT false #endif /* _SHARE_H */