26 #ifndef _PURPLE_INTERNAL_H_
27 #define _PURPLE_INTERNAL_H_
35 #include <net/sockios.h>
51 # define _(String) ((const char *)dgettext(PACKAGE, String))
53 # define N_(String) gettext_noop (String)
55 # define N_(String) (String)
59 # define N_(String) (String)
61 # define _(String) ((const char *)String)
63 # define ngettext(Singular, Plural, Number) ((Number == 1) ? ((const char *)Singular) : ((const char *)Plural))
64 # define dngettext(Domain, Singular, Plural, Number) ((Number == 1) ? ((const char *)Singular) : ((const char *)Plural))
75 #define BUF_LEN MSG_LEN
76 #define BUF_LONG BUF_LEN * 2
79 #include <sys/types.h>
98 #ifdef HAVE_LANGINFO_CODESET
104 #ifdef PURPLE_PLUGINS
111 # include <netinet/in.h>
112 # include <sys/socket.h>
113 # include <arpa/inet.h>
115 # include <sys/utsname.h>
121 #ifndef HOST_NAME_MAX
122 # define HOST_NAME_MAX 255
129 # if GLIB_SIZEOF_LONG == 8
130 # define G_MAXSSIZE ((gssize) 0x7fffffffffffffff)
132 # define G_MAXSSIZE ((gssize) 0x7fffffff)
136 #include <glib/gstdio.h>
139 #include "win32dep.h"
143 #if SIZEOF_TIME_T == 4
144 # define PURPLE_TIME_T_MODIFIER "lu"
145 #elif SIZEOF_TIME_T == 8
146 # define PURPLE_TIME_T_MODIFIER "zu"
148 #error Unknown size of time_t
152 #include <glib-object.h>
157 #define purple_strlcpy(dest, src) g_strlcpy(dest, src, sizeof(dest))
158 #define purple_strlcat(dest, src) g_strlcat(dest, src, sizeof(dest))
160 #define PURPLE_WEBSITE "http://pidgin.im/"
161 #define PURPLE_DEVEL_WEBSITE "http://developer.pidgin.im/"
172 _purple_buddy_icons_account_loaded_cb(
void);
177 _purple_buddy_icons_blist_loaded_cb(
void);
183 _purple_buddy_icon_set_old_icons_dir(
const char *dirname);
203 const char *password);
217 PurpleAccountUnregistrationCb cb,
void *user_data);