From 4ffd62b2065358ad4aad702d916b0d717453824b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= <flashcode@flashtux.org>
Date: Thu, 7 Mar 2024 07:13:39 +0100
Subject: core: add unique "id" in buffer (issue #2081)

The id is a "long long" variable with the current time (microseconds
precision).

It is guaranteed to be unique for all buffers, and the same number is never
used again, during the lifetime of the process.

It persists and is unchanged after `/upgrade`.
---
 doc/en/weechat_plugin_api.en.adoc | 1 +
 1 file changed, 1 insertion(+)

(limited to 'doc/en/weechat_plugin_api.en.adoc')

diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc
index 4ef7eb658..9a3b67636 100644
--- a/doc/en/weechat_plugin_api.en.adoc
+++ b/doc/en/weechat_plugin_api.en.adoc
@@ -14639,6 +14639,7 @@ Arguments:
 
 * _buffer_: buffer pointer
 * _property_: property name:
+** _id_: unique identifier _(WeeChat ≥ 4.3.0)_
 ** _plugin_: name of plugin which created this buffer ("core" for WeeChat main buffer)
 ** _name_: name of buffer
 ** _full_name_: full name of buffer ("plugin.name") _(WeeChat ≥ 0.3.7)_
-- 
cgit v1.2.3

