mirror of
https://github.com/weechat/weechat.git
synced 2026-06-25 04:16:38 +02:00
api: add function "hdata_longlong" (issue #2081)
This commit is contained in:
@@ -5066,6 +5066,24 @@ API_FUNC(hdata_long)
|
||||
API_RETURN_LONG(value);
|
||||
}
|
||||
|
||||
API_FUNC(hdata_longlong)
|
||||
{
|
||||
long long value;
|
||||
|
||||
API_INIT_FUNC(1, "hdata_longlong", "sss", API_RETURN_LONG(0));
|
||||
|
||||
v8::String::Utf8Value hdata(args[0]);
|
||||
v8::String::Utf8Value pointer(args[1]);
|
||||
v8::String::Utf8Value name(args[2]);
|
||||
|
||||
value = weechat_hdata_longlong (
|
||||
(struct t_hdata *)API_STR2PTR(*hdata),
|
||||
API_STR2PTR(*pointer),
|
||||
*name);
|
||||
|
||||
API_RETURN_LONG(value);
|
||||
}
|
||||
|
||||
API_FUNC(hdata_string)
|
||||
{
|
||||
const char *result;
|
||||
@@ -5543,6 +5561,7 @@ WeechatJsV8::loadLibs()
|
||||
API_DEF_FUNC(hdata_char);
|
||||
API_DEF_FUNC(hdata_integer);
|
||||
API_DEF_FUNC(hdata_long);
|
||||
API_DEF_FUNC(hdata_longlong);
|
||||
API_DEF_FUNC(hdata_string);
|
||||
API_DEF_FUNC(hdata_pointer);
|
||||
API_DEF_FUNC(hdata_time);
|
||||
|
||||
Reference in New Issue
Block a user