diff options
author | Diogo Sousa <diogogsousa@gmail.com> | 2013-07-12 22:15:17 +0100 |
---|---|---|
committer | Diogo Sousa <diogogsousa@gmail.com> | 2013-07-12 22:46:04 +0100 |
commit | 18eaccb8405076b9de0f83f38d44c610528c1a63 (patch) | |
tree | c59f4d7bf4895e63d081a72135c82e6345a01406 /src/common/plugin.h | |
parent | e0fb3d537d86001a8ccc5cc1c90a0ecc4f6a8d92 (diff) |
Added functions to create/destroy event_attrs to plugin interface.
Function names were chosen to keep consistency with the rest of the API.
Diffstat (limited to 'src/common/plugin.h')
-rw-r--r-- | src/common/plugin.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/plugin.h b/src/common/plugin.h index 3cb97866..f75639e9 100644 --- a/src/common/plugin.h +++ b/src/common/plugin.h @@ -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 */ |