mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 00:52:30 +02:00
..adding new files..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@171 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
d01b094151
commit
c95034c6de
206 changed files with 31247 additions and 0 deletions
27
src/core/special-vars.h
Normal file
27
src/core/special-vars.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#ifndef __SPECIAL_VARS_H
|
||||
#define __SPECIAL_VARS_H
|
||||
|
||||
typedef char* (*EXPANDO_FUNC) (void *server, void *item, int *free_ret);
|
||||
typedef char* (*SPECIAL_HISTORY_FUNC) (const char *text, void *item, int *free_ret);
|
||||
|
||||
/* Parse and expand text after '$' character. return value has to be
|
||||
g_free()'d if `free_ret' is TRUE. */
|
||||
char *parse_special(char **cmd, void *server, void *item, char **arglist, int *free_ret, int *arg_used);
|
||||
|
||||
/* parse the whole string. $ and \ chars are replaced */
|
||||
char *parse_special_string(const char *cmd, void *server, void *item, const char *data, int *arg_used);
|
||||
|
||||
/* execute the commands in string - commands can be split with ';' */
|
||||
void eval_special_string(const char *cmd, const char *data, void *server, void *item);
|
||||
|
||||
/* Create expando - overrides any existing ones. */
|
||||
void expando_create(const char *key, EXPANDO_FUNC func);
|
||||
/* Destroy expando */
|
||||
void expando_destroy(const char *key, EXPANDO_FUNC func);
|
||||
|
||||
void special_history_func_set(SPECIAL_HISTORY_FUNC func);
|
||||
|
||||
void special_vars_init(void);
|
||||
void special_vars_deinit(void);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue