summaryrefslogtreecommitdiff
path: root/src/core/hook/wee-hook-info.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hook/wee-hook-info.c')
-rw-r--r--src/core/hook/wee-hook-info.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/hook/wee-hook-info.c b/src/core/hook/wee-hook-info.c
index 09cc7a8eb..d51e31f60 100644
--- a/src/core/hook/wee-hook-info.c
+++ b/src/core/hook/wee-hook-info.c
@@ -34,6 +34,18 @@
/*
+ * Returns description of hook.
+ *
+ * Note: result must be freed after use.
+ */
+
+char *
+hook_info_get_description (struct t_hook *hook)
+{
+ return strdup (HOOK_INFO(hook, info_name));
+}
+
+/*
* Hooks an info.
*
* Returns pointer to new hook, NULL if error.