Marcus Meissner : setupapi: Mark internal symbols with hidden visibility.

Alexandre Julliard julliard at winehq.org
Tue May 24 12:53:44 CDT 2011


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

Author: Marcus Meissner <meissner at suse.de>
Date:   Fri May 13 18:17:44 2011 +0200

setupapi: Mark internal symbols with hidden visibility.

---

 dlls/setupapi/setupapi_private.h |   18 ++++----
 dlls/shdocvw/shdocvw.h           |   90 +++++++++++++++++++-------------------
 2 files changed, 54 insertions(+), 54 deletions(-)

diff --git a/dlls/setupapi/setupapi_private.h b/dlls/setupapi/setupapi_private.h
index 70394e2..5cdedb6 100644
--- a/dlls/setupapi/setupapi_private.h
+++ b/dlls/setupapi/setupapi_private.h
@@ -43,7 +43,7 @@
 #define REGPART_RENAME "\\Rename"
 #define REG_VERSIONCONFLICT "Software\\Microsoft\\VersionConflictManager"
 
-extern HINSTANCE SETUPAPI_hInstance;
+extern HINSTANCE SETUPAPI_hInstance DECLSPEC_HIDDEN;
 
 static inline WCHAR *strdupW( const WCHAR *str )
 {
@@ -83,10 +83,10 @@ static inline WCHAR *strdupAtoW( const char *str )
 /* string substitutions */
 
 struct inf_file;
-extern const WCHAR *DIRID_get_string( int dirid );
-extern const WCHAR *PARSER_get_inf_filename( HINF hinf );
-extern WCHAR *PARSER_get_src_root( HINF hinf );
-extern WCHAR *PARSER_get_dest_dir( INFCONTEXT *context );
+extern const WCHAR *DIRID_get_string( int dirid ) DECLSPEC_HIDDEN;
+extern const WCHAR *PARSER_get_inf_filename( HINF hinf ) DECLSPEC_HIDDEN;
+extern WCHAR *PARSER_get_src_root( HINF hinf ) DECLSPEC_HIDDEN;
+extern WCHAR *PARSER_get_dest_dir( INFCONTEXT *context ) DECLSPEC_HIDDEN;
 
 /* support for Ascii queue callback functions */
 
@@ -96,15 +96,15 @@ struct callback_WtoA_context
     PSP_FILE_CALLBACK_A orig_handler;
 };
 
-UINT CALLBACK QUEUE_callback_WtoA( void *context, UINT notification, UINT_PTR, UINT_PTR );
+UINT CALLBACK QUEUE_callback_WtoA( void *context, UINT notification, UINT_PTR, UINT_PTR ) DECLSPEC_HIDDEN;
 
 /* from msvcrt/sys/stat.h */
 #define _S_IWRITE 0x0080
 #define _S_IREAD  0x0100
 
-extern OSVERSIONINFOW OsVersionInfo;
+extern OSVERSIONINFOW OsVersionInfo DECLSPEC_HIDDEN;
 
-extern BOOL create_fake_dll( const WCHAR *name, const WCHAR *source );
-extern void cleanup_fake_dlls(void);
+extern BOOL create_fake_dll( const WCHAR *name, const WCHAR *source ) DECLSPEC_HIDDEN;
+extern void cleanup_fake_dlls(void) DECLSPEC_HIDDEN;
 
 #endif /* __SETUPAPI_PRIVATE_H */
diff --git a/dlls/shdocvw/shdocvw.h b/dlls/shdocvw/shdocvw.h
index 7a68499..fd234d8 100644
--- a/dlls/shdocvw/shdocvw.h
+++ b/dlls/shdocvw/shdocvw.h
@@ -50,7 +50,7 @@
  * Shell Instance Objects
  */
 extern HRESULT SHDOCVW_GetShellInstanceObjectClassObject(REFCLSID rclsid, 
-    REFIID riid, LPVOID *ppvClassObj);
+    REFIID riid, LPVOID *ppvClassObj) DECLSPEC_HIDDEN;
 
 /**********************************************************************
  * WebBrowser declaration for SHDOCVW.DLL
@@ -208,73 +208,73 @@ struct InternetExplorer {
     IEDocHost *doc_host;
 };
 
-void WebBrowser_OleObject_Init(WebBrowser*);
-void WebBrowser_ViewObject_Init(WebBrowser*);
-void WebBrowser_Persist_Init(WebBrowser*);
-void WebBrowser_ClassInfo_Init(WebBrowser*);
+void WebBrowser_OleObject_Init(WebBrowser*) DECLSPEC_HIDDEN;
+void WebBrowser_ViewObject_Init(WebBrowser*) DECLSPEC_HIDDEN;
+void WebBrowser_Persist_Init(WebBrowser*) DECLSPEC_HIDDEN;
+void WebBrowser_ClassInfo_Init(WebBrowser*) DECLSPEC_HIDDEN;
 
-void WebBrowser_OleObject_Destroy(WebBrowser*);
+void WebBrowser_OleObject_Destroy(WebBrowser*) DECLSPEC_HIDDEN;
 
-void DocHost_Init(DocHost*,IDispatch*,const IDocHostContainerVtbl*);
-void DocHost_ClientSite_Init(DocHost*);
-void DocHost_Frame_Init(DocHost*);
-void release_dochost_client(DocHost*);
+void DocHost_Init(DocHost*,IDispatch*,const IDocHostContainerVtbl*) DECLSPEC_HIDDEN;
+void DocHost_ClientSite_Init(DocHost*) DECLSPEC_HIDDEN;
+void DocHost_Frame_Init(DocHost*) DECLSPEC_HIDDEN;
+void release_dochost_client(DocHost*) DECLSPEC_HIDDEN;
 
-void DocHost_Release(DocHost*);
-void DocHost_ClientSite_Release(DocHost*);
+void DocHost_Release(DocHost*) DECLSPEC_HIDDEN;
+void DocHost_ClientSite_Release(DocHost*) DECLSPEC_HIDDEN;
 
-void ConnectionPointContainer_Init(ConnectionPointContainer*,IUnknown*);
-void ConnectionPointContainer_Destroy(ConnectionPointContainer*);
+void ConnectionPointContainer_Init(ConnectionPointContainer*,IUnknown*) DECLSPEC_HIDDEN;
+void ConnectionPointContainer_Destroy(ConnectionPointContainer*) DECLSPEC_HIDDEN;
 
-void HlinkFrame_Init(HlinkFrame*,IUnknown*,DocHost*);
-BOOL HlinkFrame_QI(HlinkFrame*,REFIID,void**);
+void HlinkFrame_Init(HlinkFrame*,IUnknown*,DocHost*) DECLSPEC_HIDDEN;
+BOOL HlinkFrame_QI(HlinkFrame*,REFIID,void**) DECLSPEC_HIDDEN;
 
-HRESULT ShellBrowser_Create(IShellBrowser**);
-HRESULT WebBrowserV1_Create(IUnknown*,REFIID,void**);
-HRESULT WebBrowserV2_Create(IUnknown*,REFIID,void**);
+HRESULT ShellBrowser_Create(IShellBrowser**) DECLSPEC_HIDDEN;
+HRESULT WebBrowserV1_Create(IUnknown*,REFIID,void**) DECLSPEC_HIDDEN;
+HRESULT WebBrowserV2_Create(IUnknown*,REFIID,void**) DECLSPEC_HIDDEN;
 
-void create_doc_view_hwnd(DocHost*);
-void deactivate_document(DocHost*);
-HRESULT dochost_object_available(DocHost*,IUnknown*);
-void call_sink(ConnectionPoint*,DISPID,DISPPARAMS*);
-HRESULT navigate_url(DocHost*,LPCWSTR,const VARIANT*,const VARIANT*,VARIANT*,VARIANT*);
-HRESULT go_home(DocHost*);
-void set_doc_state(DocHost*,READYSTATE);
-HRESULT get_location_url(DocHost*,BSTR*);
-void handle_navigation_error(DocHost*,HRESULT,BSTR,IHTMLWindow2*);
+void create_doc_view_hwnd(DocHost*) DECLSPEC_HIDDEN;
+void deactivate_document(DocHost*) DECLSPEC_HIDDEN;
+HRESULT dochost_object_available(DocHost*,IUnknown*) DECLSPEC_HIDDEN;
+void call_sink(ConnectionPoint*,DISPID,DISPPARAMS*) DECLSPEC_HIDDEN;
+HRESULT navigate_url(DocHost*,LPCWSTR,const VARIANT*,const VARIANT*,VARIANT*,VARIANT*) DECLSPEC_HIDDEN;
+HRESULT go_home(DocHost*) DECLSPEC_HIDDEN;
+void set_doc_state(DocHost*,READYSTATE) DECLSPEC_HIDDEN;
+HRESULT get_location_url(DocHost*,BSTR*) DECLSPEC_HIDDEN;
+void handle_navigation_error(DocHost*,HRESULT,BSTR,IHTMLWindow2*) DECLSPEC_HIDDEN;
 
 #define WM_DOCHOSTTASK (WM_USER+0x300)
-void push_dochost_task(DocHost*,task_header_t*,task_proc_t,BOOL);
-LRESULT  process_dochost_task(DocHost*,LPARAM);
+void push_dochost_task(DocHost*,task_header_t*,task_proc_t,BOOL) DECLSPEC_HIDDEN;
+LRESULT  process_dochost_task(DocHost*,LPARAM) DECLSPEC_HIDDEN;
 
-HRESULT InternetExplorer_Create(IUnknown*,REFIID,void**);
-void InternetExplorer_WebBrowser_Init(InternetExplorer*);
+HRESULT InternetExplorer_Create(IUnknown*,REFIID,void**) DECLSPEC_HIDDEN;
+void InternetExplorer_WebBrowser_Init(InternetExplorer*) DECLSPEC_HIDDEN;
 
-void released_obj(void);
+void released_obj(void) DECLSPEC_HIDDEN;
 
-HRESULT CUrlHistory_Create(IUnknown*,REFIID,void**);
+HRESULT CUrlHistory_Create(IUnknown*,REFIID,void**) DECLSPEC_HIDDEN;
 
-HRESULT InternetShortcut_Create(IUnknown*,REFIID,void**);
+HRESULT InternetShortcut_Create(IUnknown*,REFIID,void**) DECLSPEC_HIDDEN;
 
-HRESULT TaskbarList_Create(IUnknown*,REFIID,void**);
+HRESULT TaskbarList_Create(IUnknown*,REFIID,void**) DECLSPEC_HIDDEN;
 
 /**********************************************************************
  * Dll lifetime tracking declaration for shdocvw.dll
  */
-extern LONG SHDOCVW_refCount;
+extern LONG SHDOCVW_refCount DECLSPEC_HIDDEN;
 static inline void SHDOCVW_LockModule(void) { InterlockedIncrement( &SHDOCVW_refCount ); }
 static inline void SHDOCVW_UnlockModule(void) { InterlockedDecrement( &SHDOCVW_refCount ); }
 
-extern HINSTANCE shdocvw_hinstance;
-extern void register_iewindow_class(void);
-extern void unregister_iewindow_class(void);
-extern HRESULT update_ie_statustext(InternetExplorer*, LPCWSTR);
+extern HINSTANCE shdocvw_hinstance DECLSPEC_HIDDEN;
+extern void register_iewindow_class(void) DECLSPEC_HIDDEN;
+extern void unregister_iewindow_class(void) DECLSPEC_HIDDEN;
+extern HRESULT update_ie_statustext(InternetExplorer*, LPCWSTR) DECLSPEC_HIDDEN;
 
-HRESULT register_class_object(BOOL);
-HRESULT get_typeinfo(ITypeInfo**);
-DWORD register_iexplore(BOOL);
+HRESULT register_class_object(BOOL) DECLSPEC_HIDDEN;
+HRESULT get_typeinfo(ITypeInfo**) DECLSPEC_HIDDEN;
+DWORD register_iexplore(BOOL) DECLSPEC_HIDDEN;
 
-const char *debugstr_variant(const VARIANT*);
+const char *debugstr_variant(const VARIANT*) DECLSPEC_HIDDEN;
 
 /* memory allocation functions */
 




More information about the wine-cvs mailing list