Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source4/lib/registry/registry.h

    r414 r745  
    2424struct registry_context;
    2525struct loadparm_context;
    26 struct smb_iconv_convenience;
    2726
    2827#include <talloc.h>
     
    7170         */
    7271        WERROR (*add_key) (TALLOC_CTX *ctx,
    73                            const struct hive_key *parent_key, const char *name,
     72                           const struct hive_key *parent_key, const char *path,
    7473                           const char *classname,
    7574                           struct security_descriptor *desc,
     
    7877         * Remove an existing key.
    7978         */
    80         WERROR (*del_key) (const struct hive_key *key, const char *name);
     79        WERROR (*del_key) (TALLOC_CTX *mem_ctx,
     80                           const struct hive_key *key, const char *name);
    8181
    8282        /**
     
    8989         */
    9090        WERROR (*enum_value) (TALLOC_CTX *mem_ctx,
    91                               struct hive_key *key, int idx,
     91                              struct hive_key *key, uint32_t idx,
    9292                              const char **name, uint32_t *type,
    9393                              DATA_BLOB *data);
     
    109109         * Remove a value.
    110110         */
    111         WERROR (*delete_value) (struct hive_key *key, const char *name);
     111        WERROR (*delete_value) (TALLOC_CTX *mem_ctx,
     112                                struct hive_key *key, const char *name);
    112113
    113114        /* Security Descriptors */
     
    167168                         struct security_descriptor *desc,
    168169                         struct hive_key **key);
    169 WERROR hive_key_del(const struct hive_key *key, const char *name);
     170WERROR hive_key_del(TALLOC_CTX *mem_ctx,
     171                    const struct hive_key *key, const char *name);
    170172WERROR hive_get_key_by_name(TALLOC_CTX *mem_ctx,
    171173                            const struct hive_key *key, const char *name,
     
    194196                         const struct security_descriptor *security);
    195197
    196 WERROR hive_key_del_value(struct hive_key *key, const char *name);
     198WERROR hive_key_del_value(TALLOC_CTX *mem_ctx,
     199                          struct hive_key *key, const char *name);
    197200
    198201WERROR hive_key_flush(struct hive_key *key);
     
    203206                          const char *location, struct hive_key **key);
    204207WERROR reg_open_regf_file(TALLOC_CTX *parent_ctx,
    205                           const char *location, struct smb_iconv_convenience *iconv_convenience,
    206                           struct hive_key **key);
     208                          const char *location, struct hive_key **key);
    207209WERROR reg_open_ldb_file(TALLOC_CTX *parent_ctx, const char *location,
    208210                         struct auth_session_info *session_info,
     
    216218                            const char *location, struct hive_key **key);
    217219WERROR reg_create_regf_file(TALLOC_CTX *parent_ctx,
    218                             struct smb_iconv_convenience *iconv_convenience,
    219220                            const char *location,
    220221                            int major_version,
     
    305306                              struct registry_key **key);
    306307
    307         WERROR (*delete_key) (struct registry_key *key, const char *name);
    308 
    309         WERROR (*delete_value) (struct registry_key *key, const char *name);
     308        WERROR (*delete_key) (TALLOC_CTX *mem_ctx,
     309                              struct registry_key *key, const char *name);
     310
     311        WERROR (*delete_value) (TALLOC_CTX *mem_ctx,
     312                                struct registry_key *key, const char *name);
    310313
    311314        WERROR (*enum_key) (TALLOC_CTX *mem_ctx,
     
    412415WERROR reg_key_get_subkey_by_index(TALLOC_CTX *mem_ctx,
    413416                                   const struct registry_key *key,
    414                                    int idx,
     417                                   uint32_t idx,
    415418                                   const char **name,
    416419                                   const char **classname,
     
    425428                                 uint32_t *type,
    426429                                 DATA_BLOB *data);
    427 WERROR reg_key_del(struct registry_key *parent, const char *name);
     430WERROR reg_key_del(TALLOC_CTX *mem_ctx,
     431                   struct registry_key *parent, const char *name);
    428432WERROR reg_key_add_name(TALLOC_CTX *mem_ctx,
    429433                        struct registry_key *parent, const char *name,
     
    435439WERROR reg_get_sec_desc(TALLOC_CTX *ctx, const struct registry_key *key,
    436440                        struct security_descriptor **secdesc);
    437 WERROR reg_del_value(struct registry_key *key, const char *valname);
     441WERROR reg_del_value(TALLOC_CTX *mem_ctx,
     442                     struct registry_key *key, const char *valname);
    438443WERROR reg_key_flush(struct registry_key *key);
    439444WERROR reg_create_key(TALLOC_CTX *mem_ctx,
     
    446451/* Utility functions */
    447452const char *str_regtype(int type);
    448 char *reg_val_data_string(TALLOC_CTX *mem_ctx, struct smb_iconv_convenience *iconv_convenience, uint32_t type, const DATA_BLOB data);
    449 char *reg_val_description(TALLOC_CTX *mem_ctx, struct smb_iconv_convenience *iconv_convenience, const char *name,
     453bool push_reg_sz(TALLOC_CTX *mem_ctx, DATA_BLOB *blob, const char *s);
     454bool push_reg_multi_sz(TALLOC_CTX *mem_ctx, DATA_BLOB *blob, const char **a);
     455bool pull_reg_sz(TALLOC_CTX *mem_ctx, const DATA_BLOB *blob, const char **s);
     456bool pull_reg_multi_sz(TALLOC_CTX *mem_ctx, const DATA_BLOB *blob, const char ***a);
     457int regtype_by_string(const char *str);
     458char *reg_val_data_string(TALLOC_CTX *mem_ctx, uint32_t type, const DATA_BLOB data);
     459char *reg_val_description(TALLOC_CTX *mem_ctx, const char *name,
    450460                          uint32_t type, const DATA_BLOB data);
    451 bool reg_string_to_val(TALLOC_CTX *mem_ctx, struct smb_iconv_convenience *iconv_convenience, const char *type_str,
     461bool reg_string_to_val(TALLOC_CTX *mem_ctx, const char *type_str,
    452462                       const char *data_str, uint32_t *type, DATA_BLOB *data);
    453463WERROR reg_open_key_abs(TALLOC_CTX *mem_ctx, struct registry_context *handle,
     
    486496
    487497WERROR reg_diff_apply(struct registry_context *ctx,
    488                                           struct smb_iconv_convenience *ic, const char *filename);
     498                                          const char *filename);
    489499
    490500WERROR reg_generate_diff(struct registry_context *ctx1,
     
    493503                         void *callback_data);
    494504WERROR reg_dotreg_diff_save(TALLOC_CTX *ctx, const char *filename,
    495                             struct smb_iconv_convenience *iconv_convenience,
    496505                            struct reg_diff_callbacks **callbacks,
    497506                            void **callback_data);
    498507WERROR reg_preg_diff_save(TALLOC_CTX *ctx, const char *filename,
    499                           struct smb_iconv_convenience *ic,
    500508                          struct reg_diff_callbacks **callbacks,
    501509                          void **callback_data);
     
    506514                             void *callback_data);
    507515WERROR reg_diff_load(const char *filename,
    508                      struct smb_iconv_convenience *iconv_convenience,
    509516                     const struct reg_diff_callbacks *callbacks,
    510517                     void *callback_data);
    511518
    512519WERROR reg_dotreg_diff_load(int fd,
    513                                      struct smb_iconv_convenience *iconv_convenience,
    514520                                     const struct reg_diff_callbacks *callbacks,
    515521                                     void *callback_data);
    516522
    517523WERROR reg_preg_diff_load(int fd,
    518                    struct smb_iconv_convenience *iconv_convenience,
    519524                                   const struct reg_diff_callbacks *callbacks,
    520525                                   void *callback_data);
Note: See TracChangeset for help on using the changeset viewer.