Francois Gouget : gameux: Make some functions static.

Alexandre Julliard julliard at winehq.org
Fri Apr 22 12:27:42 CDT 2011


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

Author: Francois Gouget <fgouget at free.fr>
Date:   Fri Apr 22 09:08:50 2011 +0200

gameux: Make some functions static.

---

 dlls/gameux/gameexplorer.c   |   36 +++++++++++++++++++++++++++++-------
 dlls/gameux/gamestatistics.c |    2 +-
 dlls/gameux/gameux_private.h |   41 -----------------------------------------
 3 files changed, 30 insertions(+), 49 deletions(-)

diff --git a/dlls/gameux/gameexplorer.c b/dlls/gameux/gameexplorer.c
index 096e48e..965a0f0 100644
--- a/dlls/gameux/gameexplorer.c
+++ b/dlls/gameux/gameexplorer.c
@@ -44,9 +44,14 @@ extern BOOL WINAPI GUIDFromStringW(LPCWSTR psz, LPGUID pguid);
 /*******************************************************************************
  * GAMEUX_initGameData
  *
- * Internal helper function. Description available in gameux_private.h file
+ * Internal helper function.
+ * Initializes GAME_DATA structure fields with proper values. Should be
+ * called always before first usage of this structure. Implemented in gameexplorer.c
+ *
+ * Parameters:
+ *  GameData                        [I/O]   pointer to structure to initialize
  */
-void GAMEUX_initGameData(struct GAMEUX_GAME_DATA *GameData)
+static void GAMEUX_initGameData(struct GAMEUX_GAME_DATA *GameData)
 {
     GameData->sGDFBinaryPath = NULL;
     GameData->sGameInstallDirectory = NULL;
@@ -56,9 +61,14 @@ void GAMEUX_initGameData(struct GAMEUX_GAME_DATA *GameData)
 /*******************************************************************************
  * GAMEUX_uninitGameData
  *
- * Internal helper function. Description available in gameux_private.h file
+ * Internal helper function.
+ * Properly frees all data stored or pointed by fields of GAME_DATA structure.
+ * Should be called before freeing this structure. Implemented in gameexplorer.c
+ *
+ * Parameters:
+ *  GameData                        [I/O]   pointer to structure to uninitialize
  */
-void GAMEUX_uninitGameData(struct GAMEUX_GAME_DATA *GameData)
+static void GAMEUX_uninitGameData(struct GAMEUX_GAME_DATA *GameData)
 {
     HeapFree(GetProcessHeap(), 0, GameData->sGDFBinaryPath);
     HeapFree(GetProcessHeap(), 0, GameData->sGameInstallDirectory);
@@ -497,11 +507,23 @@ static HRESULT GAMEUX_RemoveRegistryRecord(GUID* pInstanceID)
     return hr;
 }
 /*******************************************************************************
- * GAMEUX_RegisterGame
+ *  GAMEUX_RegisterGame
  *
- * Internal helper function. Description available in gameux_private.h file
+ * Internal helper function. Registers game associated with given GDF binary in
+ * Game Explorer. Implemented in gameexplorer.c
+ *
+ * Parameters:
+ *  sGDFBinaryPath                  [I]     path to binary containing GDF file in
+ *                                          resources
+ *  sGameInstallDirectory           [I]     path to directory, where game installed
+ *                                          it's files.
+ *  installScope                    [I]     scope of game installation
+ *  pInstanceID                     [I/O]   pointer to game instance identifier.
+ *                                          If pointing to GUID_NULL, then new
+ *                                          identifier will be generated automatically
+ *                                          and returned via this parameter
  */
-HRESULT WINAPI GAMEUX_RegisterGame(LPCWSTR sGDFBinaryPath,
+static HRESULT WINAPI GAMEUX_RegisterGame(LPCWSTR sGDFBinaryPath,
         LPCWSTR sGameInstallDirectory,
         GAME_INSTALL_SCOPE installScope,
         GUID *pInstanceID)
diff --git a/dlls/gameux/gamestatistics.c b/dlls/gameux/gamestatistics.c
index b0e7674..63b8c8f 100644
--- a/dlls/gameux/gamestatistics.c
+++ b/dlls/gameux/gamestatistics.c
@@ -994,7 +994,7 @@ static const struct IGameStatisticsVtbl GameStatisticsImplVtbl =
 };
 
 
-HRESULT create_IGameStatistics(GameStatisticsImpl** ppStats)
+static HRESULT create_IGameStatistics(GameStatisticsImpl** ppStats)
 {
     TRACE("(%p)\n", ppStats);
 
diff --git a/dlls/gameux/gameux_private.h b/dlls/gameux/gameux_private.h
index c8923b5..dc0c1d1 100644
--- a/dlls/gameux/gameux_private.h
+++ b/dlls/gameux/gameux_private.h
@@ -46,47 +46,6 @@ struct GAMEUX_GAME_DATA
     BSTR bstrDescription;           /* game's description */
 };
 /*******************************************************************************
- * GAMEUX_initGameData
- *
- * Initializes GAME_DATA structure fields with proper values. Should be
- * called always before first usage of this structure. Implemented in gameexplorer.c
- *
- * Parameters:
- *  GameData                        [I/O]   pointer to structure to initialize
- */
-void GAMEUX_initGameData(struct GAMEUX_GAME_DATA *GameData);
-/*******************************************************************************
- * GAMEUX_uninitGameData
- *
- * Properly frees all data stored or pointed by fields of GAME_DATA structure.
- * Should be called before freeing this structure. Implemented in gameexplorer.c
- *
- * Parameters:
- *  GameData                        [I/O]   pointer to structure to uninitialize
- */
-void GAMEUX_uninitGameData(struct GAMEUX_GAME_DATA *GameData);
-/*******************************************************************************
- *  GAMEUX_RegisterGame
- *
- * Helper function. Registers game associated with given GDF binary in
- * Game Explorer. Implemented in gameexplorer.c
- *
- * Parameters:
- *  sGDFBinaryPath                  [I]     path to binary containing GDF file in
- *                                          resources
- *  sGameInstallDirectory           [I]     path to directory, where game installed
- *                                          it's files.
- *  installScope                    [I]     scope of game installation
- *  pInstanceID                     [I/O]   pointer to game instance identifier.
- *                                          If pointing to GUID_NULL, then new
- *                                          identifier will be generated automatically
- *                                          and returned via this parameter
- */
-HRESULT WINAPI GAMEUX_RegisterGame(LPCWSTR sGDFBinaryPath,
-        LPCWSTR sGameInstallDirectory,
-        GAME_INSTALL_SCOPE installScope,
-        GUID *pInstanceID);
-/*******************************************************************************
  * GAMEUX_FindGameInstanceId
  *
  * Helper function. Searches for instance identifier of given game in given




More information about the wine-cvs mailing list