Merge patchfile.h into registry.h
authorJelmer Vernooij <jelmer@samba.org>
Wed, 2 Apr 2008 11:58:05 +0000 (13:58 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 2 Apr 2008 11:58:05 +0000 (13:58 +0200)
source/lib/registry/config.mk
source/lib/registry/patchfile.c
source/lib/registry/patchfile.h [deleted file]
source/lib/registry/patchfile_dotreg.c
source/lib/registry/patchfile_preg.c
source/lib/registry/registry.h

index 70ffce0..1deac1d 100644 (file)
@@ -39,7 +39,7 @@ PUBLIC_DEPENDENCIES = \
 # End MODULE registry_ldb
 ################################################
 
-PUBLIC_HEADERS += $(addprefix lib/registry/, registry.h hive.h patchfile.h)
+PUBLIC_HEADERS += $(addprefix lib/registry/, registry.h hive.h)
 
 [SUBSYSTEM::registry_common]
 PUBLIC_DEPENDENCIES = registry
index 687fd4b..15e3a15 100644 (file)
@@ -20,7 +20,6 @@
 */
 
 #include "includes.h"
-#include "lib/registry/patchfile.h"
 #include "lib/registry/registry.h"
 #include "system/filesys.h"
 #include "param/param.h"
diff --git a/source/lib/registry/patchfile.h b/source/lib/registry/patchfile.h
deleted file mode 100644 (file)
index d586aa4..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
-   Unix SMB/CIFS implementation.
-   Patchfile interface
-   Copyright (C) Jelmer Vernooij 2006
-   Copyright (C) Wilco Baan Hofman 2006
-
-   This program is free software; you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 3 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-*/
-
-#ifndef _PATCHFILE_H
-#define _PATCHFILE_H
-
-#include "lib/registry/registry.h"
-
-struct reg_diff_callbacks {
-       WERROR (*add_key) (void *callback_data, const char *key_name);
-       WERROR (*set_value) (void *callback_data, const char *key_name,
-                            const char *value_name, uint32_t value_type,
-                            DATA_BLOB value);
-       WERROR (*del_value) (void *callback_data, const char *key_name,
-                            const char *value_name);
-       WERROR (*del_key) (void *callback_data, const char *key_name);
-       WERROR (*del_all_values) (void *callback_data, const char *key_name);
-       WERROR (*done) (void *callback_data);
-};
-
-WERROR reg_diff_apply(struct registry_context *ctx, const char *filename);
-
-WERROR reg_generate_diff(struct registry_context *ctx1,
-                        struct registry_context *ctx2,
-                        const struct reg_diff_callbacks *callbacks,
-                        void *callback_data);
-WERROR reg_dotreg_diff_save(TALLOC_CTX *ctx, const char *filename,
-                           struct smb_iconv_convenience *iconv_convenience,
-                           struct reg_diff_callbacks **callbacks,
-                           void **callback_data);
-WERROR reg_generate_diff_key(struct registry_key *oldkey,
-                            struct registry_key *newkey,
-                            const char *path,
-                            const struct reg_diff_callbacks *callbacks,
-                            void *callback_data);
-
-#endif /* _PATCHFILE_H */
index 5150c90..59f4044 100644 (file)
@@ -23,7 +23,6 @@
 /* FIXME Newer .REG files, created by Windows XP and above use unicode UTF-16 */
 
 #include "includes.h"
-#include "lib/registry/patchfile.h"
 #include "lib/registry/registry.h"
 #include "system/filesys.h"
 #include "param/param.h"
index 8f02a0b..0fa367b 100644 (file)
@@ -21,7 +21,6 @@
 
 #include "includes.h"
 #include "lib/registry/registry.h"
-#include "lib/registry/patchfile.h"
 #include "system/filesys.h"
 #include "param/param.h"
 
index 5e0b971..b76f2c4 100644 (file)
@@ -66,8 +66,6 @@ struct registry_key
        struct registry_context *context;
 };
 
-#include "lib/registry/patchfile.h"
-
 struct registry_value
 {
        const char *name;
@@ -285,5 +283,34 @@ WERROR reg_get_security(TALLOC_CTX *mem_ctx,
 WERROR reg_set_security(struct registry_key *key,
                        struct security_descriptor *security);
 
+struct reg_diff_callbacks {
+       WERROR (*add_key) (void *callback_data, const char *key_name);
+       WERROR (*set_value) (void *callback_data, const char *key_name,
+                            const char *value_name, uint32_t value_type,
+                            DATA_BLOB value);
+       WERROR (*del_value) (void *callback_data, const char *key_name,
+                            const char *value_name);
+       WERROR (*del_key) (void *callback_data, const char *key_name);
+       WERROR (*del_all_values) (void *callback_data, const char *key_name);
+       WERROR (*done) (void *callback_data);
+};
+
+WERROR reg_diff_apply(struct registry_context *ctx, const char *filename);
+
+WERROR reg_generate_diff(struct registry_context *ctx1,
+                        struct registry_context *ctx2,
+                        const struct reg_diff_callbacks *callbacks,
+                        void *callback_data);
+WERROR reg_dotreg_diff_save(TALLOC_CTX *ctx, const char *filename,
+                           struct smb_iconv_convenience *iconv_convenience,
+                           struct reg_diff_callbacks **callbacks,
+                           void **callback_data);
+WERROR reg_generate_diff_key(struct registry_key *oldkey,
+                            struct registry_key *newkey,
+                            const char *path,
+                            const struct reg_diff_callbacks *callbacks,
+                            void *callback_data);
+
+
 
 #endif /* _REGISTRY_H */