ekg2
GIT master
|
#include "ekg2-config.h"
#include <string.h>
#include <ctype.h>
#include "commands.h"
#include "debug.h"
#include "dynstuff.h"
#include "sessions.h"
#include "stuff.h"
#include "themes.h"
#include "userlist.h"
#include "windows.h"
#include "xmalloc.h"
#include "queries.h"
#include "dynstuff_inline.h"
Definicje | |
#define | _XOPEN_SOURCE 600 |
#define | __EXTENSIONS__ |
#define | _BSD_SOURCE |
Funkcje | |
static int | command_add_compare (const command_t *data1, const command_t *data2) |
static void | list_command_free (command_t *data) |
static void | commands_add (command_t *new) |
__attribute__ ((visibility("hidden"))) | |
int | match_arg (const char *arg, char shortopt, const char *longopt, int longoptlen) |
void | tabnick_add (const char *nick) |
void | tabnick_remove (const char *nick) |
static int | cmd_forward_to_server (const char *name, const char **params, session_t *session, const char *target, int quiet) |
static int | cmd_real_quit (const char *name, const char **params, session_t *session, const char *target, int quiet) |
static int | cmd_quit (const char *name, const char **params, session_t *session, const char *target, int quiet) |
static char * | strip_spaces (char *line) |
int | command_exec (const char *target, session_t *session, const char *xline, int quiet) |
int | command_exec_format (const char *target, session_t *session, int quiet, const char *format,...) |
int | binding_help (int a, int b) |
static const char * | ekg_status_label (const int status) |
int | binding_quick_list (int a, int b) |
static command_t * | command_find (const char *name) |
static command_t * | command_add_c (plugin_t *plugin, const char *name, char *params, command_func_t function, int flags, char *possibilities) |
command_t * | command_add (plugin_t *plugin, const char *name, char *params, command_func_t function, int flags, char *possibilities) |
Zmienne | |
char * | send_nicks [100] = { NULL } |
int | send_nicks_count = 0 |
int | send_nicks_index = 0 |
static int | quit_command = 0 |
command_t * | commands = NULL |
#define __EXTENSIONS__ |
#define _BSD_SOURCE |
#define _XOPEN_SOURCE 600 |
__attribute__ | ( | (visibility("hidden")) | ) |
int binding_help | ( | int | a, |
int | b | ||
) |
int binding_quick_list | ( | int | a, |
int | b | ||
) |
|
static |
|
static |
|
static |
command_t* command_add | ( | plugin_t * | plugin, |
const char * | name, | ||
char * | params, | ||
command_func_t | function, | ||
int | flags, | ||
char * | possibilities | ||
) |
|
static |
int command_exec | ( | const char * | target, |
session_t * | session, | ||
const char * | xline, | ||
int | quiet | ||
) |
int command_exec_format | ( | const char * | target, |
session_t * | session, | ||
int | quiet, | ||
const char * | format, | ||
... | |||
) |
Format string in format and execute formated command Equivalent to:
char *tmp = saprintf(format, ...);
command_exec(target, session, tmp, quiet);
xfree(tmp);
|
static |
|
static |
|
static |
|
static |
int match_arg | ( | const char * | arg, |
char | shortopt, | ||
const char * | longopt, | ||
int | longoptlen | ||
) |
|
static |
void tabnick_add | ( | const char * | nick | ) |
void tabnick_remove | ( | const char * | nick | ) |
|
static |
char* send_nicks[100] = { NULL } |
int send_nicks_count = 0 |
int send_nicks_index = 0 |