James Hawkins : advpack: Put function declarations in advpack_private.h.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Apr 19 06:03:42 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: b2a3ffd893413726cdff14df5c6dac2360b4ecf2
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=b2a3ffd893413726cdff14df5c6dac2360b4ecf2

Author: James Hawkins <truiken at gmail.com>
Date:   Tue Apr 18 16:13:26 2006 -0500

advpack: Put function declarations in advpack_private.h.

---

 dlls/advpack/advpack.c         |    3 +--
 dlls/advpack/advpack_private.h |   29 +++++++++++++++++++++++++++++
 dlls/advpack/files.c           |    3 +--
 dlls/advpack/install.c         |    1 +
 4 files changed, 32 insertions(+), 4 deletions(-)
 create mode 100644 dlls/advpack/advpack_private.h

diff --git a/dlls/advpack/advpack.c b/dlls/advpack/advpack.c
index f68ab2b..297dfca 100644
--- a/dlls/advpack/advpack.c
+++ b/dlls/advpack/advpack.c
@@ -32,6 +32,7 @@ #include "setupapi.h"
 #include "advpub.h"
 #include "wine/unicode.h"
 #include "wine/debug.h"
+#include "advpack_private.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(advpack);
 
@@ -40,8 +41,6 @@ typedef HRESULT (WINAPI *DLLREGISTER) (v
 #define MAX_FIELD_LENGTH    512
 #define PREFIX_LEN          5
 
-HRESULT launch_exe(LPCWSTR cmd, LPCWSTR dir, HANDLE *phEXE);
-
 /* registry path of the Installed Components key for per-user stubs */
 static const WCHAR setup_key[] = {
     'S','O','F','T','W','A','R','E','\\',
diff --git a/dlls/advpack/advpack_private.h b/dlls/advpack/advpack_private.h
new file mode 100644
index 0000000..a36b32b
--- /dev/null
+++ b/dlls/advpack/advpack_private.h
@@ -0,0 +1,29 @@
+/*
+ * Advpack private header
+ *
+ * Copyright 2006 James Hawkins
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+#ifndef __ADVPACK_PRIVATE_H
+#define __ADVPACK_PRIVATE_H
+
+LPWSTR get_parameter(LPWSTR *params, WCHAR separator);
+
+HRESULT launch_exe(LPCWSTR cmd, LPCWSTR dir, HANDLE *phEXE);
+HRESULT do_ocx_reg(HMODULE hocx, BOOL do_reg);
+
+#endif /* __ADVPACK_PRIVATE_H */
diff --git a/dlls/advpack/files.c b/dlls/advpack/files.c
index 90ba6cd..7e0706e 100644
--- a/dlls/advpack/files.c
+++ b/dlls/advpack/files.c
@@ -31,11 +31,10 @@ #include "setupapi.h"
 #include "advpub.h"
 #include "wine/debug.h"
 #include "wine/unicode.h"
+#include "advpack_private.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(advpack);
 
-LPWSTR get_parameter(LPWSTR *params, WCHAR separator);
-
 /* converts an ansi double null-terminated list to a unicode list */
 static LPWSTR ansi_to_unicode_list(LPCSTR ansi_list)
 {
diff --git a/dlls/advpack/install.c b/dlls/advpack/install.c
index aeae7cd..eeffa9e 100644
--- a/dlls/advpack/install.c
+++ b/dlls/advpack/install.c
@@ -32,6 +32,7 @@ #include "setupapi.h"
 #include "advpub.h"
 #include "wine/debug.h"
 #include "wine/unicode.h"
+#include "advpack_private.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(advpack);
 




More information about the wine-cvs mailing list