Blender
V2.93
source
blender
makesdna
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
;
40
}
SDNA_StructMember
;
41
42
#
43
#
44
typedef
struct
SDNA_Struct
{
48
short
type
;
50
short
members_len
;
52
SDNA_StructMember
members
[];
53
}
SDNA_Struct
;
54
55
#
56
#
57
typedef
struct
SDNA
{
59
const
char
*
data
;
61
int
data_len
;
62
bool
data_alloc
;
63
65
int
names_len
,
names_len_alloc
;
67
const
char
**
names
;
69
short
*
names_array_len
;
70
72
int
pointer_size
;
73
75
const
char
**
types
;
77
int
types_len
;
78
80
short
*
types_size
;
81
83
SDNA_Struct
**
structs
;
85
int
structs_len
;
86
88
struct
GHash
*
structs_map
;
89
91
struct
MemArena
*
mem_arena
;
94
struct
{
96
const
char
**
names
;
98
const
char
**
types
;
100
struct
GHash
*
structs_map
;
101
}
alias
;
102
}
SDNA
;
103
104
#
105
#
106
typedef
struct
BHead
{
107
int
code
,
len
;
108
const
void
*
old
;
109
int
SDNAnr
,
nr
;
110
}
BHead
;
111
#
112
#
113
typedef
struct
BHead4
{
114
int
code
,
len
;
115
uint
old
;
116
int
SDNAnr
,
nr
;
117
}
BHead4
;
118
#
119
#
120
typedef
struct
BHead8
{
121
int
code
,
len
;
122
uint64_t
old
;
123
int
SDNAnr
,
nr
;
124
}
BHead8
;
125
126
#ifdef __cplusplus
127
}
128
#endif
uint
unsigned int uint
Definition:
BLI_sys_types.h:83
SDNA
struct SDNA SDNA
BHead
struct BHead BHead
BHead4
struct BHead4 BHead4
SDNA_StructMember
struct SDNA_StructMember SDNA_StructMember
BHead8
struct BHead8 BHead8
SDNA_Struct
struct SDNA_Struct SDNA_Struct
uint64_t
unsigned __int64 uint64_t
Definition:
stdint.h:93
BHead4
Definition:
DNA_sdna_types.h:113
BHead4::SDNAnr
int SDNAnr
Definition:
DNA_sdna_types.h:116
BHead4::len
int len
Definition:
DNA_sdna_types.h:114
BHead4::nr
int nr
Definition:
DNA_sdna_types.h:116
BHead4::old
uint old
Definition:
DNA_sdna_types.h:115
BHead4::code
int code
Definition:
DNA_sdna_types.h:114
BHead8
Definition:
DNA_sdna_types.h:120
BHead8::code
int code
Definition:
DNA_sdna_types.h:121
BHead8::len
int len
Definition:
DNA_sdna_types.h:121
BHead8::old
uint64_t old
Definition:
DNA_sdna_types.h:122
BHead8::nr
int nr
Definition:
DNA_sdna_types.h:123
BHead8::SDNAnr
int SDNAnr
Definition:
DNA_sdna_types.h:123
BHead
Definition:
DNA_sdna_types.h:106
BHead::nr
int nr
Definition:
DNA_sdna_types.h:109
BHead::SDNAnr
int SDNAnr
Definition:
DNA_sdna_types.h:109
BHead::code
int code
Definition:
DNA_sdna_types.h:107
BHead::old
const void * old
Definition:
DNA_sdna_types.h:108
BHead::len
int len
Definition:
DNA_sdna_types.h:107
GHash
Definition:
BLI_ghash.c:99
MemArena
Definition:
BLI_memarena.c:55
SDNA_StructMember
Definition:
DNA_sdna_types.h:33
SDNA_StructMember::name
short name
Definition:
DNA_sdna_types.h:39
SDNA_StructMember::type
short type
Definition:
DNA_sdna_types.h:37
SDNA_Struct
Definition:
DNA_sdna_types.h:44
SDNA_Struct::type
short type
Definition:
DNA_sdna_types.h:48
SDNA_Struct::members_len
short members_len
Definition:
DNA_sdna_types.h:50
SDNA_Struct::members
SDNA_StructMember members[]
Definition:
DNA_sdna_types.h:52
SDNA
Definition:
DNA_sdna_types.h:57
SDNA::types_len
int types_len
Definition:
DNA_sdna_types.h:77
SDNA::structs_map
struct GHash * structs_map
Definition:
DNA_sdna_types.h:88
SDNA::names_array_len
short * names_array_len
Definition:
DNA_sdna_types.h:69
SDNA::structs_len
int structs_len
Definition:
DNA_sdna_types.h:85
SDNA::types_size
short * types_size
Definition:
DNA_sdna_types.h:80
SDNA::names_len_alloc
int names_len_alloc
Definition:
DNA_sdna_types.h:65
SDNA::structs
SDNA_Struct ** structs
Definition:
DNA_sdna_types.h:83
SDNA::names_len
int names_len
Definition:
DNA_sdna_types.h:65
SDNA::data_len
int data_len
Definition:
DNA_sdna_types.h:61
SDNA::mem_arena
struct MemArena * mem_arena
Definition:
DNA_sdna_types.h:91
SDNA::types
const char ** types
Definition:
DNA_sdna_types.h:75
SDNA::pointer_size
int pointer_size
Definition:
DNA_sdna_types.h:72
SDNA::data
const char * data
Definition:
DNA_sdna_types.h:59
SDNA::data_alloc
bool data_alloc
Definition:
DNA_sdna_types.h:62
SDNA::names
const char ** names
Definition:
DNA_sdna_types.h:67
SDNA::alias
struct SDNA::@1007 alias
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1