diff options
Diffstat (limited to 'src/core/hook/wee-hook-hdata.c')
-rw-r--r-- | src/core/hook/wee-hook-hdata.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/hook/wee-hook-hdata.c b/src/core/hook/wee-hook-hdata.c index c69317e16..852d84693 100644 --- a/src/core/hook/wee-hook-hdata.c +++ b/src/core/hook/wee-hook-hdata.c @@ -35,6 +35,18 @@ /* + * Returns description of hook. + * + * Note: result must be freed after use. + */ + +char * +hook_hdata_get_description (struct t_hook *hook) +{ + return strdup (HOOK_HDATA(hook, hdata_name)); +} + +/* * Hooks a hdata. * * Returns pointer to new hook, NULL if error. |