Plugins: Added callbacks init and close functions

Included destroy function in PluginWindowCallback
This commit is contained in:
James Booth
2016-03-07 20:36:25 +00:00
parent 4094b75ccc
commit 5cabcf9b79
6 changed files with 37 additions and 7 deletions

View File

@@ -61,7 +61,10 @@ void api_log_warning(const char *message);
void api_log_error(const char *message);
int api_win_exists(const char *tag);
void api_win_create(const char *tag, void *callback,
void api_win_create(
const char *tag,
void *callback,
void(*destroy)(void *callback),
void(*callback_func)(PluginWindowCallback *window_callback, char *tag, char *line));
int api_win_focus(const char *tag);
int api_win_show(const char *tag, const char *line);