comparison libgaim/win32/win32dep.h @ 14272:7635195195c0

[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. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 21 Aug 2006 20:58:20 +0000
parents ab8a105eff62
children 5b389aacc06b
comparison
equal deleted inserted replaced
14271:9e5c28c3b163 14272:7635195195c0
34 34
35 /** 35 /**
36 ** win32dep.c 36 ** win32dep.c
37 **/ 37 **/
38 /* Windows helper functions */ 38 /* Windows helper functions */
39 FARPROC wgaim_find_and_loadproc(char*, char*); 39 FARPROC wgaim_find_and_loadproc(const char *dllname, const char *procedure);
40 gboolean wgaim_read_reg_string(HKEY key, char* sub_key, char* val_name, LPBYTE data, LPDWORD data_len); 40 char *wgaim_read_reg_string(HKEY rootkey, const char *subkey, const char *valname); /* needs to be g_free'd */
41 char* wgaim_escape_dirsep(char*); 41 gboolean wgaim_write_reg_string(HKEY rootkey, const char *subkey, const char *valname, const char *value);
42 char *wgaim_escape_dirsep(const char *filename); /* needs to be g_free'd */
42 43
43 /* Determine Gaim paths */ 44 /* Determine Gaim paths */
44 char* wgaim_get_special_folder(int folder_type); /* needs to be g_free'd */ 45 char *wgaim_get_special_folder(int folder_type); /* needs to be g_free'd */
45 char* wgaim_install_dir(void); 46 const char *wgaim_install_dir(void);
46 char* wgaim_lib_dir(void); 47 const char *wgaim_lib_dir(void);
47 char* wgaim_locale_dir(void); 48 const char *wgaim_locale_dir(void);
48 char* wgaim_data_dir(void); 49 const char *wgaim_data_dir(void);
49 50
50 /* init / cleanup */ 51 /* init / cleanup */
51 void wgaim_init(void); 52 void wgaim_init(void);
52 void wgaim_cleanup(void); 53 void wgaim_cleanup(void);
53 54
54 55
55 /* 56 /*
56 * MACROS 57 * MACROS
57 */ 58 */