diff options
author | Simo Sorce <idra@samba.org> | 2006-09-15 05:18:53 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:18:44 -0500 |
commit | b0fb34fd24f5d73cfc2d3aca09379d85b9fb57dd (patch) | |
tree | 64217e71e2acf9c49c12bea35adf008373edc78c /source4/param/share.h | |
parent | d928bce0d8ef5abbb1ef8fe659836b22e62266d1 (diff) | |
download | samba-b0fb34fd24f5d73cfc2d3aca09379d85b9fb57dd.tar.gz samba-b0fb34fd24f5d73cfc2d3aca09379d85b9fb57dd.tar.bz2 samba-b0fb34fd24f5d73cfc2d3aca09379d85b9fb57dd.zip |
r18542: Some late nite work.
Now we can add and remove a share from the "Computer Management"
console (not yet modify!) usinf share backend = ldb
(This used to be commit ae2f6d4a5a372a37b9783a02bb8e7f16588b21f0)
Diffstat (limited to 'source4/param/share.h')
-rw-r--r-- | source4/param/share.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/source4/param/share.h b/source4/param/share.h index af5bd0ebba..ca3accd4ef 100644 --- a/source4/param/share.h +++ b/source4/param/share.h @@ -36,6 +36,16 @@ struct share_config { void *opaque; }; +struct share_info { + const char *name; + const char *type; + const char *path; + const char *comment; + const char *password; + int32_t max_users; + struct security_descriptor *sd; +}; + struct share_ops { const char *name; NTSTATUS (*init)(TALLOC_CTX *, const struct share_ops*, struct share_context **); @@ -45,8 +55,8 @@ struct share_ops { 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 **); - NTSTATUS (*create_obj)(struct share_context *, const char *); - NTSTATUS (*delete_obj)(struct share_context *, const char *); + NTSTATUS (*create)(struct share_context *, struct share_info *); + NTSTATUS (*remove)(struct share_context *, const char *); }; #include "param/share_proto.h" @@ -56,14 +66,14 @@ struct share_ops { #define SHARE_NAME "name" #define SHARE_PATH "path" #define SHARE_COMMENT "comment" -#define SHARE_PASSWORD "password" +#define SHARE_PASSWORD "password" #define SHARE_HOSTS_ALLOW "hosts-allow" #define SHARE_HOSTS_DENY "hosts-deny" #define SHARE_NTVFS_HANDLER "ntvfs-handler" #define SHARE_TYPE "type" #define SHARE_VOLUME "volume" #define SHARE_CSC_POLICY "csc-policy" -#define SHARE_AVAILABLE "available" +#define SHARE_AVAILABLE "available" #define SHARE_BROWSEABLE "browseable" #define SHARE_MAX_CONNECTIONS "max-connections" |