summaryrefslogtreecommitdiff
path: root/src/plugins/python
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-05-30 20:26:19 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-05-30 20:29:17 +0200
commit7621939a7a40a0e535b5b2ef67c2cb60e12208e3 (patch)
treee6a62315f4dd7addb5fd93d912242da0d2360a8a /src/plugins/python
parentf6a8c28d2dcf4d4ed6f87e7e94574b331455b40a (diff)
downloadweechat-7621939a7a40a0e535b5b2ef67c2cb60e12208e3.zip
api: add function hdata_compare
Diffstat (limited to 'src/plugins/python')
-rw-r--r--src/plugins/python/weechat-python-api.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/plugins/python/weechat-python-api.c b/src/plugins/python/weechat-python-api.c
index 4d02445cb..93e932a31 100644
--- a/src/plugins/python/weechat-python-api.c
+++ b/src/plugins/python/weechat-python-api.c
@@ -4851,6 +4851,30 @@ API_FUNC(hdata_hashtable)
return result_dict;
}
+API_FUNC(hdata_compare)
+{
+ char *hdata, *pointer1, *pointer2, *name;
+ int case_sensitive, rc;
+
+ API_INIT_FUNC(1, "hdata_compare", API_RETURN_INT(0));
+ hdata = NULL;
+ pointer1 = NULL;
+ pointer2 = NULL;
+ name = NULL;
+ case_sensitive = 0;
+ if (!PyArg_ParseTuple (args, "ssssi", &hdata, &pointer1, &pointer2, &name,
+ &case_sensitive))
+ API_WRONG_ARGS(API_RETURN_INT(0));
+
+ rc = weechat_hdata_compare (API_STR2PTR(hdata),
+ API_STR2PTR(pointer1),
+ API_STR2PTR(pointer2),
+ name,
+ case_sensitive);
+
+ API_RETURN_INT(rc);
+}
+
API_FUNC(hdata_update)
{
char *hdata, *pointer;
@@ -5205,6 +5229,7 @@ PyMethodDef weechat_python_funcs[] =
API_DEF_FUNC(hdata_pointer),
API_DEF_FUNC(hdata_time),
API_DEF_FUNC(hdata_hashtable),
+ API_DEF_FUNC(hdata_compare),
API_DEF_FUNC(hdata_update),
API_DEF_FUNC(hdata_get_string),
API_DEF_FUNC(upgrade_new),