diff options
author | James Booth <boothj5@gmail.com> | 2016-06-23 00:36:26 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-06-23 00:36:26 +0100 |
commit | 1e37b755fe4030586b6994c397ddc855a659af43 (patch) | |
tree | 17d705b3578a7d9870992d7a59f51ffd8f37186e /src/plugins/profapi.h | |
parent | c6288d89f9682ee090f5776956cc2e6e8e6889bc (diff) | |
download | profani-tty-1e37b755fe4030586b6994c397ddc855a659af43.tar.gz |
Add macro for C plugins register_timed
Diffstat (limited to 'src/plugins/profapi.h')
-rw-r--r-- | src/plugins/profapi.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/profapi.h b/src/plugins/profapi.h index d25944c3..697e9598 100644 --- a/src/plugins/profapi.h +++ b/src/plugins/profapi.h @@ -36,6 +36,7 @@ #define PROF_API_H #define prof_register_command(command_name, min_args, max_args, synopsis, description, arguments, examples, callback) _prof_register_command(__FILE__, command_name, min_args, max_args, synopsis, description, arguments, examples, callback) +#define prof_register_timed(callback, interval_seconds) _prof_register_timed(__FILE__, callback, interval_seconds) typedef char* PROF_WIN_TAG; @@ -48,7 +49,7 @@ void (*_prof_register_command)(const char *filename, const char *command_name, i const char **synopsis, const char *description, const char *arguments[][2], const char **examples, void(*callback)(char **args)); -void (*prof_register_timed)(void(*callback)(void), int interval_seconds); +void (*_prof_register_timed)(const char *filename, void(*callback)(void), int interval_seconds); void (*prof_completer_add)(const char *key, char **items); void (*prof_completer_remove)(const char *key, char **items); |