diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-03-04 23:10:55 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-03-05 19:52:21 +0100 |
commit | 81599b88d47fd740a073d47a47dc2481801f530b (patch) | |
tree | ef3f602d241e3f77122b9a5273d3965895f73e75 /src/plugins/plugin-script.c | |
parent | 84437ab672b6866b7464cda51be91d13f3e2e446 (diff) | |
download | weechat-81599b88d47fd740a073d47a47dc2481801f530b.zip |
plugins: move scripting API constants to plugin-script.c
Diffstat (limited to 'src/plugins/plugin-script.c')
-rw-r--r-- | src/plugins/plugin-script.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/plugins/plugin-script.c b/src/plugins/plugin-script.c index 70c60c3ad..40fe368ce 100644 --- a/src/plugins/plugin-script.c +++ b/src/plugins/plugin-script.c @@ -36,6 +36,51 @@ #include "plugin-script-config.h" +struct t_weechat_script_constant weechat_script_constants[] = { + WEECHAT_SCRIPT_CONST_INT(WEECHAT_RC_OK), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_RC_OK_EAT), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_RC_ERROR), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_CONFIG_READ_OK), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_CONFIG_READ_MEMORY_ERROR), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_CONFIG_READ_FILE_NOT_FOUND), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_CONFIG_WRITE_OK), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_CONFIG_WRITE_ERROR), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_CONFIG_WRITE_MEMORY_ERROR), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_CONFIG_OPTION_SET_OK_CHANGED), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_CONFIG_OPTION_SET_ERROR), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_CONFIG_OPTION_UNSET_OK_NO_RESET), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_CONFIG_OPTION_UNSET_OK_RESET), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_CONFIG_OPTION_UNSET_OK_REMOVED), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_CONFIG_OPTION_UNSET_ERROR), + WEECHAT_SCRIPT_CONST_STR(WEECHAT_LIST_POS_SORT), + WEECHAT_SCRIPT_CONST_STR(WEECHAT_LIST_POS_BEGINNING), + WEECHAT_SCRIPT_CONST_STR(WEECHAT_LIST_POS_END), + WEECHAT_SCRIPT_CONST_STR(WEECHAT_HOTLIST_LOW), + WEECHAT_SCRIPT_CONST_STR(WEECHAT_HOTLIST_MESSAGE), + WEECHAT_SCRIPT_CONST_STR(WEECHAT_HOTLIST_PRIVATE), + WEECHAT_SCRIPT_CONST_STR(WEECHAT_HOTLIST_HIGHLIGHT), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_HOOK_PROCESS_RUNNING), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_HOOK_PROCESS_ERROR), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_HOOK_CONNECT_OK), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_HOOK_CONNECT_IP_ADDRESS_NOT_FOUND), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_HOOK_CONNECT_CONNECTION_REFUSED), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_HOOK_CONNECT_PROXY_ERROR), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_HOOK_CONNECT_LOCAL_HOSTNAME_ERROR), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_HOOK_CONNECT_GNUTLS_INIT_ERROR), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_HOOK_CONNECT_GNUTLS_HANDSHAKE_ERROR), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_HOOK_CONNECT_MEMORY_ERROR), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_HOOK_CONNECT_TIMEOUT), + WEECHAT_SCRIPT_CONST_INT(WEECHAT_HOOK_CONNECT_SOCKET_ERROR), + WEECHAT_SCRIPT_CONST_STR(WEECHAT_HOOK_SIGNAL_STRING), + WEECHAT_SCRIPT_CONST_STR(WEECHAT_HOOK_SIGNAL_INT), + WEECHAT_SCRIPT_CONST_STR(WEECHAT_HOOK_SIGNAL_POINTER), + { NULL, 0, NULL }, +}; + + /* * Displays name and version of interpreter used. */ |