Added functions to create/destroy event_attrs to plugin interface.

Function names were chosen to keep consistency with the rest of the
API.
This commit is contained in:
Diogo Sousa
2013-07-12 22:15:17 +01:00
parent e0fb3d537d
commit 18eaccb840
4 changed files with 38 additions and 8 deletions

View File

@@ -146,9 +146,9 @@ struct _hexchat_plugin
void *userdata);
int (*hexchat_emit_print_attrs) (hexchat_plugin *ph, hexchat_event_attrs *attrs,
const char *event_name, ...);
/* If you add a new function here you should remove the dummy function bellow. */
void *(*hexchat_dummy1) (hexchat_plugin *ph);
hexchat_event_attrs *(*hexchat_event_attrs_create) (hexchat_plugin *ph);
void (*hexchat_event_attrs_free) (hexchat_plugin *ph,
hexchat_event_attrs *attrs);
/* PRIVATE FIELDS! */
void *handle; /* from dlopen */