diff options
author | Timo Sirainen <cras@irssi.org> | 2000-06-04 01:36:07 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-06-04 01:36:07 +0000 |
commit | 35fab0c9ef3ec129e2a753fd6a659124d0e168ae (patch) | |
tree | ce7d3d142161f11c7d7069bf29d59dba84cde075 /src/core/commands.h | |
parent | 841736a7d359dd7f9ba0238589965ea205102415 (diff) | |
download | irssi-35fab0c9ef3ec129e2a753fd6a659124d0e168ae.zip |
Lots of DCC related fixes.
Added command_bind_first() and command_bind_last() functions.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@285 dbcabf3a-b0e7-0310-adc4-f8d773084564
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); |