return 0;
}
-static void reg_ldb_unpack_value(TALLOC_CTX *mem_ctx, struct ldb_message *msg, char **name, uint32_t *type, DATA_BLOB *data)
+static void reg_ldb_unpack_value(TALLOC_CTX *mem_ctx, struct ldb_message *msg, const char **name, uint32_t *type, DATA_BLOB *data)
{
const struct ldb_val *val;
*name = talloc_strdup(mem_ctx, ldb_msg_find_attr_as_string(msg, "value", NULL));
/* structure to store the registry handles */
struct registry_key
{
- char *name;
+ const char *name;
const char *path;
- char *class_name;
+ const char *class_name;
NTTIME last_mod;
struct registry_hive *hive;
void *backend_data;
struct registry_value
{
- char *name;
+ const char *name;
unsigned int data_type;
DATA_BLOB data;
};
struct reg_diff_value
{
- char *name;
+ const char *name;
enum { REG_DIFF_DEL_VAL, REG_DIFF_SET_VAL } changetype;
uint32_t type;
DATA_BLOB data;
struct reg_diff_key
{
- char *name;
+ const char *name;
enum { REG_DIFF_CHANGE_KEY, REG_DIFF_DEL_KEY } changetype;
uint32_t numvalues;
struct reg_diff_value *values;
struct reg_diff
{
- char *format;
+ const char *format;
uint32_t numkeys;
struct reg_diff_key *keys;
};