#include "ekg2-config.h"#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include <sys/stat.h>#include <errno.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <stdarg.h>#include <limits.h>#include <unistd.h>#include <setjmp.h>#include <libgadu.h>#include <ekg/commands.h>#include <ekg/debug.h>#include <ekg/dynstuff.h>#include <ekg/msgqueue.h>#include <ekg/protocol.h>#include <ekg/sessions.h>#include <ekg/stuff.h>#include <ekg/userlist.h>#include <ekg/themes.h>#include <ekg/vars.h>#include <ekg/xmalloc.h>#include <ekg/log.h>#include <ekg/queries.h>#include "dcc.h"#include "gg.h"#include "images.h"#include "misc.h"#include "pubdir.h"#include "pubdir50.h"#include "token.h"Definicje | |
| #define | _XOPEN_SOURCE 600 |
| #define | __EXTENSIONS__ |
| #define | GG_ONLY SESSION_MUSTBELONG | SESSION_MUSTHASPRIVATE |
| #define | GG_FLAGS GG_ONLY | SESSION_MUSTBECONNECTED |
| #define | GG_FLAGS_TARGET GG_FLAGS | COMMAND_ENABLEREQPARAMS | COMMAND_PARAMASTARGET |
Funkcje | |
| static char * | session_descr_sync (session_t *session, const char *new_reason) |
| static int | gg_command_connect (const char *name, const char **params, session_t *session, const char *target, int quiet) |
| static int | gg_command_away (const char *name, const char **params, session_t *session, const char *target, int quiet) |
| static int | gg_command_msg (const char *name, const char **params, session_t *session, const char *target, int quiet) |
| static int | gg_command_inline_msg (const char *name, const char **params, session_t *session, const char *target, int quiet) |
| static int | gg_command_block (const char *name, const char **params, session_t *session, const char *target, int quiet) |
| static int | gg_command_unblock (const char *name, const char **params, session_t *session, const char *target, int quiet) |
| static int | gg_handle_token (int type, int fd, watch_type_t watch, void *data) |
| static int | gg_command_token (const char *name, const char **params, session_t *session, const char *target, int quiet) |
| static int | gg_command_modify (const char *name, const char **params, session_t *session, const char *target, int quiet) |
| static int | gg_checked_timer_handler (int type, void *data) |
| static int | gg_command_check_conn (const char *name, const char **params, session_t *session, const char *target, int quiet) |
| void | gg_register_commands () |
| #define __EXTENSIONS__ |
| #define _XOPEN_SOURCE 600 |
| #define GG_FLAGS GG_ONLY | SESSION_MUSTBECONNECTED |
| #define GG_FLAGS_TARGET GG_FLAGS | COMMAND_ENABLEREQPARAMS | COMMAND_PARAMASTARGET |
| #define GG_ONLY SESSION_MUSTBELONG | SESSION_MUSTHASPRIVATE |
| static int gg_checked_timer_handler | ( | int | type, | |
| void * | data | |||
| ) | [static] |
| static int gg_command_away | ( | const char * | name, | |
| const char ** | params, | |||
| session_t * | session, | |||
| const char * | target, | |||
| int | quiet | |||
| ) | [static] |
| static int gg_command_block | ( | const char * | name, | |
| const char ** | params, | |||
| session_t * | session, | |||
| const char * | target, | |||
| int | quiet | |||
| ) | [static] |
Block uid or printq() list of blocked uids.
Handler for: /gg:block command
| params | [0] (uid) - uid to block, or NULL if you want to display list of blocked uids. |
| static int gg_command_check_conn | ( | const char * | name, | |
| const char ** | params, | |||
| session_t * | session, | |||
| const char * | target, | |||
| int | quiet | |||
| ) | [static] |
| static int gg_command_connect | ( | const char * | name, | |
| const char ** | params, | |||
| session_t * | session, | |||
| const char * | target, | |||
| int | quiet | |||
| ) | [static] |
| static int gg_command_inline_msg | ( | const char * | name, | |
| const char ** | params, | |||
| session_t * | session, | |||
| const char * | target, | |||
| int | quiet | |||
| ) | [static] |
| static int gg_command_modify | ( | const char * | name, | |
| const char ** | params, | |||
| session_t * | session, | |||
| const char * | target, | |||
| int | quiet | |||
| ) | [static] |
| static int gg_command_msg | ( | const char * | name, | |
| const char ** | params, | |||
| session_t * | session, | |||
| const char * | target, | |||
| int | quiet | |||
| ) | [static] |
| static int gg_command_token | ( | const char * | name, | |
| const char ** | params, | |||
| session_t * | session, | |||
| const char * | target, | |||
| int | quiet | |||
| ) | [static] |
| static int gg_command_unblock | ( | const char * | name, | |
| const char ** | params, | |||
| session_t * | session, | |||
| const char * | target, | |||
| int | quiet | |||
| ) | [static] |
Unblock uid. Or everybody if uid '*'
Handler for: /gg:unlock command.
| params | [0] (uid) - uid to unblock, or '*' to unblock everyone. |
| static int gg_handle_token | ( | int | type, | |
| int | fd, | |||
| watch_type_t | watch, | |||
| void * | data | |||
| ) | [static] |
| void gg_register_commands | ( | ) |
| static char* session_descr_sync | ( | session_t * | session, | |
| const char * | new_reason | |||
| ) | [static] |
1.7.1