|
pidgin 2.14.14
|
Internal definitions and includes. More...
#include <locale.h>#include <sys/stat.h>#include <sys/types.h>#include <sys/time.h>#include <sys/wait.h>#include <ctype.h>#include <errno.h>#include <fcntl.h>#include <math.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <time.h>#include <gmodule.h>#include <netinet/in.h>#include <sys/socket.h>#include <arpa/inet.h>#include <sys/un.h>#include <sys/utsname.h>#include <netdb.h>#include <signal.h>#include <unistd.h>#include <glib.h>#include "glibcompat.h"#include <glib/gstdio.h>#include <glib-object.h>#include "account.h"#include "connection.h"
Go to the source code of this file.
Data Structures | |
| union | common_sockaddr_t |
Macros | |
| #define | N_(String) |
| #define | _(String) |
| #define | ngettext(Singular, Plural, Number) |
| #define | dngettext(Domain, Singular, Plural, Number) |
| #define | MSG_LEN 2048 |
| #define | BUF_LEN MSG_LEN |
| #define | BUF_LONG BUF_LEN * 2 |
| #define | HOST_NAME_MAX 255 |
| #define | purple_strlcpy(dest, src) |
| #define | purple_strlcat(dest, src) |
| #define | PURPLE_WEBSITE "https://pidgin.im/" |
| #define | PURPLE_DEVEL_WEBSITE "https://pidgin.im/development/" |
Functions | |
| void | _purple_buddy_icons_account_loaded_cb (void) |
| void | _purple_buddy_icons_blist_loaded_cb (void) |
| void | _purple_buddy_icon_set_old_icons_dir (const char *dirname) |
| void | _purple_connection_new (PurpleAccount *account, gboolean regist, const char *password) |
| Creates a connection to the specified account and either connects or attempts to register a new account. | |
| void | _purple_connection_new_unregister (PurpleAccount *account, const char *password, PurpleAccountUnregistrationCb cb, void *user_data) |
| Tries to unregister the account on the server. | |
| void | _purple_connection_destroy (PurpleConnection *gc) |
| Disconnects and destroys a PurpleConnection. | |
| gboolean | _purple_network_set_common_socket_flags (int fd) |
| Sets most commonly used socket flags: O_NONBLOCK and FD_CLOEXEC. | |
Internal definitions and includes.
Definition in file internal.h.
| #define _ | ( | String | ) |
Definition at line 61 of file internal.h.
| #define BUF_LEN MSG_LEN |
Definition at line 75 of file internal.h.
| #define BUF_LONG BUF_LEN * 2 |
Definition at line 76 of file internal.h.
| #define dngettext | ( | Domain, | |
| Singular, | |||
| Plural, | |||
| Number ) |
Definition at line 64 of file internal.h.
| #define HOST_NAME_MAX 255 |
Definition at line 122 of file internal.h.
| #define MSG_LEN 2048 |
Definition at line 71 of file internal.h.
| #define N_ | ( | String | ) |
Definition at line 59 of file internal.h.
| #define ngettext | ( | Singular, | |
| Plural, | |||
| Number ) |
Definition at line 63 of file internal.h.
| #define PURPLE_DEVEL_WEBSITE "https://pidgin.im/development/" |
Definition at line 170 of file internal.h.
| #define purple_strlcat | ( | dest, | |
| src ) |
Definition at line 159 of file internal.h.
| #define purple_strlcpy | ( | dest, | |
| src ) |
Definition at line 158 of file internal.h.
| #define PURPLE_WEBSITE "https://pidgin.im/" |
Definition at line 169 of file internal.h.
| void _purple_connection_destroy | ( | PurpleConnection * | gc | ) |
Disconnects and destroys a PurpleConnection.
| gc | The purple connection to destroy. |
| void _purple_connection_new | ( | PurpleAccount * | account, |
| gboolean | regist, | ||
| const char * | password ) |
Creates a connection to the specified account and either connects or attempts to register a new account.
If you are logging in, the connection uses the current active status for this account. So if you want to sign on as "away," for example, you need to have called purple_account_set_status(account, "away"). (And this will call purple_account_connect() automatically).
| account | The account the connection should be connecting to. |
| regist | Whether we are registering a new account or just trying to do a normal signon. |
| password | The password to use. |
| void _purple_connection_new_unregister | ( | PurpleAccount * | account, |
| const char * | password, | ||
| PurpleAccountUnregistrationCb | cb, | ||
| void * | user_data ) |
Tries to unregister the account on the server.
If the account is not connected, also creates a new connection.
| account | The account to unregister |
| password | The password to use. |
| cb | Optional callback to be called when unregistration is complete |
| user_data | user data to pass to the callback |
| gboolean _purple_network_set_common_socket_flags | ( | int | fd | ) |
Sets most commonly used socket flags: O_NONBLOCK and FD_CLOEXEC.
| fd | The file descriptor for the socket. |