Changeset 745 for trunk/server/source4/lib/registry/registry.h
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source4/lib/registry/registry.h
r414 r745 24 24 struct registry_context; 25 25 struct loadparm_context; 26 struct smb_iconv_convenience;27 26 28 27 #include <talloc.h> … … 71 70 */ 72 71 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, 74 73 const char *classname, 75 74 struct security_descriptor *desc, … … 78 77 * Remove an existing key. 79 78 */ 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); 81 81 82 82 /** … … 89 89 */ 90 90 WERROR (*enum_value) (TALLOC_CTX *mem_ctx, 91 struct hive_key *key, int idx,91 struct hive_key *key, uint32_t idx, 92 92 const char **name, uint32_t *type, 93 93 DATA_BLOB *data); … … 109 109 * Remove a value. 110 110 */ 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); 112 113 113 114 /* Security Descriptors */ … … 167 168 struct security_descriptor *desc, 168 169 struct hive_key **key); 169 WERROR hive_key_del(const struct hive_key *key, const char *name); 170 WERROR hive_key_del(TALLOC_CTX *mem_ctx, 171 const struct hive_key *key, const char *name); 170 172 WERROR hive_get_key_by_name(TALLOC_CTX *mem_ctx, 171 173 const struct hive_key *key, const char *name, … … 194 196 const struct security_descriptor *security); 195 197 196 WERROR hive_key_del_value(struct hive_key *key, const char *name); 198 WERROR hive_key_del_value(TALLOC_CTX *mem_ctx, 199 struct hive_key *key, const char *name); 197 200 198 201 WERROR hive_key_flush(struct hive_key *key); … … 203 206 const char *location, struct hive_key **key); 204 207 WERROR 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); 207 209 WERROR reg_open_ldb_file(TALLOC_CTX *parent_ctx, const char *location, 208 210 struct auth_session_info *session_info, … … 216 218 const char *location, struct hive_key **key); 217 219 WERROR reg_create_regf_file(TALLOC_CTX *parent_ctx, 218 struct smb_iconv_convenience *iconv_convenience,219 220 const char *location, 220 221 int major_version, … … 305 306 struct registry_key **key); 306 307 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); 310 313 311 314 WERROR (*enum_key) (TALLOC_CTX *mem_ctx, … … 412 415 WERROR reg_key_get_subkey_by_index(TALLOC_CTX *mem_ctx, 413 416 const struct registry_key *key, 414 int idx,417 uint32_t idx, 415 418 const char **name, 416 419 const char **classname, … … 425 428 uint32_t *type, 426 429 DATA_BLOB *data); 427 WERROR reg_key_del(struct registry_key *parent, const char *name); 430 WERROR reg_key_del(TALLOC_CTX *mem_ctx, 431 struct registry_key *parent, const char *name); 428 432 WERROR reg_key_add_name(TALLOC_CTX *mem_ctx, 429 433 struct registry_key *parent, const char *name, … … 435 439 WERROR reg_get_sec_desc(TALLOC_CTX *ctx, const struct registry_key *key, 436 440 struct security_descriptor **secdesc); 437 WERROR reg_del_value(struct registry_key *key, const char *valname); 441 WERROR reg_del_value(TALLOC_CTX *mem_ctx, 442 struct registry_key *key, const char *valname); 438 443 WERROR reg_key_flush(struct registry_key *key); 439 444 WERROR reg_create_key(TALLOC_CTX *mem_ctx, … … 446 451 /* Utility functions */ 447 452 const 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, 453 bool push_reg_sz(TALLOC_CTX *mem_ctx, DATA_BLOB *blob, const char *s); 454 bool push_reg_multi_sz(TALLOC_CTX *mem_ctx, DATA_BLOB *blob, const char **a); 455 bool pull_reg_sz(TALLOC_CTX *mem_ctx, const DATA_BLOB *blob, const char **s); 456 bool pull_reg_multi_sz(TALLOC_CTX *mem_ctx, const DATA_BLOB *blob, const char ***a); 457 int regtype_by_string(const char *str); 458 char *reg_val_data_string(TALLOC_CTX *mem_ctx, uint32_t type, const DATA_BLOB data); 459 char *reg_val_description(TALLOC_CTX *mem_ctx, const char *name, 450 460 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,461 bool reg_string_to_val(TALLOC_CTX *mem_ctx, const char *type_str, 452 462 const char *data_str, uint32_t *type, DATA_BLOB *data); 453 463 WERROR reg_open_key_abs(TALLOC_CTX *mem_ctx, struct registry_context *handle, … … 486 496 487 497 WERROR reg_diff_apply(struct registry_context *ctx, 488 struct smb_iconv_convenience *ic,const char *filename);498 const char *filename); 489 499 490 500 WERROR reg_generate_diff(struct registry_context *ctx1, … … 493 503 void *callback_data); 494 504 WERROR reg_dotreg_diff_save(TALLOC_CTX *ctx, const char *filename, 495 struct smb_iconv_convenience *iconv_convenience,496 505 struct reg_diff_callbacks **callbacks, 497 506 void **callback_data); 498 507 WERROR reg_preg_diff_save(TALLOC_CTX *ctx, const char *filename, 499 struct smb_iconv_convenience *ic,500 508 struct reg_diff_callbacks **callbacks, 501 509 void **callback_data); … … 506 514 void *callback_data); 507 515 WERROR reg_diff_load(const char *filename, 508 struct smb_iconv_convenience *iconv_convenience,509 516 const struct reg_diff_callbacks *callbacks, 510 517 void *callback_data); 511 518 512 519 WERROR reg_dotreg_diff_load(int fd, 513 struct smb_iconv_convenience *iconv_convenience,514 520 const struct reg_diff_callbacks *callbacks, 515 521 void *callback_data); 516 522 517 523 WERROR reg_preg_diff_load(int fd, 518 struct smb_iconv_convenience *iconv_convenience,519 524 const struct reg_diff_callbacks *callbacks, 520 525 void *callback_data);
Note:
See TracChangeset
for help on using the changeset viewer.