summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2017-07-26 02:11:46 +0100
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2017-07-29 23:52:23 +0100
commit3200c381dbcb02e99c7667bd955c90ee859d15a0 (patch)
tree0c1c2633350cde770f058f6b92fe67e636301324 /src
parentd5d45c29b8e00c304a6b6656983cafee84fe6bc8 (diff)
downloadirssi-3200c381dbcb02e99c7667bd955c90ee859d15a0.zip
Rename to "/capability enter" and "/capability status".
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
Diffstat (limited to 'src')
-rw-r--r--src/core/capsicum.c19
1 files changed, 13 insertions, 6 deletions
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 <sys/capsicum.h>
#include <string.h>
-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);
}