| |
1 /* |
| |
2 * gaim |
| |
3 * |
| |
4 * File: win32dep.h |
| |
5 * |
| |
6 * Copyright (C) 2002-2003, Herman Bloggs <hermanator12002@yahoo.com> |
| |
7 * |
| |
8 * This program is free software; you can redistribute it and/or modify |
| |
9 * it under the terms of the GNU General Public License as published by |
| |
10 * the Free Software Foundation; either version 2 of the License, or |
| |
11 * (at your option) any later version. |
| |
12 * |
| |
13 * This program is distributed in the hope that it will be useful, |
| |
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| |
16 * GNU General Public License for more details. |
| |
17 * |
| |
18 * You should have received a copy of the GNU General Public License |
| |
19 * along with this program; if not, write to the Free Software |
| |
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| |
21 * |
| |
22 */ |
| |
23 #ifndef _WIN32DEP_H_ |
| |
24 #define _WIN32DEP_H_ |
| |
25 #include <shlobj.h> |
| |
26 #include <winsock2.h> |
| |
27 #include <process.h> |
| |
28 #include "wgaimerror.h" |
| |
29 #include "libc_interface.h" |
| |
30 |
| |
31 /* |
| |
32 * PROTOS |
| |
33 */ |
| |
34 |
| |
35 /** |
| |
36 ** win32dep.c |
| |
37 **/ |
| |
38 /* Windows helper functions */ |
| |
39 HINSTANCE wgaim_hinstance(void); |
| |
40 FARPROC wgaim_find_and_loadproc(char*, char*); |
| |
41 gboolean wgaim_read_reg_string(HKEY key, char* sub_key, char* val_name, LPBYTE data, LPDWORD data_len); |
| |
42 char* wgaim_escape_dirsep(char*); |
| |
43 |
| |
44 /* Determine Gaim paths */ |
| |
45 char* wgaim_get_special_folder(int folder_type); /* needs to be g_free'd */ |
| |
46 char* wgaim_install_dir(void); |
| |
47 char* wgaim_lib_dir(void); |
| |
48 char* wgaim_locale_dir(void); |
| |
49 char* wgaim_data_dir(void); |
| |
50 |
| |
51 /* Utility */ |
| |
52 int wgaim_gz_decompress(const char* in, const char* out); |
| |
53 int wgaim_gz_untar(const char* filename, const char* destdir); |
| |
54 |
| |
55 /* Misc */ |
| |
56 void wgaim_notify_uri(const char *uri); |
| |
57 |
| |
58 /* init / cleanup */ |
| |
59 void wgaim_init(HINSTANCE); |
| |
60 void wgaim_cleanup(void); |
| |
61 |
| |
62 |
| |
63 /* |
| |
64 * MACROS |
| |
65 */ |
| |
66 |
| |
67 /* |
| |
68 * Gaim specific |
| |
69 */ |
| |
70 #define DATADIR wgaim_install_dir() |
| |
71 #define LIBDIR wgaim_lib_dir() |
| |
72 #define LOCALEDIR wgaim_locale_dir() |
| |
73 |
| |
74 #endif /* _WIN32DEP_H_ */ |
| |
75 |