Mercurial > pidgin
comparison libpurple/win32/win32dep.h @ 15373:5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sat, 20 Jan 2007 02:32:10 +0000 |
parents | |
children | 1ec72a759b5c |
comparison
equal
deleted
inserted
replaced
15372:f79e0f4df793 | 15373:5fe8042783c1 |
---|---|
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 FARPROC wgaim_find_and_loadproc(const char *dllname, const char *procedure); | |
40 char *wgaim_read_reg_string(HKEY rootkey, const char *subkey, const char *valname); /* needs to be g_free'd */ | |
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 */ | |
43 GIOChannel *wgaim_g_io_channel_win32_new_socket(int socket); /* Until we get the post-2.8 glib win32 giochannel implementation working, use the thread-based one */ | |
44 /** Check for changes to the system proxy settings and update the HTTP_PROXY env. var. if there have been changes */ | |
45 gboolean wgaim_check_for_proxy_changes(void); | |
46 | |
47 /* Determine Gaim paths */ | |
48 char *wgaim_get_special_folder(int folder_type); /* needs to be g_free'd */ | |
49 const char *wgaim_install_dir(void); | |
50 const char *wgaim_lib_dir(void); | |
51 const char *wgaim_locale_dir(void); | |
52 const char *wgaim_data_dir(void); | |
53 | |
54 /* init / cleanup */ | |
55 void wgaim_init(void); | |
56 void wgaim_cleanup(void); | |
57 | |
58 | |
59 /* | |
60 * MACROS | |
61 */ | |
62 | |
63 /* | |
64 * Gaim specific | |
65 */ | |
66 #define DATADIR wgaim_install_dir() | |
67 #define LIBDIR wgaim_lib_dir() | |
68 #define LOCALEDIR wgaim_locale_dir() | |
69 | |
70 #endif /* _WIN32DEP_H_ */ | |
71 |