mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 05:16:38 +02:00
api: return allocated string in hook_info callback and function info_get
This commit is contained in:
@@ -33,8 +33,6 @@ enum t_weechat_script_exec_type
|
||||
|
||||
#define WEECHAT_SCRIPT_HASHTABLE_DEFAULT_SIZE 16
|
||||
|
||||
#define WEECHAT_SCRIPT_STATIC_STRINGS 32
|
||||
|
||||
#define WEECHAT_SCRIPT_EVAL_NAME "__eval__"
|
||||
|
||||
#define WEECHAT_SCRIPT_MSG_NOT_INIT(__current_script, \
|
||||
@@ -80,8 +78,6 @@ struct t_plugin_script_data
|
||||
struct t_config_option **config_look_eval_keep_context;
|
||||
struct t_plugin_script **scripts;
|
||||
struct t_plugin_script **last_script;
|
||||
char *static_string[WEECHAT_SCRIPT_STATIC_STRINGS];
|
||||
int index_static_string;
|
||||
|
||||
/* callbacks */
|
||||
int (*callback_command) (const void *pointer, void *data,
|
||||
@@ -94,10 +90,10 @@ struct t_plugin_script_data
|
||||
struct t_hdata *(*callback_hdata) (const void *pointer,
|
||||
void *data,
|
||||
const char *hdata_name);
|
||||
const char *(*callback_info_eval) (const void *pointer,
|
||||
void *data,
|
||||
const char *info_name,
|
||||
const char *arguments);
|
||||
char *(*callback_info_eval) (const void *pointer,
|
||||
void *data,
|
||||
const char *info_name,
|
||||
const char *arguments);
|
||||
struct t_infolist *(*callback_infolist) (const void *pointer,
|
||||
void *data,
|
||||
const char *infolist_name,
|
||||
@@ -129,8 +125,6 @@ extern void *plugin_script_str2ptr (struct t_weechat_plugin *weechat_plugin,
|
||||
const char *script_name,
|
||||
const char *function_name,
|
||||
const char *pointer_str);
|
||||
extern char *plugin_script_get_static_string (struct t_plugin_script_data *plugin_data,
|
||||
char *string);
|
||||
extern char *plugin_script_build_function_and_data (const char *function,
|
||||
const char *data);
|
||||
extern void plugin_script_get_function_and_data (void *callback_data,
|
||||
|
||||
Reference in New Issue
Block a user