Blender  V2.93
DNA_sdna_types.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
17  * All rights reserved.
18  */
23 #pragma once
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 struct MemArena;
30 
31 #
32 #
33 typedef struct SDNA_StructMember {
37  short type;
39  short name;
41 
42 #
43 #
44 typedef struct SDNA_Struct {
48  short type;
50  short members_len;
54 
55 #
56 #
57 typedef struct SDNA {
59  const char *data;
61  int data_len;
62  bool data_alloc;
63 
67  const char **names;
70 
73 
75  const char **types;
77  int types_len;
78 
80  short *types_size;
81 
86 
88  struct GHash *structs_map;
89 
94  struct {
96  const char **names;
98  const char **types;
100  struct GHash *structs_map;
101  } alias;
103 
104 #
105 #
106 typedef struct BHead {
107  int code, len;
108  const void *old;
109  int SDNAnr, nr;
111 #
112 #
113 typedef struct BHead4 {
114  int code, len;
116  int SDNAnr, nr;
118 #
119 #
120 typedef struct BHead8 {
121  int code, len;
123  int SDNAnr, nr;
125 
126 #ifdef __cplusplus
127 }
128 #endif
unsigned int uint
Definition: BLI_sys_types.h:83
struct SDNA SDNA
struct BHead BHead
struct BHead4 BHead4
struct SDNA_StructMember SDNA_StructMember
struct BHead8 BHead8
struct SDNA_Struct SDNA_Struct
unsigned __int64 uint64_t
Definition: stdint.h:93
uint64_t old
int SDNAnr
const void * old
short members_len
SDNA_StructMember members[]
int types_len
struct GHash * structs_map
short * names_array_len
int structs_len
short * types_size
int names_len_alloc
SDNA_Struct ** structs
int names_len
int data_len
struct MemArena * mem_arena
const char ** types
int pointer_size
const char * data
bool data_alloc
const char ** names
struct SDNA::@1007 alias