From 3200c381dbcb02e99c7667bd955c90ee859d15a0 Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Wed, 26 Jul 2017 02:11:46 +0100 Subject: Rename to "/capability enter" and "/capability status". Signed-off-by: Edward Tomasz Napierala --- src/core/capsicum.c | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'src/core/capsicum.c') diff --git a/src/core/capsicum.c b/src/core/capsicum.c index eb30fef3..69a379e2 100644 --- a/src/core/capsicum.c +++ b/src/core/capsicum.c @@ -25,7 +25,12 @@ #include #include -static void cmd_cap_enter(void) +static void cmd_capsicum(const char *data, SERVER_REC *server, void *item) +{ + command_runsub("capsicum", data, server, item); +} + +static void cmd_capsicum_enter(void) { int error; @@ -37,7 +42,7 @@ static void cmd_cap_enter(void) } } -static void cmd_cap_getmode(void) +static void cmd_capsicum_status(void) { u_int mode; int error; @@ -55,12 +60,14 @@ static void cmd_cap_getmode(void) void capsicum_init(void) { - command_bind("cap_enter", NULL, (SIGNAL_FUNC) cmd_cap_enter); - command_bind("cap_getmode", NULL, (SIGNAL_FUNC) cmd_cap_getmode); + command_bind("capsicum", NULL, (SIGNAL_FUNC) cmd_capsicum); + command_bind("capsicum enter", NULL, (SIGNAL_FUNC) cmd_capsicum_enter); + command_bind("capsicum status", NULL, (SIGNAL_FUNC) cmd_capsicum_status); } void capsicum_deinit(void) { - command_unbind("cap_enter", (SIGNAL_FUNC) cmd_cap_enter); - command_unbind("cap_getmode", (SIGNAL_FUNC) cmd_cap_getmode); + command_unbind("capsicum", (SIGNAL_FUNC) cmd_capsicum); + command_unbind("capsicum enter", (SIGNAL_FUNC) cmd_capsicum_enter); + command_unbind("capsicum status", (SIGNAL_FUNC) cmd_capsicum_status); } -- cgit v1.2.3