diff options
Diffstat (limited to 'src/core/commands.h')
-rw-r--r-- | src/core/commands.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/commands.h b/src/core/commands.h index 554a60e5..dcff89c2 100644 --- a/src/core/commands.h +++ b/src/core/commands.h @@ -25,7 +25,11 @@ enum { extern GSList *commands; extern char *current_command; -void command_bind(const char *cmd, const char *category, SIGNAL_FUNC func); +void command_bind_to(int pos, const char *cmd, const char *category, SIGNAL_FUNC func); +#define command_bind(a, b, c) command_bind_to(1, a, b, c) +#define command_bind_first(a, b, c) command_bind_to(0, a, b, c) +#define command_bind_last(a, b, c) command_bind_to(2, a, b, c) + void command_unbind(const char *cmd, SIGNAL_FUNC func); void command_runsub(const char *cmd, const char *data, void *p1, void *p2); |