[Mplayer-cvslog] CVS: main/loader registry.c,1.13,1.14 registry.h,1.4,1.5
Alex Beregszaszi
alex at mplayerhq.hu
Mon Apr 21 22:13:26 CEST 2003
Update of /cvsroot/mplayer/main/loader
In directory mail:/var/tmp.root/cvs-serv12403
Modified Files:
registry.c registry.h
Log Message:
cygwin support patch by Sascha Sommer
Index: registry.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/registry.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- registry.c 13 Sep 2002 19:43:13 -0000 1.13
+++ registry.c 21 Apr 2003 20:13:21 -0000 1.14
@@ -350,7 +350,7 @@
return t;
}
-long RegOpenKeyExA(long key, const char* subkey, long reserved, long access, int* newkey)
+long __stdcall RegOpenKeyExA(long key, const char* subkey, long reserved, long access, int* newkey)
{
char* full_name;
reg_handle_t* t;
@@ -380,7 +380,7 @@
return 0;
}
-long RegCloseKey(long key)
+long __stdcall RegCloseKey(long key)
{
reg_handle_t *handle;
if(key==(long)HKEY_LOCAL_MACHINE)
@@ -402,7 +402,7 @@
return 1;
}
-long RegQueryValueExA(long key, const char* value, int* reserved, int* type, int* data, int* count)
+long __stdcall RegQueryValueExA(long key, const char* value, int* reserved, int* type, int* data, int* count)
{
struct reg_value* t;
char* c;
@@ -435,7 +435,7 @@
}
return 0;
}
-long RegCreateKeyExA(long key, const char* name, long reserved,
+long __stdcall RegCreateKeyExA(long key, const char* name, long reserved,
void* classs, long options, long security,
void* sec_attr, int* newkey, int* status)
{
@@ -478,7 +478,7 @@
);
*/
-long RegEnumValueA(HKEY hkey, DWORD index, LPSTR value, LPDWORD val_count,
+long __stdcall RegEnumValueA(HKEY hkey, DWORD index, LPSTR value, LPDWORD val_count,
LPDWORD reserved, LPDWORD type, LPBYTE data, LPDWORD count)
{
// currenly just made to support MSZH & ZLIB
@@ -502,7 +502,7 @@
return ERROR_NO_MORE_ITEMS;
}
-long RegSetValueExA(long key, const char* name, long v1, long v2, const void* data, long size)
+long __stdcall RegSetValueExA(long key, const char* name, long v1, long v2, const void* data, long size)
{
struct reg_value* t;
char* c;
@@ -518,7 +518,7 @@
return 0;
}
-long RegEnumKeyExA(HKEY hKey, DWORD dwIndex, LPSTR lpName, LPDWORD lpcbName,
+long __stdcall RegEnumKeyExA(HKEY hKey, DWORD dwIndex, LPSTR lpName, LPDWORD lpcbName,
LPDWORD lpReserved, LPSTR lpClass, LPDWORD lpcbClass,
LPFILETIME lpftLastWriteTime)
{
Index: registry.h
===================================================================
RCS file: /cvsroot/mplayer/main/loader/registry.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- registry.h 11 Dec 2001 22:58:13 -0000 1.4
+++ registry.h 21 Apr 2003 20:13:21 -0000 1.5
@@ -14,23 +14,23 @@
void free_registry(void);
-long RegOpenKeyExA(long key, const char* subkey, long reserved,
+long __stdcall RegOpenKeyExA(long key, const char* subkey, long reserved,
long access, int* newkey);
-long RegCloseKey(long key);
-long RegQueryValueExA(long key, const char* value, int* reserved,
+long __stdcall RegCloseKey(long key);
+long __stdcall RegQueryValueExA(long key, const char* value, int* reserved,
int* type, int* data, int* count);
-long RegCreateKeyExA(long key, const char* name, long reserved,
+long __stdcall RegCreateKeyExA(long key, const char* name, long reserved,
void* classs, long options, long security,
void* sec_attr, int* newkey, int* status);
-long RegSetValueExA(long key, const char* name, long v1, long v2,
+long __stdcall RegSetValueExA(long key, const char* name, long v1, long v2,
const void* data, long size);
#ifdef __WINE_WINERROR_H
-long RegEnumKeyExA(HKEY hKey, DWORD dwIndex, LPSTR lpName, LPDWORD lpcbName,
+long __stdcall RegEnumKeyExA(HKEY hKey, DWORD dwIndex, LPSTR lpName, LPDWORD lpcbName,
LPDWORD lpReserved, LPSTR lpClass, LPDWORD lpcbClass,
LPFILETIME lpftLastWriteTime);
-long RegEnumValueA(HKEY hkey, DWORD index, LPSTR value, LPDWORD val_count,
+long __stdcall RegEnumValueA(HKEY hkey, DWORD index, LPSTR value, LPDWORD val_count,
LPDWORD reserved, LPDWORD type, LPBYTE data, LPDWORD count);
#endif
#ifdef __cplusplus
More information about the MPlayer-cvslog
mailing list