]> git.samba.org - gd/samba-autobuild/.git/commitdiff
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)
(This used to be commit 7b434df67aefc667993f0ebd955af9c1c258f153)

source4/lib/registry/config.mk
source4/lib/registry/patchfile.c
source4/lib/registry/patchfile.h [deleted file]
source4/lib/registry/patchfile_dotreg.c
source4/lib/registry/patchfile_preg.c
source4/lib/registry/registry.h

index 70ffce020aaa637aca49cd16d4eb59eda4ac6c29..1deac1dd46296cf3e5f9d91f312994f976d37143 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 687fd4b91b2c4e9da621616f77845bdb1135b323..15e3a158f2b8d9a0b8683316317de4779668fb04 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/source4/lib/registry/patchfile.h b/source4/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 5150c90291524e48d4ed1a8b5d14329131b6ecad..59f40447135a9b332e1fdc1cb12fac7767a30624 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 8f02a0b5e382fec672f03dbc6e1a3062e7aeb9f5..0fa367bfcb7ee8a915b9316ff8877b351dac3e0c 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 5e0b971a1d717db02640643f8091d995c3727f0b..b76f2c4bcc06e6834c8d83a9a8ad93b87f6f43c5 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 */