Wed, 20 Jun 2007 01:28:57 +0000
Bring back MAXPATHLEN (which was always guaranteed to be defined earlier
anyway, zephyr was just missing the appropriate #include) and fix core.c
for building on glib < 2.4, and a small tweak to the compatibility #define
for G_GNUC_NULL_TERMINATED
|
8790
3d6d2e2f6296
[gaim-migrate @ 9552]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8737
diff
changeset
|
1 | /** |
| 5872 | 2 | * @file internal.h Internal definitions and includes |
|
6371
e92b66ee5518
[gaim-migrate @ 6876]
Christian Hammond <chipx86@chipx86.com>
parents:
6170
diff
changeset
|
3 | * @ingroup core |
| 5872 | 4 | * |
| 15884 | 5 | * purple |
| 5872 | 6 | * |
| 15884 | 7 | * Purple is the legal property of its developers, whose names are too numerous |
| 8046 | 8 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 9 | * source distribution. | |
|
11137
cf40226ddff7
[gaim-migrate @ 13201]
Mark Doliner <markdoliner@pidgin.im>
parents:
10589
diff
changeset
|
10 | * |
| 5872 | 11 | * This program is free software; you can redistribute it and/or modify |
| 12 | * it under the terms of the GNU General Public License as published by | |
| 13 | * the Free Software Foundation; either version 2 of the License, or | |
| 14 | * (at your option) any later version. | |
| 15 | * | |
| 16 | * This program is distributed in the hope that it will be useful, | |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 19 | * GNU General Public License for more details. | |
| 20 | * | |
| 21 | * You should have received a copy of the GNU General Public License | |
| 22 | * along with this program; if not, write to the Free Software | |
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 24 | */ | |
| 15884 | 25 | #ifndef _PURPLE_INTERNAL_H_ |
| 26 | #define _PURPLE_INTERNAL_H_ | |
| 5872 | 27 | |
| 28 | #ifdef HAVE_CONFIG_H | |
|
6371
e92b66ee5518
[gaim-migrate @ 6876]
Christian Hammond <chipx86@chipx86.com>
parents:
6170
diff
changeset
|
29 | # include <config.h> |
| 5872 | 30 | #endif |
| 31 | ||
|
9999
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
8793
diff
changeset
|
32 | /* |
|
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
8793
diff
changeset
|
33 | * If we're using NLS, make sure gettext works. If not, then define |
|
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
8793
diff
changeset
|
34 | * dummy macros in place of the normal gettext macros. |
|
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
8793
diff
changeset
|
35 | * |
|
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
8793
diff
changeset
|
36 | * Also, the perl XS config.h file sometimes defines _ So we need to |
|
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
8793
diff
changeset
|
37 | * make sure _ isn't already defined before trying to define it. |
|
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
8793
diff
changeset
|
38 | * |
|
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
8793
diff
changeset
|
39 | * The Singular/Plural/Number ngettext dummy definition below was |
|
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
8793
diff
changeset
|
40 | * taken from an email to the texinfo mailing list by Manuel Guerrero. |
|
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
8793
diff
changeset
|
41 | * Thank you Manuel, and thank you Alex's good friend Google. |
|
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
8793
diff
changeset
|
42 | */ |
| 5872 | 43 | #ifdef ENABLE_NLS |
|
8737
b9f8de95d6bb
[gaim-migrate @ 9492]
Mark Doliner <markdoliner@pidgin.im>
parents:
8735
diff
changeset
|
44 | # include <locale.h> |
| 5872 | 45 | # include <libintl.h> |
|
16124
8e5e3e9ada60
Hopefully prevent libpurple causing problems for 3rd party UIs if they also
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15929
diff
changeset
|
46 | # define _(String) ((const char *)dgettext(PACKAGE, String)) |
| 5872 | 47 | # ifdef gettext_noop |
| 48 | # define N_(String) gettext_noop (String) | |
| 49 | # else | |
| 50 | # define N_(String) (String) | |
| 51 | # endif | |
| 52 | #else | |
| 8730 | 53 | # include <locale.h> |
| 5872 | 54 | # define N_(String) (String) |
|
9999
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
8793
diff
changeset
|
55 | # ifndef _ |
|
14342
9059c7771ef1
[gaim-migrate @ 16965]
Mark Doliner <markdoliner@pidgin.im>
parents:
14333
diff
changeset
|
56 | # define _(String) ((const char *)String) |
|
9999
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
8793
diff
changeset
|
57 | # endif |
|
13107
704041197f4d
[gaim-migrate @ 15468]
Richard Laager <rlaager@pidgin.im>
parents:
13105
diff
changeset
|
58 | # define ngettext(Singular, Plural, Number) ((Number == 1) ? ((const char *)Singular) : ((const char *)Plural)) |
|
16124
8e5e3e9ada60
Hopefully prevent libpurple causing problems for 3rd party UIs if they also
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15929
diff
changeset
|
59 | # define dngettext(Domain, Singular, Plural, Number) ((Number == 1) ? ((const char *)Singular) : ((const char *)Plural)) |
| 5872 | 60 | #endif |
| 61 | ||
| 62 | #ifdef HAVE_ENDIAN_H | |
| 63 | # include <endian.h> | |
| 64 | #endif | |
| 65 | ||
| 66 | #define MSG_LEN 2048 | |
| 67 | /* The above should normally be the same as BUF_LEN, | |
|
8735
01248ea222d3
[gaim-migrate @ 9490]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8730
diff
changeset
|
68 | * but just so we're explicitly asking for the max message |
| 5872 | 69 | * length. */ |
| 70 | #define BUF_LEN MSG_LEN | |
| 71 | #define BUF_LONG BUF_LEN * 2 | |
| 72 | ||
| 73 | #include <sys/stat.h> | |
| 74 | #include <sys/types.h> | |
|
5912
32619a71edd2
[gaim-migrate @ 6344]
Herman Bloggs <herman@bluedigits.com>
parents:
5872
diff
changeset
|
75 | #ifndef _WIN32 |
|
14333
13d7807ae88c
[gaim-migrate @ 16954]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
76 | #include <sys/time.h> |
| 5872 | 77 | #include <sys/wait.h> |
|
5912
32619a71edd2
[gaim-migrate @ 6344]
Herman Bloggs <herman@bluedigits.com>
parents:
5872
diff
changeset
|
78 | #endif |
| 5872 | 79 | #include <ctype.h> |
| 80 | #include <errno.h> | |
| 81 | #include <fcntl.h> | |
| 82 | #include <math.h> | |
| 83 | #include <stdio.h> | |
| 84 | #include <stdlib.h> | |
| 85 | #include <string.h> | |
| 86 | #include <time.h> | |
| 87 | ||
| 88 | #ifdef HAVE_ICONV | |
| 89 | #include <iconv.h> | |
| 90 | #endif | |
| 91 | ||
| 92 | #ifdef HAVE_LANGINFO_CODESET | |
| 93 | #include <langinfo.h> | |
| 94 | #endif | |
| 95 | ||
| 15884 | 96 | #ifdef PURPLE_PLUGINS |
| 5872 | 97 | # include <gmodule.h> |
| 98 | # ifndef _WIN32 | |
| 99 | # include <dlfcn.h> | |
| 100 | # endif | |
| 101 | #endif | |
| 102 | ||
|
5912
32619a71edd2
[gaim-migrate @ 6344]
Herman Bloggs <herman@bluedigits.com>
parents:
5872
diff
changeset
|
103 | #ifndef _WIN32 |
| 5872 | 104 | # include <netinet/in.h> |
| 105 | # include <sys/socket.h> | |
| 6170 | 106 | # include <arpa/inet.h> |
| 5872 | 107 | # include <sys/un.h> |
| 108 | # include <sys/utsname.h> | |
| 109 | # include <netdb.h> | |
| 110 | # include <signal.h> | |
| 111 | # include <unistd.h> | |
| 112 | #endif | |
| 113 | ||
|
18267
076446fd04a3
Bring back MAXPATHLEN (which was always guaranteed to be defined earlier
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
18265
diff
changeset
|
114 | #ifndef MAXPATHLEN |
|
076446fd04a3
Bring back MAXPATHLEN (which was always guaranteed to be defined earlier
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
18265
diff
changeset
|
115 | # ifdef PATH_MAX |
|
076446fd04a3
Bring back MAXPATHLEN (which was always guaranteed to be defined earlier
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
18265
diff
changeset
|
116 | # define MAXPATHLEN PATH_MAX |
|
076446fd04a3
Bring back MAXPATHLEN (which was always guaranteed to be defined earlier
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
18265
diff
changeset
|
117 | # else |
|
076446fd04a3
Bring back MAXPATHLEN (which was always guaranteed to be defined earlier
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
18265
diff
changeset
|
118 | # define MAXPATHLEN 1024 |
|
076446fd04a3
Bring back MAXPATHLEN (which was always guaranteed to be defined earlier
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
18265
diff
changeset
|
119 | # endif |
|
076446fd04a3
Bring back MAXPATHLEN (which was always guaranteed to be defined earlier
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
18265
diff
changeset
|
120 | #endif |
|
076446fd04a3
Bring back MAXPATHLEN (which was always guaranteed to be defined earlier
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
18265
diff
changeset
|
121 | |
| 5872 | 122 | #ifndef HOST_NAME_MAX |
| 123 | # define HOST_NAME_MAX 255 | |
| 124 | #endif | |
| 125 | ||
| 126 | #include <glib.h> | |
|
14707
3753832fd0de
[gaim-migrate @ 17391]
Mark Doliner <markdoliner@pidgin.im>
parents:
14342
diff
changeset
|
127 | #if !GLIB_CHECK_VERSION(2,4,0) |
|
3753832fd0de
[gaim-migrate @ 17391]
Mark Doliner <markdoliner@pidgin.im>
parents:
14342
diff
changeset
|
128 | # define G_MAXUINT32 ((guint32) 0xffffffff) |
|
3753832fd0de
[gaim-migrate @ 17391]
Mark Doliner <markdoliner@pidgin.im>
parents:
14342
diff
changeset
|
129 | #endif |
|
3753832fd0de
[gaim-migrate @ 17391]
Mark Doliner <markdoliner@pidgin.im>
parents:
14342
diff
changeset
|
130 | |
|
10589
4e10236e06d4
[gaim-migrate @ 11994]
Daniel Atallah <datallah@pidgin.im>
parents:
10588
diff
changeset
|
131 | #if GLIB_CHECK_VERSION(2,6,0) |
|
4e10236e06d4
[gaim-migrate @ 11994]
Daniel Atallah <datallah@pidgin.im>
parents:
10588
diff
changeset
|
132 | # include <glib/gstdio.h> |
|
4e10236e06d4
[gaim-migrate @ 11994]
Daniel Atallah <datallah@pidgin.im>
parents:
10588
diff
changeset
|
133 | #endif |
| 5872 | 134 | |
|
10589
4e10236e06d4
[gaim-migrate @ 11994]
Daniel Atallah <datallah@pidgin.im>
parents:
10588
diff
changeset
|
135 | #if !GLIB_CHECK_VERSION(2,6,0) |
|
4e10236e06d4
[gaim-migrate @ 11994]
Daniel Atallah <datallah@pidgin.im>
parents:
10588
diff
changeset
|
136 | # define g_freopen freopen |
|
4e10236e06d4
[gaim-migrate @ 11994]
Daniel Atallah <datallah@pidgin.im>
parents:
10588
diff
changeset
|
137 | # define g_fopen fopen |
|
4e10236e06d4
[gaim-migrate @ 11994]
Daniel Atallah <datallah@pidgin.im>
parents:
10588
diff
changeset
|
138 | # define g_rmdir rmdir |
|
4e10236e06d4
[gaim-migrate @ 11994]
Daniel Atallah <datallah@pidgin.im>
parents:
10588
diff
changeset
|
139 | # define g_remove remove |
|
4e10236e06d4
[gaim-migrate @ 11994]
Daniel Atallah <datallah@pidgin.im>
parents:
10588
diff
changeset
|
140 | # define g_unlink unlink |
|
4e10236e06d4
[gaim-migrate @ 11994]
Daniel Atallah <datallah@pidgin.im>
parents:
10588
diff
changeset
|
141 | # define g_lstat lstat |
|
4e10236e06d4
[gaim-migrate @ 11994]
Daniel Atallah <datallah@pidgin.im>
parents:
10588
diff
changeset
|
142 | # define g_stat stat |
|
4e10236e06d4
[gaim-migrate @ 11994]
Daniel Atallah <datallah@pidgin.im>
parents:
10588
diff
changeset
|
143 | # define g_mkdir mkdir |
|
4e10236e06d4
[gaim-migrate @ 11994]
Daniel Atallah <datallah@pidgin.im>
parents:
10588
diff
changeset
|
144 | # define g_rename rename |
|
4e10236e06d4
[gaim-migrate @ 11994]
Daniel Atallah <datallah@pidgin.im>
parents:
10588
diff
changeset
|
145 | # define g_open open |
|
4e10236e06d4
[gaim-migrate @ 11994]
Daniel Atallah <datallah@pidgin.im>
parents:
10588
diff
changeset
|
146 | #endif |
|
4e10236e06d4
[gaim-migrate @ 11994]
Daniel Atallah <datallah@pidgin.im>
parents:
10588
diff
changeset
|
147 | |
|
15161
7a392764f0b8
[gaim-migrate @ 17885]
Daniel Atallah <datallah@pidgin.im>
parents:
14974
diff
changeset
|
148 | #if !GLIB_CHECK_VERSION(2,8,0) && !defined _WIN32 |
|
14974
8180f0f2e20c
[gaim-migrate @ 17684]
Daniel Atallah <datallah@pidgin.im>
parents:
14707
diff
changeset
|
149 | # define g_access access |
|
8180f0f2e20c
[gaim-migrate @ 17684]
Daniel Atallah <datallah@pidgin.im>
parents:
14707
diff
changeset
|
150 | #endif |
|
8180f0f2e20c
[gaim-migrate @ 17684]
Daniel Atallah <datallah@pidgin.im>
parents:
14707
diff
changeset
|
151 | |
|
13623
fdac5e9e1a10
[gaim-migrate @ 16008]
Richard Laager <rlaager@pidgin.im>
parents:
13107
diff
changeset
|
152 | #if !GLIB_CHECK_VERSION(2,10,0) |
|
fdac5e9e1a10
[gaim-migrate @ 16008]
Richard Laager <rlaager@pidgin.im>
parents:
13107
diff
changeset
|
153 | # define g_slice_new(type) g_new(type, 1) |
|
fdac5e9e1a10
[gaim-migrate @ 16008]
Richard Laager <rlaager@pidgin.im>
parents:
13107
diff
changeset
|
154 | # define g_slice_new0(type) g_new0(type, 1) |
|
fdac5e9e1a10
[gaim-migrate @ 16008]
Richard Laager <rlaager@pidgin.im>
parents:
13107
diff
changeset
|
155 | # define g_slice_free(type, mem) g_free(mem) |
|
fdac5e9e1a10
[gaim-migrate @ 16008]
Richard Laager <rlaager@pidgin.im>
parents:
13107
diff
changeset
|
156 | #endif |
|
10589
4e10236e06d4
[gaim-migrate @ 11994]
Daniel Atallah <datallah@pidgin.im>
parents:
10588
diff
changeset
|
157 | |
|
14974
8180f0f2e20c
[gaim-migrate @ 17684]
Daniel Atallah <datallah@pidgin.im>
parents:
14707
diff
changeset
|
158 | #ifdef _WIN32 |
|
8180f0f2e20c
[gaim-migrate @ 17684]
Daniel Atallah <datallah@pidgin.im>
parents:
14707
diff
changeset
|
159 | #include "win32dep.h" |
|
8180f0f2e20c
[gaim-migrate @ 17684]
Daniel Atallah <datallah@pidgin.im>
parents:
14707
diff
changeset
|
160 | #endif |
|
8180f0f2e20c
[gaim-migrate @ 17684]
Daniel Atallah <datallah@pidgin.im>
parents:
14707
diff
changeset
|
161 | |
|
10114
7da34f030459
[gaim-migrate @ 11148]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9999
diff
changeset
|
162 | /* ugly ugly ugly */ |
|
7da34f030459
[gaim-migrate @ 11148]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9999
diff
changeset
|
163 | /* This is a workaround for the fact that G_GINT64_MODIFIER and G_GSIZE_FORMAT |
|
7da34f030459
[gaim-migrate @ 11148]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9999
diff
changeset
|
164 | * are only defined in Glib >= 2.4 */ |
|
7da34f030459
[gaim-migrate @ 11148]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9999
diff
changeset
|
165 | #ifndef G_GINT64_MODIFIER |
|
7da34f030459
[gaim-migrate @ 11148]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9999
diff
changeset
|
166 | # if GLIB_SIZEOF_LONG == 8 |
|
7da34f030459
[gaim-migrate @ 11148]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9999
diff
changeset
|
167 | # define G_GINT64_MODIFIER "l" |
|
7da34f030459
[gaim-migrate @ 11148]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9999
diff
changeset
|
168 | # else |
|
7da34f030459
[gaim-migrate @ 11148]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9999
diff
changeset
|
169 | # define G_GINT64_MODIFIER "ll" |
|
7da34f030459
[gaim-migrate @ 11148]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9999
diff
changeset
|
170 | # endif |
|
7da34f030459
[gaim-migrate @ 11148]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9999
diff
changeset
|
171 | #endif |
|
7da34f030459
[gaim-migrate @ 11148]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9999
diff
changeset
|
172 | |
|
7da34f030459
[gaim-migrate @ 11148]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9999
diff
changeset
|
173 | #ifndef G_GSIZE_FORMAT |
|
7da34f030459
[gaim-migrate @ 11148]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9999
diff
changeset
|
174 | # if GLIB_SIZEOF_LONG == 8 |
|
7da34f030459
[gaim-migrate @ 11148]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9999
diff
changeset
|
175 | # define G_GSIZE_FORMAT "lu" |
|
7da34f030459
[gaim-migrate @ 11148]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9999
diff
changeset
|
176 | # else |
|
7da34f030459
[gaim-migrate @ 11148]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9999
diff
changeset
|
177 | # define G_GSIZE_FORMAT "u" |
|
7da34f030459
[gaim-migrate @ 11148]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9999
diff
changeset
|
178 | # endif |
|
7da34f030459
[gaim-migrate @ 11148]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9999
diff
changeset
|
179 | #endif |
|
5912
32619a71edd2
[gaim-migrate @ 6344]
Herman Bloggs <herman@bluedigits.com>
parents:
5872
diff
changeset
|
180 | |
|
18265
9f26190d7f46
Move the define in internal.h instead.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18220
diff
changeset
|
181 | #ifndef G_GNUC_NULL_TERMINATED |
|
18267
076446fd04a3
Bring back MAXPATHLEN (which was always guaranteed to be defined earlier
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
18265
diff
changeset
|
182 | # if __GNUC__ >= 4 |
|
076446fd04a3
Bring back MAXPATHLEN (which was always guaranteed to be defined earlier
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
18265
diff
changeset
|
183 | # define G_GNUC_NULL_TERMINATED __attribute__((__sentinel__)) |
|
076446fd04a3
Bring back MAXPATHLEN (which was always guaranteed to be defined earlier
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
18265
diff
changeset
|
184 | # else |
|
076446fd04a3
Bring back MAXPATHLEN (which was always guaranteed to be defined earlier
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
18265
diff
changeset
|
185 | # define G_GNUC_NULL_TERMINATED |
|
076446fd04a3
Bring back MAXPATHLEN (which was always guaranteed to be defined earlier
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
18265
diff
changeset
|
186 | # endif |
|
18265
9f26190d7f46
Move the define in internal.h instead.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18220
diff
changeset
|
187 | #endif |
|
9f26190d7f46
Move the define in internal.h instead.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18220
diff
changeset
|
188 | |
|
13105
8f9c66e4af87
[gaim-migrate @ 15466]
Richard Laager <rlaager@pidgin.im>
parents:
11677
diff
changeset
|
189 | /* Safer ways to work with static buffers. When using non-static |
|
8f9c66e4af87
[gaim-migrate @ 15466]
Richard Laager <rlaager@pidgin.im>
parents:
11677
diff
changeset
|
190 | * buffers, either use g_strdup_* functions (preferred) or use |
|
8f9c66e4af87
[gaim-migrate @ 15466]
Richard Laager <rlaager@pidgin.im>
parents:
11677
diff
changeset
|
191 | * g_strlcpy/g_strlcpy directly. */ |
| 15884 | 192 | #define purple_strlcpy(dest, src) g_strlcpy(dest, src, sizeof(dest)) |
| 193 | #define purple_strlcat(dest, src) g_strlcat(dest, src, sizeof(dest)) | |
|
13105
8f9c66e4af87
[gaim-migrate @ 15466]
Richard Laager <rlaager@pidgin.im>
parents:
11677
diff
changeset
|
194 | |
|
15929
f18159529c60
The last s/purple.sourceforge.net/pidgin.im/ in my local copy. This changes PURPLE_WEBSITE, so stuff should change in the UI all over the place.
Richard Laager <rlaager@pidgin.im>
parents:
15926
diff
changeset
|
195 | #define PURPLE_WEBSITE "http://pidgin.im/" |
| 16967 | 196 | #define PURPLE_DEVEL_WEBSITE "http://developer.pidgin.im/" |
| 5872 | 197 | |
|
16565
f5cd28cc7367
Ref the filenames for account buddy icons on load.
Richard Laager <rlaager@pidgin.im>
parents:
16421
diff
changeset
|
198 | /* This is for the accounts code to notify the buddy icon code that |
|
f5cd28cc7367
Ref the filenames for account buddy icons on load.
Richard Laager <rlaager@pidgin.im>
parents:
16421
diff
changeset
|
199 | * it's done loading. We may want to replace this with a signal. */ |
|
f5cd28cc7367
Ref the filenames for account buddy icons on load.
Richard Laager <rlaager@pidgin.im>
parents:
16421
diff
changeset
|
200 | void |
|
16696
450ba3bd5b63
The GNOME coding guidelines recommend prefixing internal symbols with an underscore.
Richard Laager <rlaager@pidgin.im>
parents:
16565
diff
changeset
|
201 | _purple_buddy_icons_account_loaded_cb(void); |
|
16565
f5cd28cc7367
Ref the filenames for account buddy icons on load.
Richard Laager <rlaager@pidgin.im>
parents:
16421
diff
changeset
|
202 | |
|
16421
f9218e1c4703
The buddy icon code as it stands, with lots of bugs and design flaws.
Richard Laager <rlaager@pidgin.im>
parents:
16158
diff
changeset
|
203 | /* This is for the buddy list to notify the buddy icon code that |
|
f9218e1c4703
The buddy icon code as it stands, with lots of bugs and design flaws.
Richard Laager <rlaager@pidgin.im>
parents:
16158
diff
changeset
|
204 | * it's done loading. We may want to replace this with a signal. */ |
|
f9218e1c4703
The buddy icon code as it stands, with lots of bugs and design flaws.
Richard Laager <rlaager@pidgin.im>
parents:
16158
diff
changeset
|
205 | void |
|
16696
450ba3bd5b63
The GNOME coding guidelines recommend prefixing internal symbols with an underscore.
Richard Laager <rlaager@pidgin.im>
parents:
16565
diff
changeset
|
206 | _purple_buddy_icons_blist_loaded_cb(void); |
|
16421
f9218e1c4703
The buddy icon code as it stands, with lots of bugs and design flaws.
Richard Laager <rlaager@pidgin.im>
parents:
16158
diff
changeset
|
207 | |
|
f9218e1c4703
The buddy icon code as it stands, with lots of bugs and design flaws.
Richard Laager <rlaager@pidgin.im>
parents:
16158
diff
changeset
|
208 | /* This is for the purple_core_migrate() code to tell the buddy |
|
f9218e1c4703
The buddy icon code as it stands, with lots of bugs and design flaws.
Richard Laager <rlaager@pidgin.im>
parents:
16158
diff
changeset
|
209 | * icon subsystem about the old icons directory so it can |
|
f9218e1c4703
The buddy icon code as it stands, with lots of bugs and design flaws.
Richard Laager <rlaager@pidgin.im>
parents:
16158
diff
changeset
|
210 | * migrate any icons in use. */ |
|
f9218e1c4703
The buddy icon code as it stands, with lots of bugs and design flaws.
Richard Laager <rlaager@pidgin.im>
parents:
16158
diff
changeset
|
211 | void |
|
16696
450ba3bd5b63
The GNOME coding guidelines recommend prefixing internal symbols with an underscore.
Richard Laager <rlaager@pidgin.im>
parents:
16565
diff
changeset
|
212 | _purple_buddy_icon_set_old_icons_dir(const char *dirname); |
|
16421
f9218e1c4703
The buddy icon code as it stands, with lots of bugs and design flaws.
Richard Laager <rlaager@pidgin.im>
parents:
16158
diff
changeset
|
213 | |
| 15884 | 214 | #endif /* _PURPLE_INTERNAL_H_ */ |