From 9e0dd1815278e189b6fd84046fc78e883cf85704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 26 Feb 2024 07:33:12 +0100 Subject: api: add function "hdata_longlong" (issue #2081) --- src/plugins/buflist/buflist-mouse.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/plugins/buflist') diff --git a/src/plugins/buflist/buflist-mouse.c b/src/plugins/buflist/buflist-mouse.c index 8ed15eb6b..5f349d29d 100644 --- a/src/plugins/buflist/buflist-mouse.c +++ b/src/plugins/buflist/buflist-mouse.c @@ -125,6 +125,14 @@ end: ptr_buffer, list_keys[i]) : -1); weechat_hashtable_set (info, list_keys[i], str_value); break; + case WEECHAT_HDATA_LONGLONG: + snprintf (str_value, sizeof (str_value), + "%lld", + (ptr_buffer) ? + weechat_hdata_longlong (buflist_hdata_buffer, + ptr_buffer, list_keys[i]) : 0); + weechat_hashtable_set (info, list_keys[i], str_value); + break; case WEECHAT_HDATA_STRING: case WEECHAT_HDATA_SHARED_STRING: ptr_value = weechat_hdata_string (buflist_hdata_buffer, -- cgit v1.2.3