Welcome to mirror list, hosted at ThFree Co, Russian Federation.

DNA_session_uuid_types.h « makesdna « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6f5246cdd3dda21fc8922236b223115023aa4b22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* SPDX-License-Identifier: GPL-2.0-or-later */

/** \file
 * \ingroup DNA
 */

#pragma once

#include "BLI_sys_types.h"

#ifdef __cplusplus
extern "C" {
#endif

/* Is a structure because of the following considerations:
 *
 * - It is not possible to use custom types in DNA members: makesdna does not recognize them.
 * - It allows to add more bits, more than standard fixed-size types can store. For example, if
 *   we ever need to go 128 bits, it is as simple as adding extra 64bit field.
 */
typedef struct SessionUUID {
  /* Never access directly, as it might cause a headache when more bits are needed: if the field
   * is used directly it will not be easy to find all places where partial access is used. */
  uint64_t uuid_;
} SessionUUID;

#ifdef __cplusplus
}
#endif