From b6a80f0fd9b0c155d0a46488c6729ed68dec97bd Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Thu, 21 Sep 2023 13:47:33 +0100 Subject: [PATCH] xrt: Add xrt_limited_unique_id --- src/xrt/include/xrt/xrt_defines.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/xrt/include/xrt/xrt_defines.h b/src/xrt/include/xrt/xrt_defines.h index ce54a9ea4..a436578b2 100644 --- a/src/xrt/include/xrt/xrt_defines.h +++ b/src/xrt/include/xrt/xrt_defines.h @@ -68,6 +68,25 @@ struct xrt_luid */ typedef struct xrt_luid xrt_luid_t; +/*! + * A limited unique id, it's only unique for the process it's in so must not be + * used or synchronized across process boundaries. A value of zero is invalid + * and means it hasn't be properly initialised. + * + * @ingroup xrt_iface + */ +struct xrt_limited_unique_id +{ + uint64_t data; +}; + +/*! + * Typedef for @ref xrt_limited_unique_id. + * + * @ingroup xrt_iface + */ +typedef struct xrt_limited_unique_id xrt_limited_unique_id_t; + /*! * A base class for reference counted objects. *