|
ekg2
GIT master
|
#include "ekg2.h"#include <stdlib.h>#include <string.h>#include <errno.h>#include <libgadu.h>#include "gg.h"#include "misc.h"
Funkcje | |
| static int | gg_handle_register (int type, int fd, watch_type_t watch, void *data) |
| int | gg_command_register (const char *name, const char **params, session_t *session, const char *target, int quiet) |
| static int | gg_handle_unregister (int type, int fd, watch_type_t watch, void *data) |
| int | gg_command_unregister (const char *name, const char **params, session_t *session, const char *target, int quiet) |
| static int | gg_handle_passwd (int type, int fd, watch_type_t watch, void *data) |
| int | gg_command_passwd (const char *name, const char **params, session_t *session, const char *target, int quiet) |
| static int | gg_handle_remind (int type, int fd, watch_type_t watch, void *data) |
| int | gg_command_remind (const char *name, const char **params, session_t *session, const char *target, int quiet) |
| int | gg_userlist_set (session_t *session, const char *contacts) |
| static char * | gg_userlist_dump (session_t *session) |
| int | gg_command_list (const char *name, const char **params, session_t *session, const char *target, int quiet) |
Zmienne | |
| list_t | gg_reminds = NULL |
| list_t | gg_registers = NULL |
| list_t | gg_unregisters = NULL |
| int | gg_register_done = 0 |
| char * | gg_register_password = NULL |
| char * | gg_register_email = NULL |
| int gg_command_list | ( | const char * | name, |
| const char ** | params, | ||
| session_t * | session, | ||
| const char * | target, | ||
| int | quiet | ||
| ) |
| int gg_command_passwd | ( | const char * | name, |
| const char ** | params, | ||
| session_t * | session, | ||
| const char * | target, | ||
| int | quiet | ||
| ) |
It's used to change password on gg server.
Handler for: /gg:passwd command.
| params | [0] - New password |
| params | [1] - Text from token [only needed when HAVE_GG_CHANGE_PASSWD4 is defined] |
| int gg_command_register | ( | const char * | name, |
| const char ** | params, | ||
| session_t * | session, | ||
| const char * | target, | ||
| int | quiet | ||
| ) |
| int gg_command_remind | ( | const char * | name, |
| const char ** | params, | ||
| session_t * | session, | ||
| const char * | target, | ||
| int | quiet | ||
| ) |
| int gg_command_unregister | ( | const char * | name, |
| const char ** | params, | ||
| session_t * | session, | ||
| const char * | target, | ||
| int | quiet | ||
| ) |
|
static |
Watch used to change password
We send asynchrous request for change password @ gg_command_passwd() If it success, than this watch is created.
Here we wait for server reply, and if it success we set new password in session variable.
|
static |
|
static |
|
static |
|
static |
| int gg_userlist_set | ( | session_t * | session, |
| const char * | contacts | ||
| ) |
| int gg_register_done = 0 |
| char* gg_register_email = NULL |
| char* gg_register_password = NULL |
1.8.13