diff --git a/src/plugins/api.c b/src/plugins/api.c index d3f159b0..711bc02b 100644 --- a/src/plugins/api.c +++ b/src/plugins/api.c @@ -155,7 +155,7 @@ api_register_timed(void *callback, int interval_seconds, } void -api_register_ac(const char *key, char **items) +api_completer_add(const char *key, char **items) { autocompleters_add(key, items); } diff --git a/src/plugins/api.h b/src/plugins/api.h index 531eddd7..357d506e 100644 --- a/src/plugins/api.h +++ b/src/plugins/api.h @@ -53,7 +53,8 @@ void api_register_command(const char *command_name, int min_args, int max_args, void *callback, void(*callback_func)(PluginCommand *command, gchar **args)); void api_register_timed(void *callback, int interval_seconds, void (*callback_func)(PluginTimedFunction *timed_function)); -void api_register_ac(const char *key, char **items); + +void api_completer_add(const char *key, char **items); void api_log_debug(const char *message); void api_log_info(const char *message); diff --git a/src/plugins/c_api.c b/src/plugins/c_api.c index c860be42..32369523 100644 --- a/src/plugins/c_api.c +++ b/src/plugins/c_api.c @@ -97,9 +97,9 @@ c_api_register_timed(void(*callback)(void), int interval_seconds) } static void -c_api_register_ac(const char *key, char **items) +c_api_completer_add(const char *key, char **items) { - api_register_ac(key, items); + api_completer_add(key, items); } static void @@ -269,7 +269,7 @@ c_api_init(void) prof_cons_bad_cmd_usage = c_api_cons_bad_cmd_usage; prof_register_command = c_api_register_command; prof_register_timed = c_api_register_timed; - prof_register_ac = c_api_register_ac; + prof_completer_add = c_api_completer_add; prof_notify = c_api_notify; prof_send_line = c_api_send_line; prof_get_current_recipient = c_api_get_current_recipient; diff --git a/src/plugins/profapi.c b/src/plugins/profapi.c index 372db3b1..3d92fb23 100644 --- a/src/plugins/profapi.c +++ b/src/plugins/profapi.c @@ -48,7 +48,7 @@ void (*prof_register_command)(const char *command_name, int min_args, int max_ar void (*prof_register_timed)(void(*callback)(void), int interval_seconds) = NULL; -void (*prof_register_ac)(const char *key, char **items) = NULL; +void (*prof_completer_add)(const char *key, char **items) = NULL; void (*prof_notify)(const char *message, int timeout_ms, const char *category) = NULL; diff --git a/src/plugins/profapi.h b/src/plugins/profapi.h index c6f54d88..61d41cfc 100644 --- a/src/plugins/profapi.h +++ b/src/plugins/profapi.h @@ -48,7 +48,7 @@ void (*prof_register_command)(const char *command_name, int min_args, int max_ar void (*prof_register_timed)(void(*callback)(void), int interval_seconds); -void (*prof_register_ac)(const char *key, char **items); +void (*prof_completer_add)(const char *key, char **items); void (*prof_notify)(const char *message, int timeout_ms, const char *category); diff --git a/src/plugins/python_api.c b/src/plugins/python_api.c index e830be29..9cac70ae 100644 --- a/src/plugins/python_api.c +++ b/src/plugins/python_api.c @@ -186,7 +186,7 @@ python_api_register_timed(PyObject *self, PyObject *args) } static PyObject * -python_api_register_ac(PyObject *self, PyObject *args) +python_api_completer_add(PyObject *self, PyObject *args) { const char *key = NULL; PyObject *items = NULL; @@ -663,7 +663,7 @@ static PyMethodDef apiMethods[] = { { "cons_bad_cmd_usage", python_api_cons_bad_cmd_usage, METH_VARARGS, "Show invalid command message in console" }, { "register_command", python_api_register_command, METH_VARARGS, "Register a command." }, { "register_timed", python_api_register_timed, METH_VARARGS, "Register a timed function." }, - { "register_ac", python_api_register_ac, METH_VARARGS, "Register an autocompleter." }, + { "completer_add", python_api_completer_add, METH_VARARGS, "Add items to an autocompleter." }, { "send_line", python_api_send_line, METH_VARARGS, "Send a line of input." }, { "notify", python_api_notify, METH_VARARGS, "Send desktop notification." }, { "get_current_recipient", python_api_get_current_recipient, METH_VARARGS, "Return the jid of the recipient of the current window." },