diff options
author | Daniel Atallah <datallah@pidgin.im> | 2006-08-21 20:58:20 +0000 |
---|---|---|
committer | Daniel Atallah <datallah@pidgin.im> | 2006-08-21 20:58:20 +0000 |
commit | 761fbde657cbf7961f4bafb3f6c588933c3a659a (patch) | |
tree | f94e06f53769797d55cf8ebedc4616c3f1d22b4c /libgaim/win32/win32dep.h | |
parent | cdb1b72ad802b167b5443e2560660bf077520117 (diff) | |
download | pidgin-761fbde657cbf7961f4bafb3f6c588933c3a659a.tar.gz |
[gaim-migrate @ 16957]
-Updated the win32dep debug function to correctly match the core function (the core was apparently changed a while ago and this was never updated).
-Updated wgaim_read_reg_string() to deal with non-ascii strings correctly, created corresponding wgaim_write_reg_string(). Use these in various places.
-Update some win32dep arguments and return values to be correctly marked as having constant values.
Diffstat (limited to 'libgaim/win32/win32dep.h')
-rw-r--r-- | libgaim/win32/win32dep.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/libgaim/win32/win32dep.h b/libgaim/win32/win32dep.h index 50c09fd407..b75307c8a5 100644 --- a/libgaim/win32/win32dep.h +++ b/libgaim/win32/win32dep.h @@ -36,20 +36,21 @@ ** win32dep.c **/ /* Windows helper functions */ -FARPROC wgaim_find_and_loadproc(char*, char*); -gboolean wgaim_read_reg_string(HKEY key, char* sub_key, char* val_name, LPBYTE data, LPDWORD data_len); -char* wgaim_escape_dirsep(char*); +FARPROC wgaim_find_and_loadproc(const char *dllname, const char *procedure); +char *wgaim_read_reg_string(HKEY rootkey, const char *subkey, const char *valname); /* needs to be g_free'd */ +gboolean wgaim_write_reg_string(HKEY rootkey, const char *subkey, const char *valname, const char *value); +char *wgaim_escape_dirsep(const char *filename); /* needs to be g_free'd */ /* Determine Gaim paths */ -char* wgaim_get_special_folder(int folder_type); /* needs to be g_free'd */ -char* wgaim_install_dir(void); -char* wgaim_lib_dir(void); -char* wgaim_locale_dir(void); -char* wgaim_data_dir(void); +char *wgaim_get_special_folder(int folder_type); /* needs to be g_free'd */ +const char *wgaim_install_dir(void); +const char *wgaim_lib_dir(void); +const char *wgaim_locale_dir(void); +const char *wgaim_data_dir(void); /* init / cleanup */ -void wgaim_init(void); -void wgaim_cleanup(void); +void wgaim_init(void); +void wgaim_cleanup(void); /* |