diff options
Diffstat (limited to 'src/plugins/python/weechat-python-api.c')
-rw-r--r-- | src/plugins/python/weechat-python-api.c | 905 |
1 files changed, 6 insertions, 899 deletions
diff --git a/src/plugins/python/weechat-python-api.c b/src/plugins/python/weechat-python-api.c index f450f556b..a11e82712 100644 --- a/src/plugins/python/weechat-python-api.c +++ b/src/plugins/python/weechat-python-api.c @@ -84,7 +84,7 @@ /* - * weechat_python_api_register: startup function for all WeeChat Python scripts + * Registers a python script. */ static PyObject * @@ -155,8 +155,10 @@ weechat_python_api_register (PyObject *self, PyObject *args) } /* - * weechat_python_api_plugin_get_name: get name of plugin (return "core" for - * WeeChat core) + * Wrappers for functions in scripting API. + * + * For more info about these functions, look at their implementation in WeeChat + * core. */ static PyObject * @@ -175,10 +177,6 @@ weechat_python_api_plugin_get_name (PyObject *self, PyObject *args) API_RETURN_STRING(result); } -/* - * weechat_python_api_charset_set: set script charset - */ - static PyObject * weechat_python_api_charset_set (PyObject *self, PyObject *args) { @@ -195,10 +193,6 @@ weechat_python_api_charset_set (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_iconv_to_internal: convert string to internal WeeChat charset - */ - static PyObject * weechat_python_api_iconv_to_internal (PyObject *self, PyObject *args) { @@ -216,11 +210,6 @@ weechat_python_api_iconv_to_internal (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_iconv_from_internal: convert string from WeeChat internal - * charset to another one - */ - static PyObject * weechat_python_api_iconv_from_internal (PyObject *self, PyObject *args) { @@ -238,10 +227,6 @@ weechat_python_api_iconv_from_internal (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_gettext: get translated string - */ - static PyObject * weechat_python_api_gettext (PyObject *self, PyObject *args) { @@ -258,10 +243,6 @@ weechat_python_api_gettext (PyObject *self, PyObject *args) API_RETURN_STRING(result); } -/* - * weechat_python_api_ngettext: get translated string with plural form - */ - static PyObject * weechat_python_api_ngettext (PyObject *self, PyObject *args) { @@ -281,12 +262,6 @@ weechat_python_api_ngettext (PyObject *self, PyObject *args) API_RETURN_STRING(result); } -/* - * weechat_python_api_string_match: return 1 if string matches a mask - * mask can begin or end with "*", no other - * "*" are allowed inside mask - */ - static PyObject * weechat_python_api_string_match (PyObject *self, PyObject *args) { @@ -305,14 +280,6 @@ weechat_python_api_string_match (PyObject *self, PyObject *args) API_RETURN_INT(value); } -/* - * weechat_python_api_string_has_highlight: return 1 if string contains a - * highlight (using list of words to - * highlight) - * return 0 if no highlight is found - * in string - */ - static PyObject * weechat_python_api_string_has_highlight (PyObject *self, PyObject *args) { @@ -330,14 +297,6 @@ weechat_python_api_string_has_highlight (PyObject *self, PyObject *args) API_RETURN_INT(value); } -/* - * weechat_python_api_string_has_highlight_regex: return 1 if string contains a - * highlight (using regular - * expression) - * return 0 if no highlight is - * found in string - */ - static PyObject * weechat_python_api_string_has_highlight_regex (PyObject *self, PyObject *args) { @@ -355,13 +314,6 @@ weechat_python_api_string_has_highlight_regex (PyObject *self, PyObject *args) API_RETURN_INT(value); } -/* - * weechat_python_api_string_mask_to_regex: convert a mask (string with only - * "*" as wildcard) to a regex, paying - * attention to special chars in a - * regex - */ - static PyObject * weechat_python_api_string_mask_to_regex (PyObject *self, PyObject *args) { @@ -378,11 +330,6 @@ weechat_python_api_string_mask_to_regex (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_string_remove_color: remove WeeChat color codes from - * string - */ - static PyObject * weechat_python_api_string_remove_color (PyObject *self, PyObject *args) { @@ -400,11 +347,6 @@ weechat_python_api_string_remove_color (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_string_is_command_char: check if first char of string is - * a command char - */ - static PyObject * weechat_python_api_string_is_command_char (PyObject *self, PyObject *args) { @@ -421,12 +363,6 @@ weechat_python_api_string_is_command_char (PyObject *self, PyObject *args) API_RETURN_INT(value); } -/* - * weechat_python_api_string_input_for_buffer: return string with input text - * for buffer or empty string if - * it's a command - */ - static PyObject * weechat_python_api_string_input_for_buffer (PyObject *self, PyObject *args) { @@ -443,11 +379,6 @@ weechat_python_api_string_input_for_buffer (PyObject *self, PyObject *args) API_RETURN_STRING(result); } -/* - * weechat_python_api_string_eval_expression: evaluate expression and return - * result - */ - static PyObject * weechat_python_api_string_eval_expression (PyObject *self, PyObject *args) { @@ -480,10 +411,6 @@ weechat_python_api_string_eval_expression (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_mkdir_home: create a directory in WeeChat home - */ - static PyObject * weechat_python_api_mkdir_home (PyObject *self, PyObject *args) { @@ -502,10 +429,6 @@ weechat_python_api_mkdir_home (PyObject *self, PyObject *args) API_RETURN_ERROR; } -/* - * weechat_python_api_mkdir: create a directory - */ - static PyObject * weechat_python_api_mkdir (PyObject *self, PyObject *args) { @@ -524,11 +447,6 @@ weechat_python_api_mkdir (PyObject *self, PyObject *args) API_RETURN_ERROR; } -/* - * weechat_python_api_mkdir_parents: create a directory and make parent - * directories as needed - */ - static PyObject * weechat_python_api_mkdir_parents (PyObject *self, PyObject *args) { @@ -547,10 +465,6 @@ weechat_python_api_mkdir_parents (PyObject *self, PyObject *args) API_RETURN_ERROR; } -/* - * weechat_python_api_list_new: create a new list - */ - static PyObject * weechat_python_api_list_new (PyObject *self, PyObject *args) { @@ -567,10 +481,6 @@ weechat_python_api_list_new (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_list_add: add a string to list - */ - static PyObject * weechat_python_api_list_add (PyObject *self, PyObject *args) { @@ -593,10 +503,6 @@ weechat_python_api_list_add (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_list_search: search a string in list - */ - static PyObject * weechat_python_api_list_search (PyObject *self, PyObject *args) { @@ -615,10 +521,6 @@ weechat_python_api_list_search (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_list_search_pos: search position of a string in list - */ - static PyObject * weechat_python_api_list_search_pos (PyObject *self, PyObject *args) { @@ -636,10 +538,6 @@ weechat_python_api_list_search_pos (PyObject *self, PyObject *args) API_RETURN_INT(pos); } -/* - * weechat_python_api_list_casesearch: search a string in list (ignore case) - */ - static PyObject * weechat_python_api_list_casesearch (PyObject *self, PyObject *args) { @@ -658,11 +556,6 @@ weechat_python_api_list_casesearch (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_list_casesearch_pos: search position of a string in list - * (ignore case) - */ - static PyObject * weechat_python_api_list_casesearch_pos (PyObject *self, PyObject *args) { @@ -680,10 +573,6 @@ weechat_python_api_list_casesearch_pos (PyObject *self, PyObject *args) API_RETURN_INT(pos); } -/* - * weechat_python_api_list_get: get item by position - */ - static PyObject * weechat_python_api_list_get (PyObject *self, PyObject *args) { @@ -702,10 +591,6 @@ weechat_python_api_list_get (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_list_set: set new value for item - */ - static PyObject * weechat_python_api_list_set (PyObject *self, PyObject *args) { @@ -723,10 +608,6 @@ weechat_python_api_list_set (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_list_next: get next item - */ - static PyObject * weechat_python_api_list_next (PyObject *self, PyObject *args) { @@ -743,10 +624,6 @@ weechat_python_api_list_next (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_list_prev: get previous item - */ - static PyObject * weechat_python_api_list_prev (PyObject *self, PyObject *args) { @@ -763,10 +640,6 @@ weechat_python_api_list_prev (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_list_string: get string value of item - */ - static PyObject * weechat_python_api_list_string (PyObject *self, PyObject *args) { @@ -783,10 +656,6 @@ weechat_python_api_list_string (PyObject *self, PyObject *args) API_RETURN_STRING(result); } -/* - * weechat_python_api_list_size: get number of elements in list - */ - static PyObject * weechat_python_api_list_size (PyObject *self, PyObject *args) { @@ -803,10 +672,6 @@ weechat_python_api_list_size (PyObject *self, PyObject *args) API_RETURN_INT(size); } -/* - * weechat_python_api_list_remove: remove item from list - */ - static PyObject * weechat_python_api_list_remove (PyObject *self, PyObject *args) { @@ -824,10 +689,6 @@ weechat_python_api_list_remove (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_list_remove_all: remove all items from list - */ - static PyObject * weechat_python_api_list_remove_all (PyObject *self, PyObject *args) { @@ -843,10 +704,6 @@ weechat_python_api_list_remove_all (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_list_free: free list - */ - static PyObject * weechat_python_api_list_free (PyObject *self, PyObject *args) { @@ -862,10 +719,6 @@ weechat_python_api_list_free (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_config_reload_cb: callback for config reload - */ - int weechat_python_api_config_reload_cb (void *data, struct t_config_file *config_file) @@ -903,10 +756,6 @@ weechat_python_api_config_reload_cb (void *data, return WEECHAT_CONFIG_READ_FILE_NOT_FOUND; } -/* - * weechat_python_api_config_new: create a new configuration file - */ - static PyObject * weechat_python_api_config_new (PyObject *self, PyObject *args) { @@ -930,10 +779,6 @@ weechat_python_api_config_new (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_config_read_cb: callback for reading option in section - */ - int weechat_python_api_config_read_cb (void *data, struct t_config_file *config_file, @@ -978,10 +823,6 @@ weechat_python_api_config_read_cb (void *data, return WEECHAT_CONFIG_OPTION_SET_ERROR; } -/* - * weechat_python_api_config_section_write_cb: callback for writing section - */ - int weechat_python_api_config_section_write_cb (void *data, struct t_config_file *config_file, @@ -1021,11 +862,6 @@ weechat_python_api_config_section_write_cb (void *data, return WEECHAT_CONFIG_WRITE_ERROR; } -/* - * weechat_python_api_config_section_write_default_cb: callback for writing - * default values for section - */ - int weechat_python_api_config_section_write_default_cb (void *data, struct t_config_file *config_file, @@ -1065,10 +901,6 @@ weechat_python_api_config_section_write_default_cb (void *data, return WEECHAT_CONFIG_WRITE_ERROR; } -/* - * weechat_python_api_config_section_create_option_cb: callback to create an option - */ - int weechat_python_api_config_section_create_option_cb (void *data, struct t_config_file *config_file, @@ -1114,10 +946,6 @@ weechat_python_api_config_section_create_option_cb (void *data, return WEECHAT_CONFIG_OPTION_SET_ERROR; } -/* - * weechat_python_api_config_section_delete_option_cb: callback to delete an option - */ - int weechat_python_api_config_section_delete_option_cb (void *data, struct t_config_file *config_file, @@ -1163,10 +991,6 @@ weechat_python_api_config_section_delete_option_cb (void *data, return WEECHAT_CONFIG_OPTION_UNSET_ERROR; } -/* - * weechat_python_api_config_new_section: create a new section in configuration file - */ - static PyObject * weechat_python_api_config_new_section (PyObject *self, PyObject *args) { @@ -1226,10 +1050,6 @@ weechat_python_api_config_new_section (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_config_search_section: search section in configuration file - */ - static PyObject * weechat_python_api_config_search_section (PyObject *self, PyObject *args) { @@ -1248,11 +1068,6 @@ weechat_python_api_config_search_section (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_config_option_check_cb: callback for checking new value - * for option - */ - int weechat_python_api_config_option_check_value_cb (void *data, struct t_config_option *option, @@ -1292,10 +1107,6 @@ weechat_python_api_config_option_check_value_cb (void *data, return 0; } -/* - * weechat_python_api_config_option_change_cb: callback for option changed - */ - void weechat_python_api_config_option_change_cb (void *data, struct t_config_option *option) @@ -1325,10 +1136,6 @@ weechat_python_api_config_option_change_cb (void *data, } } -/* - * weechat_python_api_config_option_delete_cb: callback when option is deleted - */ - void weechat_python_api_config_option_delete_cb (void *data, struct t_config_option *option) @@ -1358,10 +1165,6 @@ weechat_python_api_config_option_delete_cb (void *data, } } -/* - * weechat_python_api_config_new_option: create a new option in section - */ - static PyObject * weechat_python_api_config_new_option (PyObject *self, PyObject *args) { @@ -1421,10 +1224,6 @@ weechat_python_api_config_new_option (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_config_search_option: search option in configuration file or section - */ - static PyObject * weechat_python_api_config_search_option (PyObject *self, PyObject *args) { @@ -1445,10 +1244,6 @@ weechat_python_api_config_search_option (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_config_string_to_boolean: return boolean value of a string - */ - static PyObject * weechat_python_api_config_string_to_boolean (PyObject *self, PyObject *args) { @@ -1465,10 +1260,6 @@ weechat_python_api_config_string_to_boolean (PyObject *self, PyObject *args) API_RETURN_INT(value); } -/* - * weechat_python_api_config_option_reset: reset an option with default value - */ - static PyObject * weechat_python_api_config_option_reset (PyObject *self, PyObject *args) { @@ -1487,10 +1278,6 @@ weechat_python_api_config_option_reset (PyObject *self, PyObject *args) API_RETURN_INT(rc); } -/* - * weechat_python_api_config_option_set: set new value for option - */ - static PyObject * weechat_python_api_config_option_set (PyObject *self, PyObject *args) { @@ -1511,11 +1298,6 @@ weechat_python_api_config_option_set (PyObject *self, PyObject *args) API_RETURN_INT(rc); } -/* - * weechat_python_api_config_option_set_null: set null (undefined) value for - * option - */ - static PyObject * weechat_python_api_config_option_set_null (PyObject *self, PyObject *args) { @@ -1534,10 +1316,6 @@ weechat_python_api_config_option_set_null (PyObject *self, PyObject *args) API_RETURN_INT(rc); } -/* - * weechat_python_api_config_option_unset: unset an option - */ - static PyObject * weechat_python_api_config_option_unset (PyObject *self, PyObject *args) { @@ -1554,10 +1332,6 @@ weechat_python_api_config_option_unset (PyObject *self, PyObject *args) API_RETURN_INT(rc); } -/* - * weechat_python_api_config_option_rename: rename an option - */ - static PyObject * weechat_python_api_config_option_rename (PyObject *self, PyObject *args) { @@ -1575,10 +1349,6 @@ weechat_python_api_config_option_rename (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_config_option_is_null: return 1 if value of option is null - */ - static PyObject * weechat_python_api_config_option_is_null (PyObject *self, PyObject *args) { @@ -1595,11 +1365,6 @@ weechat_python_api_config_option_is_null (PyObject *self, PyObject *args) API_RETURN_INT(value); } -/* - * weechat_python_api_config_option_default_is_null: return 1 if default value - * of option is null - */ - static PyObject * weechat_python_api_config_option_default_is_null (PyObject *self, PyObject *args) { @@ -1616,10 +1381,6 @@ weechat_python_api_config_option_default_is_null (PyObject *self, PyObject *args API_RETURN_INT(value); } -/* - * weechat_python_api_config_boolean: return boolean value of option - */ - static PyObject * weechat_python_api_config_boolean (PyObject *self, PyObject *args) { @@ -1636,10 +1397,6 @@ weechat_python_api_config_boolean (PyObject *self, PyObject *args) API_RETURN_INT(value); } -/* - * weechat_python_api_config_boolean_default: return default boolean value of option - */ - static PyObject * weechat_python_api_config_boolean_default (PyObject *self, PyObject *args) { @@ -1656,10 +1413,6 @@ weechat_python_api_config_boolean_default (PyObject *self, PyObject *args) API_RETURN_INT(value); } -/* - * weechat_python_api_config_integer: return integer value of option - */ - static PyObject * weechat_python_api_config_integer (PyObject *self, PyObject *args) { @@ -1676,10 +1429,6 @@ weechat_python_api_config_integer (PyObject *self, PyObject *args) API_RETURN_INT(value); } -/* - * weechat_python_api_config_integer_default: return default integer value of option - */ - static PyObject * weechat_python_api_config_integer_default (PyObject *self, PyObject *args) { @@ -1696,10 +1445,6 @@ weechat_python_api_config_integer_default (PyObject *self, PyObject *args) API_RETURN_INT(value); } -/* - * weechat_python_api_config_string: return string value of option - */ - static PyObject * weechat_python_api_config_string (PyObject *self, PyObject *args) { @@ -1716,10 +1461,6 @@ weechat_python_api_config_string (PyObject *self, PyObject *args) API_RETURN_STRING(result); } -/* - * weechat_python_api_config_string_default: return default string value of option - */ - static PyObject * weechat_python_api_config_string_default (PyObject *self, PyObject *args) { @@ -1736,10 +1477,6 @@ weechat_python_api_config_string_default (PyObject *self, PyObject *args) API_RETURN_STRING(result); } -/* - * weechat_python_api_config_color: return color value of option - */ - static PyObject * weechat_python_api_config_color (PyObject *self, PyObject *args) { @@ -1756,10 +1493,6 @@ weechat_python_api_config_color (PyObject *self, PyObject *args) API_RETURN_STRING(result); } -/* - * weechat_python_api_config_color_default: return default color value of option - */ - static PyObject * weechat_python_api_config_color_default (PyObject *self, PyObject *args) { @@ -1776,10 +1509,6 @@ weechat_python_api_config_color_default (PyObject *self, PyObject *args) API_RETURN_STRING(result); } -/* - * weechat_python_api_config_write_option: write an option in configuration file - */ - static PyObject * weechat_python_api_config_write_option (PyObject *self, PyObject *args) { @@ -1797,10 +1526,6 @@ weechat_python_api_config_write_option (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_config_write_line: write a line in configuration file - */ - static PyObject * weechat_python_api_config_write_line (PyObject *self, PyObject *args) { @@ -1821,10 +1546,6 @@ weechat_python_api_config_write_line (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_config_write: write configuration file - */ - static PyObject * weechat_python_api_config_write (PyObject *self, PyObject *args) { @@ -1841,10 +1562,6 @@ weechat_python_api_config_write (PyObject *self, PyObject *args) API_RETURN_INT(rc); } -/* - * weechat_python_api_config_read: read configuration file - */ - static PyObject * weechat_python_api_config_read (PyObject *self, PyObject *args) { @@ -1861,10 +1578,6 @@ weechat_python_api_config_read (PyObject *self, PyObject *args) API_RETURN_INT(rc); } -/* - * weechat_python_api_config_reload: reload configuration file - */ - static PyObject * weechat_python_api_config_reload (PyObject *self, PyObject *args) { @@ -1881,10 +1594,6 @@ weechat_python_api_config_reload (PyObject *self, PyObject *args) API_RETURN_INT(rc); } -/* - * weechat_python_api_config_option_free: free an option in configuration file - */ - static PyObject * weechat_python_api_config_option_free (PyObject *self, PyObject *args) { @@ -1902,11 +1611,6 @@ weechat_python_api_config_option_free (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_config_section_free_options: free all options of a section - * in configuration file - */ - static PyObject * weechat_python_api_config_section_free_options (PyObject *self, PyObject *args) { @@ -1924,10 +1628,6 @@ weechat_python_api_config_section_free_options (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_config_section_free: free section in configuration file - */ - static PyObject * weechat_python_api_config_section_free (PyObject *self, PyObject *args) { @@ -1945,10 +1645,6 @@ weechat_python_api_config_section_free (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_config_free: free configuration file - */ - static PyObject * weechat_python_api_config_free (PyObject *self, PyObject *args) { @@ -1966,10 +1662,6 @@ weechat_python_api_config_free (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_config_get: get config option - */ - static PyObject * weechat_python_api_config_get (PyObject *self, PyObject *args) { @@ -1986,10 +1678,6 @@ weechat_python_api_config_get (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_config_get_plugin: get value of a plugin option - */ - static PyObject * weechat_python_api_config_get_plugin (PyObject *self, PyObject *args) { @@ -2008,10 +1696,6 @@ weechat_python_api_config_get_plugin (PyObject *self, PyObject *args) API_RETURN_STRING(result); } -/* - * weechat_python_api_config_is_set_plugin: check if a plugin option is set - */ - static PyObject * weechat_python_api_config_is_set_plugin (PyObject *self, PyObject *args) { @@ -2030,10 +1714,6 @@ weechat_python_api_config_is_set_plugin (PyObject *self, PyObject *args) API_RETURN_INT(rc); } -/* - * weechat_python_api_config_set_plugin: set value of a plugin option - */ - static PyObject * weechat_python_api_config_set_plugin (PyObject *self, PyObject *args) { @@ -2054,10 +1734,6 @@ weechat_python_api_config_set_plugin (PyObject *self, PyObject *args) API_RETURN_INT(rc); } -/* - * weechat_python_api_config_set_desc_plugin: set description of a plugin option - */ - static PyObject * weechat_python_api_config_set_desc_plugin (PyObject *self, PyObject *args) { @@ -2077,10 +1753,6 @@ weechat_python_api_config_set_desc_plugin (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_config_unset_plugin: unset plugin option - */ - static PyObject * weechat_python_api_config_unset_plugin (PyObject *self, PyObject *args) { @@ -2099,10 +1771,6 @@ weechat_python_api_config_unset_plugin (PyObject *self, PyObject *args) API_RETURN_INT(rc); } -/* - * weechat_python_api_key_bind: bind key(s) - */ - static PyObject * weechat_python_api_key_bind (PyObject *self, PyObject *args) { @@ -2130,10 +1798,6 @@ weechat_python_api_key_bind (PyObject *self, PyObject *args) API_RETURN_INT(num_keys); } -/* - * weechat_python_api_key_unbind: unbind key(s) - */ - static PyObject * weechat_python_api_key_unbind (PyObject *self, PyObject *args) { @@ -2151,10 +1815,6 @@ weechat_python_api_key_unbind (PyObject *self, PyObject *args) API_RETURN_INT(num_keys); } -/* - * weechat_python_api_prefix: get a prefix, used for display - */ - static PyObject * weechat_python_api_prefix (PyObject *self, PyObject *args) { @@ -2171,10 +1831,6 @@ weechat_python_api_prefix (PyObject *self, PyObject *args) API_RETURN_STRING(result); } -/* - * weechat_python_api_color: get a color code, used for display - */ - static PyObject * weechat_python_api_color (PyObject *self, PyObject *args) { @@ -2191,10 +1847,6 @@ weechat_python_api_color (PyObject *self, PyObject *args) API_RETURN_STRING(result); } -/* - * weechat_python_api_prnt: print message in a buffer - */ - static PyObject * weechat_python_api_prnt (PyObject *self, PyObject *args) { @@ -2214,11 +1866,6 @@ weechat_python_api_prnt (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_prnt_date_tags: print message in a buffer with optional - * date and tags - */ - static PyObject * weechat_python_api_prnt_date_tags (PyObject *self, PyObject *args) { @@ -2243,10 +1890,6 @@ weechat_python_api_prnt_date_tags (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_prnt_y: print message in a buffer with free content - */ - static PyObject * weechat_python_api_prnt_y (PyObject *self, PyObject *args) { @@ -2269,10 +1912,6 @@ weechat_python_api_prnt_y (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_log_print: print message in WeeChat log file - */ - static PyObject * weechat_python_api_log_print (PyObject *self, PyObject *args) { @@ -2290,10 +1929,6 @@ weechat_python_api_log_print (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_hook_command_cb: callback for command hooked - */ - int weechat_python_api_hook_command_cb (void *data, struct t_gui_buffer *buffer, int argc, char **argv, char **argv_eol) @@ -2335,10 +1970,6 @@ weechat_python_api_hook_command_cb (void *data, struct t_gui_buffer *buffer, return WEECHAT_RC_ERROR; } -/* - * weechat_python_api_hook_command: hook a command - */ - static PyObject * weechat_python_api_hook_command (PyObject *self, PyObject *args) { @@ -2372,10 +2003,6 @@ weechat_python_api_hook_command (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_hook_command_run_cb: callback for command_run hooked - */ - int weechat_python_api_hook_command_run_cb (void *data, struct t_gui_buffer *buffer, const char *command) @@ -2414,10 +2041,6 @@ weechat_python_api_hook_command_run_cb (void *data, struct t_gui_buffer *buffer, return WEECHAT_RC_ERROR; } -/* - * weechat_python_api_hook_command_run: hook a command_run - */ - static PyObject * weechat_python_api_hook_command_run (PyObject *self, PyObject *args) { @@ -2441,10 +2064,6 @@ weechat_python_api_hook_command_run (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_hook_timer_cb: callback for timer hooked - */ - int weechat_python_api_hook_timer_cb (void *data, int remaining_calls) { @@ -2482,10 +2101,6 @@ weechat_python_api_hook_timer_cb (void *data, int remaining_calls) return WEECHAT_RC_ERROR; } -/* - * weechat_python_api_hook_timer: hook a timer - */ - static PyObject * weechat_python_api_hook_timer (PyObject *self, PyObject *args) { @@ -2515,10 +2130,6 @@ weechat_python_api_hook_timer (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_hook_fd_cb: callback for fd hooked - */ - int weechat_python_api_hook_fd_cb (void *data, int fd) { @@ -2555,10 +2166,6 @@ weechat_python_api_hook_fd_cb (void *data, int fd) return WEECHAT_RC_ERROR; } -/* - * weechat_python_api_hook_fd: hook a fd - */ - static PyObject * weechat_python_api_hook_fd (PyObject *self, PyObject *args) { @@ -2590,10 +2197,6 @@ weechat_python_api_hook_fd (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_hook_process_cb: callback for process hooked - */ - int weechat_python_api_hook_process_cb (void *data, const char *command, int return_code, @@ -2637,10 +2240,6 @@ weechat_python_api_hook_process_cb (void *data, return WEECHAT_RC_ERROR; } -/* - * weechat_python_api_hook_process: hook a process - */ - static PyObject * weechat_python_api_hook_process (PyObject *self, PyObject *args) { @@ -2667,11 +2266,6 @@ weechat_python_api_hook_process (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_hook_process_hashtable: hook a process with options in - * a hashtable - */ - static PyObject * weechat_python_api_hook_process_hashtable (PyObject *self, PyObject *args) { @@ -2710,10 +2304,6 @@ weechat_python_api_hook_process_hashtable (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_hook_connect_cb: callback for connect hooked - */ - int weechat_python_api_hook_connect_cb (void *data, int status, int gnutls_rc, int sock, const char *error, @@ -2758,10 +2348,6 @@ weechat_python_api_hook_connect_cb (void *data, int status, int gnutls_rc, return WEECHAT_RC_ERROR; } -/* - * weechat_python_api_hook_connect: hook a connection - */ - static PyObject * weechat_python_api_hook_connect (PyObject *self, PyObject *args) { @@ -2801,10 +2387,6 @@ weechat_python_api_hook_connect (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_hook_print_cb: callback for print hooked - */ - int weechat_python_api_hook_print_cb (void *data, struct t_gui_buffer *buffer, time_t date, @@ -2865,10 +2447,6 @@ weechat_python_api_hook_print_cb (void *data, struct t_gui_buffer *buffer, return WEECHAT_RC_ERROR; } -/* - * weechat_python_api_hook_print: hook a print - */ - static PyObject * weechat_python_api_hook_print (PyObject *self, PyObject *args) { @@ -2900,10 +2478,6 @@ weechat_python_api_hook_print (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_hook_signal_cb: callback for signal hooked - */ - int weechat_python_api_hook_signal_cb (void *data, const char *signal, const char *type_data, void *signal_data) @@ -2960,10 +2534,6 @@ weechat_python_api_hook_signal_cb (void *data, const char *signal, const char *t return WEECHAT_RC_ERROR; } -/* - * weechat_python_api_hook_signal: hook a signal - */ - static PyObject * weechat_python_api_hook_signal (PyObject *self, PyObject *args) { @@ -2987,10 +2557,6 @@ weechat_python_api_hook_signal (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_hook_signal_send: send a signal - */ - static PyObject * weechat_python_api_hook_signal_send (PyObject *self, PyObject *args) { @@ -3029,10 +2595,6 @@ weechat_python_api_hook_signal_send (PyObject *self, PyObject *args) API_RETURN_ERROR; } -/* - * weechat_python_api_hook_hsignal_cb: callback for hsignal hooked - */ - int weechat_python_api_hook_hsignal_cb (void *data, const char *signal, struct t_hashtable *hashtable) @@ -3073,10 +2635,6 @@ weechat_python_api_hook_hsignal_cb (void *data, const char *signal, return WEECHAT_RC_ERROR; } -/* - * weechat_python_api_hook_hsignal: hook a hsignal - */ - static PyObject * weechat_python_api_hook_hsignal (PyObject *self, PyObject *args) { @@ -3100,10 +2658,6 @@ weechat_python_api_hook_hsignal (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_hook_hsignal_send: send a hsignal - */ - static PyObject * weechat_python_api_hook_hsignal_send (PyObject *self, PyObject *args) { @@ -3130,10 +2684,6 @@ weechat_python_api_hook_hsignal_send (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_hook_config_cb: callback for config option hooked - */ - int weechat_python_api_hook_config_cb (void *data, const char *option, const char *value) { @@ -3169,10 +2719,6 @@ weechat_python_api_hook_config_cb (void *data, const char *option, const char *v return WEECHAT_RC_ERROR; } -/* - * weechat_python_api_hook_config: hook a config option - */ - static PyObject * weechat_python_api_hook_config (PyObject *self, PyObject *args) { @@ -3196,10 +2742,6 @@ weechat_python_api_hook_config (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_hook_completion_cb: callback for completion hooked - */ - int weechat_python_api_hook_completion_cb (void *data, const char *completion_item, struct t_gui_buffer *buffer, @@ -3242,10 +2784,6 @@ weechat_python_api_hook_completion_cb (void *data, const char *completion_item, return WEECHAT_RC_ERROR; } -/* - * weechat_python_api_hook_completion: hook a completion - */ - static PyObject * weechat_python_api_hook_completion (PyObject *self, PyObject *args) { @@ -3272,10 +2810,6 @@ weechat_python_api_hook_completion (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_hook_completion_list_add: add a word to list for a completion - */ - static PyObject * weechat_python_api_hook_completion_list_add (PyObject *self, PyObject *args) { @@ -3299,10 +2833,6 @@ weechat_python_api_hook_completion_list_add (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_hook_modifier_cb: callback for modifier hooked - */ - char * weechat_python_api_hook_modifier_cb (void *data, const char *modifier, const char *modifier_data, const char *string) @@ -3329,10 +2859,6 @@ weechat_python_api_hook_modifier_cb (void *data, const char *modifier, return NULL; } -/* - * weechat_python_api_hook_modifier: hook a modifier - */ - static PyObject * weechat_python_api_hook_modifier (PyObject *self, PyObject *args) { @@ -3356,10 +2882,6 @@ weechat_python_api_hook_modifier (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_hook_modifier_exec: execute a modifier hook - */ - static PyObject * weechat_python_api_hook_modifier_exec (PyObject *self, PyObject *args) { @@ -3378,10 +2900,6 @@ weechat_python_api_hook_modifier_exec (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_hook_info_cb: callback for info hooked - */ - const char * weechat_python_api_hook_info_cb (void *data, const char *info_name, const char *arguments) @@ -3407,10 +2925,6 @@ weechat_python_api_hook_info_cb (void *data, const char *info_name, return NULL; } -/* - * weechat_python_api_hook_info: hook an info - */ - static PyObject * weechat_python_api_hook_info (PyObject *self, PyObject *args) { @@ -3439,10 +2953,6 @@ weechat_python_api_hook_info (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_hook_info_hashtable_cb: callback for info_hashtable hooked - */ - struct t_hashtable * weechat_python_api_hook_info_hashtable_cb (void *data, const char *info_name, struct t_hashtable *hashtable) @@ -3476,10 +2986,6 @@ weechat_python_api_hook_info_hashtable_cb (void *data, const char *info_name, return NULL; } -/* - * weechat_python_api_hook_info_hashtable: hook an info_hashtable - */ - static PyObject * weechat_python_api_hook_info_hashtable (PyObject *self, PyObject *args) { @@ -3512,10 +3018,6 @@ weechat_python_api_hook_info_hashtable (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_hook_infolist_cb: callback for infolist hooked - */ - struct t_infolist * weechat_python_api_hook_infolist_cb (void *data, const char *infolist_name, void *pointer, const char *arguments) @@ -3548,10 +3050,6 @@ weechat_python_api_hook_infolist_cb (void *data, const char *infolist_name, return NULL; } -/* - * weechat_python_api_hook_infolist: hook an infolist - */ - static PyObject * weechat_python_api_hook_infolist (PyObject *self, PyObject *args) { @@ -3584,10 +3082,6 @@ weechat_python_api_hook_infolist (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_hook_focus_cb: callback for focus hooked - */ - struct t_hashtable * weechat_python_api_hook_focus_cb (void *data, struct t_hashtable *info) @@ -3619,10 +3113,6 @@ weechat_python_api_hook_focus_cb (void *data, return NULL; } -/* - * weechat_python_api_hook_focus: hook a focus - */ - static PyObject * weechat_python_api_hook_focus (PyObject *self, PyObject *args) { @@ -3646,10 +3136,6 @@ weechat_python_api_hook_focus (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_unhook: unhook something - */ - static PyObject * weechat_python_api_unhook (PyObject *self, PyObject *args) { @@ -3667,10 +3153,6 @@ weechat_python_api_unhook (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_unhook_all: unhook all for script - */ - static PyObject * weechat_python_api_unhook_all (PyObject *self, PyObject *args) { @@ -3684,10 +3166,6 @@ weechat_python_api_unhook_all (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_buffer_input_data_cb: callback for input data in a buffer - */ - int weechat_python_api_buffer_input_data_cb (void *data, struct t_gui_buffer *buffer, const char *input_data) @@ -3725,10 +3203,6 @@ weechat_python_api_buffer_input_data_cb (void *data, struct t_gui_buffer *buffer return WEECHAT_RC_ERROR; } -/* - * weechat_python_api_buffer_close_cb: callback for buffer closed - */ - int weechat_python_api_buffer_close_cb (void *data, struct t_gui_buffer *buffer) { @@ -3764,10 +3238,6 @@ weechat_python_api_buffer_close_cb (void *data, struct t_gui_buffer *buffer) return WEECHAT_RC_ERROR; } -/* - * weechat_python_api_buffer_new: create a new buffer - */ - static PyObject * weechat_python_api_buffer_new (PyObject *self, PyObject *args) { @@ -3798,10 +3268,6 @@ weechat_python_api_buffer_new (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_buffer_search: search a buffer - */ - static PyObject * weechat_python_api_buffer_search (PyObject *self, PyObject *args) { @@ -3820,10 +3286,6 @@ weechat_python_api_buffer_search (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_buffer_search_main: search main buffer (WeeChat core buffer) - */ - static PyObject * weechat_python_api_buffer_search_main (PyObject *self, PyObject *args) { @@ -3840,10 +3302,6 @@ weechat_python_api_buffer_search_main (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_current_buffer: get current buffer - */ - static PyObject * weechat_python_api_current_buffer (PyObject *self, PyObject *args) { @@ -3860,10 +3318,6 @@ weechat_python_api_current_buffer (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_buffer_clear: clear a buffer - */ - static PyObject * weechat_python_api_buffer_clear (PyObject *self, PyObject *args) { @@ -3879,10 +3333,6 @@ weechat_python_api_buffer_clear (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_buffer_close: close a buffer - */ - static PyObject * weechat_python_api_buffer_close (PyObject *self, PyObject *args) { @@ -3900,10 +3350,6 @@ weechat_python_api_buffer_close (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_buffer_merge: merge a buffer to another buffer - */ - static PyObject * weechat_python_api_buffer_merge (PyObject *self, PyObject *args) { @@ -3921,11 +3367,6 @@ weechat_python_api_buffer_merge (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_buffer_unmerge: unmerge a buffer from group of merged - * buffers - */ - static PyObject * weechat_python_api_buffer_unmerge (PyObject *self, PyObject *args) { @@ -3943,10 +3384,6 @@ weechat_python_api_buffer_unmerge (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_buffer_get_integer: get a buffer property as integer - */ - static PyObject * weechat_python_api_buffer_get_integer (PyObject *self, PyObject *args) { @@ -3964,10 +3401,6 @@ weechat_python_api_buffer_get_integer (PyObject *self, PyObject *args) API_RETURN_INT(value); } -/* - * weechat_python_api_buffer_get_string: get a buffer property as string - */ - static PyObject * weechat_python_api_buffer_get_string (PyObject *self, PyObject *args) { @@ -3985,10 +3418,6 @@ weechat_python_api_buffer_get_string (PyObject *self, PyObject *args) API_RETURN_STRING(result); } -/* - * weechat_python_api_buffer_get_pointer: get a buffer property as pointer - */ - static PyObject * weechat_python_api_buffer_get_pointer (PyObject *self, PyObject *args) { @@ -4007,10 +3436,6 @@ weechat_python_api_buffer_get_pointer (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_buffer_set: set a buffer property - */ - static PyObject * weechat_python_api_buffer_set (PyObject *self, PyObject *args) { @@ -4030,11 +3455,6 @@ weechat_python_api_buffer_set (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_buffer_string_replace_local_var: replace local variables ($var) in a string, - * using value of local variables - */ - static PyObject * weechat_python_api_buffer_string_replace_local_var (PyObject *self, PyObject *args) { @@ -4052,11 +3472,6 @@ weechat_python_api_buffer_string_replace_local_var (PyObject *self, PyObject *ar API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_buffer_match_list: return 1 if buffer matches list of - * buffers - */ - static PyObject * weechat_python_api_buffer_match_list (PyObject *self, PyObject *args) { @@ -4074,10 +3489,6 @@ weechat_python_api_buffer_match_list (PyObject *self, PyObject *args) API_RETURN_INT(value); } -/* - * weechat_python_api_current_window: get current window - */ - static PyObject * weechat_python_api_current_window (PyObject *self, PyObject *args) { @@ -4094,11 +3505,6 @@ weechat_python_api_current_window (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_window_search_with_buffer: search a window with buffer - * pointer - */ - static PyObject * weechat_python_api_window_search_with_buffer (PyObject *self, PyObject *args) { @@ -4115,10 +3521,6 @@ weechat_python_api_window_search_with_buffer (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_window_get_integer get a window property as integer - */ - static PyObject * weechat_python_api_window_get_integer (PyObject *self, PyObject *args) { @@ -4136,10 +3538,6 @@ weechat_python_api_window_get_integer (PyObject *self, PyObject *args) API_RETURN_INT(value); } -/* - * weechat_python_api_window_get_string: get a window property as string - */ - static PyObject * weechat_python_api_window_get_string (PyObject *self, PyObject *args) { @@ -4157,10 +3555,6 @@ weechat_python_api_window_get_string (PyObject *self, PyObject *args) API_RETURN_STRING(result); } -/* - * weechat_python_api_window_get_pointer: get a window property as pointer - */ - static PyObject * weechat_python_api_window_get_pointer (PyObject *self, PyObject *args) { @@ -4179,10 +3573,6 @@ weechat_python_api_window_get_pointer (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_window_set_title: set window title - */ - static PyObject * weechat_python_api_window_set_title (PyObject *self, PyObject *args) { @@ -4198,10 +3588,6 @@ weechat_python_api_window_set_title (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_nicklist_add_group: add a group in nicklist - */ - static PyObject * weechat_python_api_nicklist_add_group (PyObject *self, PyObject *args) { @@ -4228,10 +3614,6 @@ weechat_python_api_nicklist_add_group (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_nicklist_search_group: search a group in nicklist - */ - static PyObject * weechat_python_api_nicklist_search_group (PyObject *self, PyObject *args) { @@ -4252,10 +3634,6 @@ weechat_python_api_nicklist_search_group (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_nicklist_add_nick: add a nick in nicklist - */ - static PyObject * weechat_python_api_nicklist_add_nick (PyObject *self, PyObject *args) { @@ -4286,10 +3664,6 @@ weechat_python_api_nicklist_add_nick (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_nicklist_search_nick: search a nick in nicklist - */ - static PyObject * weechat_python_api_nicklist_search_nick (PyObject *self, PyObject *args) { @@ -4310,10 +3684,6 @@ weechat_python_api_nicklist_search_nick (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_nicklist_remove_group: remove a group from nicklist - */ - static PyObject * weechat_python_api_nicklist_remove_group (PyObject *self, PyObject *args) { @@ -4331,10 +3701,6 @@ weechat_python_api_nicklist_remove_group (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_nicklist_remove_nick: remove a nick from nicklist - */ - static PyObject * weechat_python_api_nicklist_remove_nick (PyObject *self, PyObject *args) { @@ -4352,10 +3718,6 @@ weechat_python_api_nicklist_remove_nick (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_nicklist_remove_all: remove all groups/nicks from nicklist - */ - static PyObject * weechat_python_api_nicklist_remove_all (PyObject *self, PyObject *args) { @@ -4371,10 +3733,6 @@ weechat_python_api_nicklist_remove_all (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_nicklist_group_get_integer get a group property as integer - */ - static PyObject * weechat_python_api_nicklist_group_get_integer (PyObject *self, PyObject *args) { @@ -4395,10 +3753,6 @@ weechat_python_api_nicklist_group_get_integer (PyObject *self, PyObject *args) API_RETURN_INT(value); } -/* - * weechat_python_api_nicklist_group_get_string: get a group property as string - */ - static PyObject * weechat_python_api_nicklist_group_get_string (PyObject *self, PyObject *args) { @@ -4419,10 +3773,6 @@ weechat_python_api_nicklist_group_get_string (PyObject *self, PyObject *args) API_RETURN_STRING(result); } -/* - * weechat_python_api_nicklist_group_get_pointer: get a group property as pointer - */ - static PyObject * weechat_python_api_nicklist_group_get_pointer (PyObject *self, PyObject *args) { @@ -4443,10 +3793,6 @@ weechat_python_api_nicklist_group_get_pointer (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_nicklist_group_set: set a group property - */ - static PyObject * weechat_python_api_nicklist_group_set (PyObject *self, PyObject *args) { @@ -4468,10 +3814,6 @@ weechat_python_api_nicklist_group_set (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_nicklist_nick_get_integer get a nick property as integer - */ - static PyObject * weechat_python_api_nicklist_nick_get_integer (PyObject *self, PyObject *args) { @@ -4492,10 +3834,6 @@ weechat_python_api_nicklist_nick_get_integer (PyObject *self, PyObject *args) API_RETURN_INT(value); } -/* - * weechat_python_api_nicklist_nick_get_string: get a nick property as string - */ - static PyObject * weechat_python_api_nicklist_nick_get_string (PyObject *self, PyObject *args) { @@ -4516,10 +3854,6 @@ weechat_python_api_nicklist_nick_get_string (PyObject *self, PyObject *args) API_RETURN_STRING(result); } -/* - * weechat_python_api_nicklist_nick_get_pointer: get a nick property as pointer - */ - static PyObject * weechat_python_api_nicklist_nick_get_pointer (PyObject *self, PyObject *args) { @@ -4540,10 +3874,6 @@ weechat_python_api_nicklist_nick_get_pointer (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_nicklist_nick_set: set a nick property - */ - static PyObject * weechat_python_api_nicklist_nick_set (PyObject *self, PyObject *args) { @@ -4565,10 +3895,6 @@ weechat_python_api_nicklist_nick_set (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_bar_item_search: search a bar item - */ - static PyObject * weechat_python_api_bar_item_search (PyObject *self, PyObject *args) { @@ -4585,10 +3911,6 @@ weechat_python_api_bar_item_search (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_bar_item_build_cb: callback for building bar item - */ - char * weechat_python_api_bar_item_build_cb (void *data, struct t_gui_bar_item *item, struct t_gui_window *window) @@ -4621,10 +3943,6 @@ weechat_python_api_bar_item_build_cb (void *data, struct t_gui_bar_item *item, return NULL; } -/* - * weechat_python_api_bar_item_new: add a new bar item - */ - static PyObject * weechat_python_api_bar_item_new (PyObject *self, PyObject *args) { @@ -4648,10 +3966,6 @@ weechat_python_api_bar_item_new (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_bar_item_update: update a bar item on screen - */ - static PyObject * weechat_python_api_bar_item_update (PyObject *self, PyObject *args) { @@ -4667,10 +3981,6 @@ weechat_python_api_bar_item_update (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_bar_item_remove: remove a bar item - */ - static PyObject * weechat_python_api_bar_item_remove (PyObject *self, PyObject *args) { @@ -4688,10 +3998,6 @@ weechat_python_api_bar_item_remove (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_bar_search: search a bar - */ - static PyObject * weechat_python_api_bar_search (PyObject *self, PyObject *args) { @@ -4708,10 +4014,6 @@ weechat_python_api_bar_search (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_bar_new: add a new bar - */ - static PyObject * weechat_python_api_bar_new (PyObject *self, PyObject *args) { @@ -4761,10 +4063,6 @@ weechat_python_api_bar_new (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_bar_set: set a bar property - */ - static PyObject * weechat_python_api_bar_set (PyObject *self, PyObject *args) { @@ -4784,10 +4082,6 @@ weechat_python_api_bar_set (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_bar_update: update a bar on screen - */ - static PyObject * weechat_python_api_bar_update (PyObject *self, PyObject *args) { @@ -4803,10 +4097,6 @@ weechat_python_api_bar_update (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_bar_remove: remove a bar - */ - static PyObject * weechat_python_api_bar_remove (PyObject *self, PyObject *args) { @@ -4822,10 +4112,6 @@ weechat_python_api_bar_remove (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_command: send command to server - */ - static PyObject * weechat_python_api_command (PyObject *self, PyObject *args) { @@ -4845,10 +4131,6 @@ weechat_python_api_command (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_info_get: get info (as string) - */ - static PyObject * weechat_python_api_info_get (PyObject *self, PyObject *args) { @@ -4866,10 +4148,6 @@ weechat_python_api_info_get (PyObject *self, PyObject *args) API_RETURN_STRING(result); } -/* - * weechat_python_api_info_get_hashtable: get info (as hashtable) - */ - static PyObject * weechat_python_api_info_get_hashtable (PyObject *self, PyObject *args) { @@ -4898,10 +4176,6 @@ weechat_python_api_info_get_hashtable (PyObject *self, PyObject *args) return result_dict; } -/* - * weechat_python_api_infolist_new: create new infolist - */ - static PyObject * weechat_python_api_infolist_new (PyObject *self, PyObject *args) { @@ -4917,10 +4191,6 @@ weechat_python_api_infolist_new (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_infolist_new_item: create new item in infolist - */ - static PyObject * weechat_python_api_infolist_new_item (PyObject *self, PyObject *args) { @@ -4937,11 +4207,6 @@ weechat_python_api_infolist_new_item (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_infolist_new_var_integer: create new integer variable in - * infolist - */ - static PyObject * weechat_python_api_infolist_new_var_integer (PyObject *self, PyObject *args) { @@ -4963,11 +4228,6 @@ weechat_python_api_infolist_new_var_integer (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_infolist_new_var_string: create new string variable in - * infolist - */ - static PyObject * weechat_python_api_infolist_new_var_string (PyObject *self, PyObject *args) { @@ -4988,11 +4248,6 @@ weechat_python_api_infolist_new_var_string (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_infolist_new_var_pointer: create new pointer variable in - * infolist - */ - static PyObject * weechat_python_api_infolist_new_var_pointer (PyObject *self, PyObject *args) { @@ -5013,11 +4268,6 @@ weechat_python_api_infolist_new_var_pointer (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_infolist_new_var_time: create new time variable in - * infolist - */ - static PyObject * weechat_python_api_infolist_new_var_time (PyObject *self, PyObject *args) { @@ -5039,10 +4289,6 @@ weechat_python_api_infolist_new_var_time (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_infolist_get: get list with infos - */ - static PyObject * weechat_python_api_infolist_get (PyObject *self, PyObject *args) { @@ -5063,10 +4309,6 @@ weechat_python_api_infolist_get (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_infolist_next: move item pointer to next item in infolist - */ - static PyObject * weechat_python_api_infolist_next (PyObject *self, PyObject *args) { @@ -5083,10 +4325,6 @@ weechat_python_api_infolist_next (PyObject *self, PyObject *args) API_RETURN_INT(value); } -/* - * weechat_python_api_infolist_prev: move item pointer to previous item in infolist - */ - static PyObject * weechat_python_api_infolist_prev (PyObject *self, PyObject *args) { @@ -5103,11 +4341,6 @@ weechat_python_api_infolist_prev (PyObject *self, PyObject *args) API_RETURN_INT(value); } -/* - * weechat_python_api_infolist_reset_item_cursor: reset pointer to current item - * in infolist - */ - static PyObject * weechat_python_api_infolist_reset_item_cursor (PyObject *self, PyObject *args) { @@ -5123,10 +4356,6 @@ weechat_python_api_infolist_reset_item_cursor (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_infolist_fields: get list of fields for current item of infolist - */ - static PyObject * weechat_python_api_infolist_fields (PyObject *self, PyObject *args) { @@ -5143,10 +4372,6 @@ weechat_python_api_infolist_fields (PyObject *self, PyObject *args) API_RETURN_STRING(result); } -/* - * weechat_python_api_infolist_integer: get integer value of a variable in infolist - */ - static PyObject * weechat_python_api_infolist_integer (PyObject *self, PyObject *args) { @@ -5165,10 +4390,6 @@ weechat_python_api_infolist_integer (PyObject *self, PyObject *args) API_RETURN_INT(value); } -/* - * weechat_python_api_infolist_string: get string value of a variable in infolist - */ - static PyObject * weechat_python_api_infolist_string (PyObject *self, PyObject *args) { @@ -5187,10 +4408,6 @@ weechat_python_api_infolist_string (PyObject *self, PyObject *args) API_RETURN_STRING(result); } -/* - * weechat_python_api_infolist_pointer: get pointer value of a variable in infolist - */ - static PyObject * weechat_python_api_infolist_pointer (PyObject *self, PyObject *args) { @@ -5209,10 +4426,6 @@ weechat_python_api_infolist_pointer (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_infolist_time: get time value of a variable in infolist - */ - static PyObject * weechat_python_api_infolist_time (PyObject *self, PyObject *args) { @@ -5238,10 +4451,6 @@ weechat_python_api_infolist_time (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_infolist_free: free infolist - */ - static PyObject * weechat_python_api_infolist_free (PyObject *self, PyObject *args) { @@ -5257,10 +4466,6 @@ weechat_python_api_infolist_free (PyObject *self, PyObject *args) API_RETURN_OK; } -/* - * weechat_python_api_hdata_get: get hdata - */ - static PyObject * weechat_python_api_hdata_get (PyObject *self, PyObject *args) { @@ -5277,10 +4482,6 @@ weechat_python_api_hdata_get (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_hdata_get_var_offset: get offset of variable in hdata - */ - static PyObject * weechat_python_api_hdata_get_var_offset (PyObject *self, PyObject *args) { @@ -5298,11 +4499,6 @@ weechat_python_api_hdata_get_var_offset (PyObject *self, PyObject *args) API_RETURN_INT(value); } -/* - * weechat_python_api_hdata_get_var_type_string: get type of variable as string - * in hdata - */ - static PyObject * weechat_python_api_hdata_get_var_type_string (PyObject *self, PyObject *args) { @@ -5320,11 +4516,6 @@ weechat_python_api_hdata_get_var_type_string (PyObject *self, PyObject *args) API_RETURN_STRING(result); } -/* - * weechat_python_api_hdata_get_var_array_size: get array size for variable in - * hdata - */ - static PyObject * weechat_python_api_hdata_get_var_array_size (PyObject *self, PyObject *args) { @@ -5345,11 +4536,6 @@ weechat_python_api_hdata_get_var_array_size (PyObject *self, PyObject *args) API_RETURN_INT(value); } -/* - * weechat_python_api_hdata_get_var_array_size_string: get array size for variable - * in hdata (as string) - */ - static PyObject * weechat_python_api_hdata_get_var_array_size_string (PyObject *self, PyObject *args) @@ -5371,10 +4557,6 @@ weechat_python_api_hdata_get_var_array_size_string (PyObject *self, API_RETURN_STRING(result); } -/* - * weechat_python_api_hdata_get_var_hdata: get hdata for variable in hdata - */ - static PyObject * weechat_python_api_hdata_get_var_hdata (PyObject *self, PyObject *args) { @@ -5392,10 +4574,6 @@ weechat_python_api_hdata_get_var_hdata (PyObject *self, PyObject *args) API_RETURN_STRING(result); } -/* - * weechat_python_api_hdata_get_list: get list pointer in hdata - */ - static PyObject * weechat_python_api_hdata_get_list (PyObject *self, PyObject *args) { @@ -5414,10 +4592,6 @@ weechat_python_api_hdata_get_list (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_hdata_check_pointer: check pointer with hdata/list - */ - static PyObject * weechat_python_api_hdata_check_pointer (PyObject *self, PyObject *args) { @@ -5438,10 +4612,6 @@ weechat_python_api_hdata_check_pointer (PyObject *self, PyObject *args) API_RETURN_INT(value); } -/* - * weechat_python_api_hdata_move: move pointer to another element in list - */ - static PyObject * weechat_python_api_hdata_move (PyObject *self, PyObject *args) { @@ -5463,11 +4633,6 @@ weechat_python_api_hdata_move (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_hdata_char: get char value of a variable in structure - * using hdata - */ - static PyObject * weechat_python_api_hdata_char (PyObject *self, PyObject *args) { @@ -5488,11 +4653,6 @@ weechat_python_api_hdata_char (PyObject *self, PyObject *args) API_RETURN_INT(value); } -/* - * weechat_python_api_hdata_integer: get integer value of a variable in - * structure using hdata - */ - static PyObject * weechat_python_api_hdata_integer (PyObject *self, PyObject *args) { @@ -5513,11 +4673,6 @@ weechat_python_api_hdata_integer (PyObject *self, PyObject *args) API_RETURN_INT(value); } -/* - * weechat_python_api_hdata_long: get long value of a variable in structure - * using hdata - */ - static PyObject * weechat_python_api_hdata_long (PyObject *self, PyObject *args) { @@ -5538,11 +4693,6 @@ weechat_python_api_hdata_long (PyObject *self, PyObject *args) API_RETURN_LONG(value); } -/* - * weechat_python_api_hdata_string: get string value of a variable in structure - * using hdata - */ - static PyObject * weechat_python_api_hdata_string (PyObject *self, PyObject *args) { @@ -5563,11 +4713,6 @@ weechat_python_api_hdata_string (PyObject *self, PyObject *args) API_RETURN_STRING(result); } -/* - * weechat_python_api_hdata_pointer: get pointer value of a variable in - * structure using hdata - */ - static PyObject * weechat_python_api_hdata_pointer (PyObject *self, PyObject *args) { @@ -5588,11 +4733,6 @@ weechat_python_api_hdata_pointer (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_hdata_time: get time value of a variable in structure - * using hdata - */ - static PyObject * weechat_python_api_hdata_time (PyObject *self, PyObject *args) { @@ -5613,11 +4753,6 @@ weechat_python_api_hdata_time (PyObject *self, PyObject *args) API_RETURN_LONG(time); } -/* - * weechat_python_api_hdata_hashtable: get hashtable value of a variable in - * structure using hdata - */ - static PyObject * weechat_python_api_hdata_hashtable (PyObject *self, PyObject *args) { @@ -5639,10 +4774,6 @@ weechat_python_api_hdata_hashtable (PyObject *self, PyObject *args) return result_dict; } -/* - * weechat_python_api_hdata_update: updata data in a hdata - */ - static PyObject * weechat_python_api_hdata_update (PyObject *self, PyObject *args) { @@ -5672,10 +4803,6 @@ weechat_python_api_hdata_update (PyObject *self, PyObject *args) API_RETURN_INT(value); } -/* - * weechat_python_api_hdata_get_string: get hdata property as string - */ - static PyObject * weechat_python_api_hdata_get_string (PyObject *self, PyObject *args) { @@ -5693,10 +4820,6 @@ weechat_python_api_hdata_get_string (PyObject *self, PyObject *args) API_RETURN_STRING(result); } -/* - * weechat_python_api_upgrade_new: create an upgrade file - */ - static PyObject * weechat_python_api_upgrade_new (PyObject *self, PyObject *args) { @@ -5715,10 +4838,6 @@ weechat_python_api_upgrade_new (PyObject *self, PyObject *args) API_RETURN_STRING_FREE(result); } -/* - * weechat_python_api_upgrade_write_object: write object in upgrade file - */ - static PyObject * weechat_python_api_upgrade_write_object (PyObject *self, PyObject *args) { @@ -5739,10 +4858,6 @@ weechat_python_api_upgrade_write_object (PyObject *self, PyObject *args) API_RETURN_INT(rc); } -/* - * weechat_python_api_upgrade_read_cb: callback for reading object in upgrade file - */ - int weechat_python_api_upgrade_read_cb (void *data, struct t_upgrade_file *upgrade_file, @@ -5788,10 +4903,6 @@ weechat_python_api_upgrade_read_cb (void *data, return WEECHAT_RC_ERROR; } -/* - * weechat_python_api_upgrade_read: read upgrade file - */ - static PyObject * weechat_python_api_upgrade_read (PyObject *self, PyObject *args) { @@ -5815,10 +4926,6 @@ weechat_python_api_upgrade_read (PyObject *self, PyObject *args) API_RETURN_INT(rc); } -/* - * weechat_python_api_upgrade_close: close upgrade file - */ - static PyObject * weechat_python_api_upgrade_close (PyObject *self, PyObject *args) { @@ -5835,7 +4942,7 @@ weechat_python_api_upgrade_close (PyObject *self, PyObject *args) } /* - * Python subroutines + * Initializes python functions. */ PyMethodDef weechat_python_funcs[] = |