Mercurial > pidgin.yaz
comparison libpurple/util.h @ 23583:399975ad001c
Add purple_get_host_name to get the hostname of the machine.
This is a replacement for g_get_host_name in glib2.8+. Thanks to Phil
Hannent and Marcus Lundblad for the initial patch. References #5627.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 13 Jul 2008 18:01:57 +0000 |
parents | e0bcb8cfda74 |
children | de8f2d3e538a 57727a140609 |
comparison
equal
deleted
inserted
replaced
23582:ad0d0efa30dd | 23583:399975ad001c |
---|---|
1269 * handlers. This should be called by a fork()'d child process, since child processes | 1269 * handlers. This should be called by a fork()'d child process, since child processes |
1270 * inherit the handlers of the parent. | 1270 * inherit the handlers of the parent. |
1271 */ | 1271 */ |
1272 void purple_restore_default_signal_handlers(void); | 1272 void purple_restore_default_signal_handlers(void); |
1273 | 1273 |
1274 /** | |
1275 * Gets the host name of the machine. If it not possible to determine the | |
1276 * host name, "localhost" is returned | |
1277 * | |
1278 * @constreturn The hostname | |
1279 */ | |
1280 const gchar *purple_get_host_name(void); | |
1281 | |
1274 #ifdef __cplusplus | 1282 #ifdef __cplusplus |
1275 } | 1283 } |
1276 #endif | 1284 #endif |
1277 | 1285 |
1278 #endif /* _PURPLE_UTIL_H_ */ | 1286 #endif /* _PURPLE_UTIL_H_ */ |