infix
A JIT-Powered FFI Library for C
Loading...
Searching...
No Matches
infix.h
Go to the documentation of this file.
1
76
#pragma once
83
#define INFIX_MAJOR 0
84
#define INFIX_MINOR 1
85
#define INFIX_PATCH 1
87
// Define the POSIX source macro to ensure function declarations for shm_open,
88
// ftruncate, etc., are visible on all POSIX-compliant systems.
89
// This must be defined before any system headers are included.
90
#ifndef _DEFAULT_SOURCE
91
#define _DEFAULT_SOURCE
92
#endif
93
// Define the POSIX source macro to ensure function declarations for posix_memalign
94
// are visible. This must be defined before any system headers are included.
95
#if !defined(_POSIX_C_SOURCE)
96
#define _POSIX_C_SOURCE 200809L
97
#endif
98
#include "
common/compat_c23.h
"
99
#include <stdbool.h>
100
#include <stddef.h>
101
#include <stdint.h>
102
103
#ifdef __cplusplus
104
extern
"C"
{
105
#endif
125
// Opaque and Semi-Opaque Type Forward Declarations
128
typedef
struct
infix_type_t
infix_type
;
130
typedef
struct
infix_struct_member_t
infix_struct_member
;
132
typedef
struct
infix_function_argument_t
infix_function_argument
;
134
typedef
struct
infix_forward_t
infix_forward_t
;
136
typedef
struct
infix_reverse_t
infix_reverse_t
;
138
typedef
infix_reverse_t
infix_context_t
;
140
typedef
struct
infix_arena_t
infix_arena_t
;
142
typedef
struct
infix_library_t
infix_library_t
;
144
typedef
struct
infix_registry_t
infix_registry_t
;
148
typedef
enum
{
149
INFIX_TYPE_PRIMITIVE
,
150
INFIX_TYPE_POINTER
,
151
INFIX_TYPE_STRUCT
,
152
INFIX_TYPE_UNION
,
153
INFIX_TYPE_ARRAY
,
154
INFIX_TYPE_REVERSE_TRAMPOLINE
,
155
INFIX_TYPE_ENUM
,
156
INFIX_TYPE_COMPLEX
,
157
INFIX_TYPE_VECTOR
,
158
INFIX_TYPE_NAMED_REFERENCE
,
159
INFIX_TYPE_VOID
160
}
infix_type_category
;
164
typedef
enum
{
165
INFIX_PRIMITIVE_BOOL
,
166
INFIX_PRIMITIVE_UINT8
,
167
INFIX_PRIMITIVE_SINT8
,
168
INFIX_PRIMITIVE_UINT16
,
169
INFIX_PRIMITIVE_SINT16
,
170
INFIX_PRIMITIVE_UINT32
,
171
INFIX_PRIMITIVE_SINT32
,
172
INFIX_PRIMITIVE_UINT64
,
173
INFIX_PRIMITIVE_SINT64
,
174
INFIX_PRIMITIVE_UINT128
,
175
INFIX_PRIMITIVE_SINT128
,
176
INFIX_PRIMITIVE_FLOAT
,
177
INFIX_PRIMITIVE_DOUBLE
,
178
INFIX_PRIMITIVE_LONG_DOUBLE
179
}
infix_primitive_type_id
;
184
typedef
enum
{
INFIX_AGGREGATE_STRUCT
,
INFIX_AGGREGATE_UNION
}
infix_aggregate_category_t
;
194
struct
infix_type_t
{
195
const
char
*
name
;
196
infix_type_category
category
;
197
size_t
size
;
198
size_t
alignment
;
199
bool
is_arena_allocated
;
200
infix_arena_t
*
arena
;
202
union
{
204
infix_primitive_type_id
primitive_id
;
206
struct
{
207
struct
infix_type_t
*
pointee_type
;
208
}
pointer_info
;
210
struct
{
211
infix_struct_member
*
members
;
212
size_t
num_members
;
213
bool
is_packed
;
214
}
aggregate_info
;
216
struct
{
217
struct
infix_type_t
*
element_type
;
218
size_t
num_elements
;
219
bool
is_flexible
;
220
}
array_info
;
222
struct
{
223
struct
infix_type_t
*
return_type
;
224
infix_function_argument
*
args
;
225
size_t
num_args
;
226
size_t
num_fixed_args
;
227
}
func_ptr_info
;
229
struct
{
230
struct
infix_type_t
*
underlying_type
;
231
}
enum_info
;
233
struct
{
234
struct
infix_type_t
*
base_type
;
235
}
complex_info
;
237
struct
{
238
struct
infix_type_t
*
element_type
;
239
size_t
num_elements
;
240
}
vector_info
;
242
struct
{
243
const
char
*
name
;
244
infix_aggregate_category_t
aggregate_category
;
245
}
named_reference
;
246
}
meta
;
247
};
252
struct
infix_struct_member_t
{
253
const
char
*
name
;
254
infix_type
*
type
;
255
size_t
offset
;
256
uint8_t
bit_width
;
257
uint8_t
bit_offset
;
258
bool
is_bitfield
;
259
};
264
struct
infix_function_argument_t
{
265
const
char
*
name
;
266
infix_type
*
type
;
267
};
// end of type_system group
288
#ifndef infix_malloc
289
#define infix_malloc malloc
290
#endif
292
#ifndef infix_calloc
293
#define infix_calloc calloc
294
#endif
296
#ifndef infix_realloc
297
#define infix_realloc realloc
298
#endif
300
#ifndef infix_free
301
#define infix_free free
302
#endif
304
#ifndef infix_memcpy
305
#define infix_memcpy memcpy
306
#endif
308
#ifndef infix_memset
309
#define infix_memset memset
310
#endif
// end of memory_management group
327
typedef void (*infix_unbound_cif_func)(void *, void *, void **);
336
typedef
void (*
infix_cif_func
)(
void
*,
void
**);
348
typedef
void (*
infix_closure_handler_fn
)(
infix_context_t
*,
void
*,
void
**);
352
typedef
enum
{
353
INFIX_SUCCESS
= 0,
354
INFIX_ERROR_ALLOCATION_FAILED
,
355
INFIX_ERROR_INVALID_ARGUMENT
,
356
INFIX_ERROR_UNSUPPORTED_ABI
,
357
INFIX_ERROR_LAYOUT_FAILED
,
358
INFIX_ERROR_PROTECTION_FAILED
,
359
INFIX_ERROR_
360
}
infix_status
;
378
c23_nodiscard
infix_registry_t
*
infix_registry_create
(
void
);
387
void
infix_registry_destroy
(
infix_registry_t
*);
408
c23_nodiscard
infix_status
infix_register_types
(
infix_registry_t
*,
const
char
*);
// end of registry_api group
417
typedef
struct
infix_registry_iterator_t
infix_registry_iterator_t
;
430
c23_nodiscard
infix_status
infix_registry_print
(
char
*,
size_t
,
const
infix_registry_t
*);
438
c23_nodiscard
infix_registry_iterator_t
infix_registry_iterator_begin
(
const
infix_registry_t
*);
445
c23_nodiscard
bool
infix_registry_iterator_next
(
infix_registry_iterator_t
*);
452
c23_nodiscard
const
char
*
infix_registry_iterator_get_name
(
const
infix_registry_iterator_t
*);
459
c23_nodiscard
const
infix_type
*
infix_registry_iterator_get_type
(
const
infix_registry_iterator_t
*);
470
c23_nodiscard
bool
infix_registry_is_defined
(
const
infix_registry_t
*,
const
char
*);
480
c23_nodiscard
const
infix_type
*
infix_registry_lookup_type
(
const
infix_registry_t
*,
const
char
*);
493
c23_nodiscard
infix_registry_t
*
infix_registry_create_in_arena
(
infix_arena_t
*
arena
);
// end of registry_introspection_api group
543
c23_nodiscard
infix_status
infix_forward_create
(
infix_forward_t
**,
const
char
*,
void
*,
infix_registry_t
*);
587
c23_nodiscard
infix_status
infix_forward_create_unbound
(
infix_forward_t
**,
const
char
*,
infix_registry_t
*);
601
c23_nodiscard
infix_status
602
infix_forward_create_in_arena
(
infix_forward_t
**,
infix_arena_t
*,
const
char
*,
void
*,
infix_registry_t
*);
643
c23_nodiscard
infix_status
infix_reverse_create_callback
(
infix_reverse_t
**,
const
char
*,
void
*,
infix_registry_t
*);
703
c23_nodiscard
infix_status
704
infix_reverse_create_closure
(
infix_reverse_t
**,
const
char
*,
infix_closure_handler_fn
,
void
*,
infix_registry_t
*);
722
c23_nodiscard
infix_status
infix_signature_parse
(
723
const
char
*,
infix_arena_t
**,
infix_type
**,
infix_function_argument
**,
size_t
*,
size_t
*,
infix_registry_t
*);
737
c23_nodiscard
infix_status
infix_type_from_signature
(
infix_type
**,
infix_arena_t
**,
const
char
*,
infix_registry_t
*);
// end of high_level_api group
749
c23_nodiscard
infix_library_t
*
infix_library_open
(
const
char
*);
754
void
infix_library_close
(
infix_library_t
*);
761
c23_nodiscard
void
*
infix_library_get_symbol
(
infix_library_t
*,
const
char
*);
775
c23_nodiscard
infix_status
infix_read_global
(
infix_library_t
*,
const
char
*,
const
char
*,
void
*,
infix_registry_t
*);
785
c23_nodiscard
infix_status
786
infix_write_global
(
infix_library_t
*,
const
char
*,
const
char
*,
void
*,
infix_registry_t
*);
// end of exports_api group
807
c23_nodiscard
infix_status
808
infix_forward_create_manual
(
infix_forward_t
**,
infix_type
*,
infix_type
**,
size_t
,
size_t
,
void
*);
818
c23_nodiscard
infix_status
819
infix_forward_create_unbound_manual
(
infix_forward_t
**,
infix_type
*,
infix_type
**,
size_t
,
size_t
);
830
c23_nodiscard
infix_status
831
infix_reverse_create_callback_manual
(
infix_reverse_t
**,
infix_type
*,
infix_type
**,
size_t
,
size_t
,
void
*);
843
c23_nodiscard
infix_status
infix_reverse_create_closure_manual
(
844
infix_reverse_t
**,
infix_type
*,
infix_type
**,
size_t
,
size_t
,
infix_closure_handler_fn
,
void
*);
849
void
infix_forward_destroy
(
infix_forward_t
*);
854
void
infix_reverse_destroy
(
infix_reverse_t
*);
864
c23_nodiscard
infix_type
*
infix_type_create_primitive
(
infix_primitive_type_id
);
869
c23_nodiscard
infix_type
*
infix_type_create_pointer
(
void
);
877
c23_nodiscard
infix_status
infix_type_create_pointer_to
(
infix_arena_t
*,
infix_type
**,
infix_type
*);
882
c23_nodiscard
infix_type
*
infix_type_create_void
(
void
);
891
c23_nodiscard
infix_status
infix_type_create_struct
(
infix_arena_t
*,
infix_type
**,
infix_struct_member
*,
size_t
);
902
c23_nodiscard
infix_status
903
infix_type_create_packed_struct
(
infix_arena_t
*,
infix_type
**,
size_t
,
size_t
,
infix_struct_member
*,
size_t
);
912
c23_nodiscard
infix_status
infix_type_create_union
(
infix_arena_t
*,
infix_type
**,
infix_struct_member
*,
size_t
);
921
c23_nodiscard
infix_status
infix_type_create_array
(
infix_arena_t
*,
infix_type
**,
infix_type
*,
size_t
);
930
infix_status
infix_type_create_flexible_array
(
931
infix_arena_t
*,
932
infix_type
**,
933
infix_type
*);
941
c23_nodiscard
infix_status
infix_type_create_enum
(
infix_arena_t
*,
infix_type
**,
infix_type
*);
950
c23_nodiscard
infix_status
infix_type_create_named_reference
(
infix_arena_t
*,
951
infix_type
**,
952
const
char
*,
953
infix_aggregate_category_t
);
961
c23_nodiscard
infix_status
infix_type_create_complex
(
infix_arena_t
*,
infix_type
**,
infix_type
*);
970
c23_nodiscard
infix_status
infix_type_create_vector
(
infix_arena_t
*,
infix_type
**,
infix_type
*,
size_t
);
978
infix_struct_member
infix_type_create_member
(
const
char
*,
infix_type
*,
size_t
);
987
infix_struct_member
infix_type_create_bitfield_member
(
const
char
*,
infix_type
*,
size_t
, uint8_t);
// end of manual_api group (continued) // end of type_system group
1002
c23_nodiscard
infix_arena_t
*
infix_arena_create
(
size_t
);
1007
void
infix_arena_destroy
(
infix_arena_t
*);
1015
c23_nodiscard
void
*
infix_arena_alloc
(
infix_arena_t
*,
size_t
,
size_t
);
1024
c23_nodiscard
void
*
infix_arena_calloc
(
infix_arena_t
*,
size_t
,
size_t
,
size_t
);
// end of memory_management group (continued)
1038
typedef
enum
{
1039
INFIX_DIALECT_SIGNATURE
,
1040
INFIX_DIALECT_ITANIUM_MANGLING
,
1041
INFIX_DIALECT_MSVC_MANGLING
1042
}
infix_print_dialect_t
;
1051
c23_nodiscard
infix_status
infix_type_print
(
char
*,
size_t
,
const
infix_type
*,
infix_print_dialect_t
);
1064
c23_nodiscard
infix_status
infix_function_print
(
char
*,
1065
size_t
,
1066
const
char
*,
1067
const
infix_type
*,
1068
const
infix_function_argument
*,
1069
size_t
,
1070
size_t
,
1071
infix_print_dialect_t
);
1078
c23_nodiscard
infix_unbound_cif_func
infix_forward_get_unbound_code
(
infix_forward_t
*);
1085
c23_nodiscard
infix_cif_func
infix_forward_get_code
(
infix_forward_t
*);
1092
c23_nodiscard
void
*
infix_reverse_get_code
(
const
infix_reverse_t
*);
1098
c23_nodiscard
void
*
infix_reverse_get_user_data
(
const
infix_reverse_t
*);
1106
c23_nodiscard
size_t
infix_forward_get_num_args
(
const
infix_forward_t
*);
1112
c23_nodiscard
size_t
infix_forward_get_num_fixed_args
(
const
infix_forward_t
*);
1118
c23_nodiscard
const
infix_type
*
infix_forward_get_return_type
(
const
infix_forward_t
*);
1125
c23_nodiscard
const
infix_type
*
infix_forward_get_arg_type
(
const
infix_forward_t
*,
size_t
);
1131
c23_nodiscard
size_t
infix_reverse_get_num_args
(
const
infix_reverse_t
*);
1137
c23_nodiscard
const
infix_type
*
infix_reverse_get_return_type
(
const
infix_reverse_t
*);
1143
c23_nodiscard
size_t
infix_reverse_get_num_fixed_args
(
const
infix_reverse_t
*);
1150
c23_nodiscard
const
infix_type
*
infix_reverse_get_arg_type
(
const
infix_reverse_t
*,
size_t
);
1157
c23_nodiscard
const
char
*
infix_type_get_name
(
const
infix_type
*);
1163
c23_nodiscard
infix_type_category
infix_type_get_category
(
const
infix_type
*);
1169
c23_nodiscard
size_t
infix_type_get_size
(
const
infix_type
*);
1175
c23_nodiscard
size_t
infix_type_get_alignment
(
const
infix_type
*);
1181
c23_nodiscard
size_t
infix_type_get_member_count
(
const
infix_type
*);
1188
c23_nodiscard
const
infix_struct_member
*
infix_type_get_member
(
const
infix_type
*,
size_t
);
1195
c23_nodiscard
const
char
*
infix_type_get_arg_name
(
const
infix_type
*,
size_t
);
1202
c23_nodiscard
const
infix_type
*
infix_type_get_arg_type
(
const
infix_type
*,
size_t
);
// end addtogroup type_system // end of introspection_api group
1213
typedef
enum
{
1214
INFIX_CATEGORY_NONE
,
1215
INFIX_CATEGORY_GENERAL
,
1216
INFIX_CATEGORY_ALLOCATION
,
1217
INFIX_CATEGORY_PARSER
,
1218
INFIX_CATEGORY_ABI
1219
}
infix_error_category_t
;
1223
typedef
enum
{
1224
// General Codes (0-99)
1225
INFIX_CODE_SUCCESS
= 0,
1226
INFIX_CODE_UNKNOWN
,
1227
// Allocation Codes (100-199)
1228
INFIX_CODE_OUT_OF_MEMORY
= 100,
1229
INFIX_CODE_EXECUTABLE_MEMORY_FAILURE
,
1230
INFIX_CODE_PROTECTION_FAILURE
,
1231
// Parser Codes (200-299)
1232
INFIX_CODE_UNEXPECTED_TOKEN
= 200,
1233
INFIX_CODE_UNTERMINATED_AGGREGATE
,
1234
INFIX_CODE_INVALID_KEYWORD
,
1235
INFIX_CODE_MISSING_RETURN_TYPE
,
1236
INFIX_CODE_INTEGER_OVERFLOW
,
1237
INFIX_CODE_RECURSION_DEPTH_EXCEEDED
,
1238
INFIX_CODE_EMPTY_MEMBER_NAME
,
1239
// ABI/Layout Codes (300-399)
1240
INFIX_CODE_UNSUPPORTED_ABI
= 300,
1241
INFIX_CODE_TYPE_TOO_LARGE
,
1242
INFIX_CODE_UNRESOLVED_NAMED_TYPE
,
1243
INFIX_CODE_INVALID_MEMBER_TYPE
,
1244
INFIX_CODE_LAYOUT_FAILED
,
1245
// Library Loading Codes (400-499)
1246
INFIX_CODE_LIBRARY_NOT_FOUND
= 400,
1247
INFIX_CODE_SYMBOL_NOT_FOUND
,
1248
INFIX_CODE_LIBRARY_LOAD_FAILED
1249
}
infix_error_code_t
;
1254
typedef
struct
{
1255
infix_error_category_t
category
;
1256
infix_error_code_t
code
;
1257
size_t
position
;
1258
long
system_error_code
;
1259
char
message[256];
1261
}
infix_error_details_t
;
1266
infix_error_details_t
infix_get_last_error
(
void
);
// end of error_api group
1291
typedef
void (*
infix_direct_cif_func
)(
void
*,
void
**);
1292
1300
typedef
union
{
1301
uint64_t
u64
;
1302
int64_t
i64
;
1303
double
f64
;
1304
void
*
ptr
;
1305
}
infix_direct_value_t
;
1306
1316
typedef
infix_direct_value_t
(*
infix_marshaller_fn
)(
void
* source_object);
1317
1332
typedef
void (*
infix_aggregate_marshaller_fn
)(
void
* source_object,
void
* dest_buffer,
const
infix_type
* type);
1333
1346
typedef
void (*
infix_writeback_fn
)(
void
* source_object,
void
* c_data_ptr,
const
infix_type
* type);
1347
1354
typedef
struct
{
1356
infix_marshaller_fn
scalar_marshaller
;
1358
infix_aggregate_marshaller_fn
aggregate_marshaller
;
1360
infix_writeback_fn
writeback_handler
;
1361
}
infix_direct_arg_handler_t
;
1362
1381
c23_nodiscard
infix_status
infix_forward_create_direct
(
infix_forward_t
** out_trampoline,
1382
const
char
* signature,
1383
void
* target_function,
1384
infix_direct_arg_handler_t
*
handlers
,
1385
infix_registry_t
*
registry
);
1393
c23_nodiscard
infix_direct_cif_func
infix_forward_get_direct_code
(
infix_forward_t
* trampoline);
// end of direct_marshalling_api group
1395
#ifdef __cplusplus
1396
}
1397
#endif
arena
infix_arena_t * arena
Definition
005_layouts.c:60
registry
infix_registry_t * registry
Definition
008_registry_introspection.c:32
handlers
infix_direct_arg_handler_t handlers[2]
Definition
901_call_overhead.c:103
compat_c23.h
Provides forward compatibility macros for C23 features.
c23_nodiscard
#define c23_nodiscard
A compatibility macro for the C23 [[nodiscard]] attribute.
Definition
compat_c23.h:106
infix_forward_create_direct
c23_nodiscard infix_status infix_forward_create_direct(infix_forward_t **out_trampoline, const char *signature, void *target_function, infix_direct_arg_handler_t *handlers, infix_registry_t *registry)
Creates a forward trampoline with direct, JIT-bound marshalling.
Definition
trampoline.c:1000
infix_direct_cif_func
void(* infix_direct_cif_func)(void *, void **)
A function pointer for a direct marshalling forward trampoline.
Definition
infix.h:1291
infix_aggregate_marshaller_fn
void(* infix_aggregate_marshaller_fn)(void *source_object, void *dest_buffer, const infix_type *type)
A function pointer for a custom marshaller for aggregate types (structs/unions).
Definition
infix.h:1332
infix_marshaller_fn
infix_direct_value_t(* infix_marshaller_fn)(void *source_object)
A function pointer for a custom marshaller for scalar types.
Definition
infix.h:1316
infix_forward_get_direct_code
c23_nodiscard infix_direct_cif_func infix_forward_get_direct_code(infix_forward_t *trampoline)
Gets the callable function pointer from a direct marshalling trampoline.
Definition
trampoline.c:283
infix_writeback_fn
void(* infix_writeback_fn)(void *source_object, void *c_data_ptr, const infix_type *type)
A function pointer for a "write-back" handler for out/in-out parameters.
Definition
infix.h:1346
infix_error_code_t
infix_error_code_t
Enumerates specific error codes.
Definition
infix.h:1223
infix_get_last_error
infix_error_details_t infix_get_last_error(void)
Retrieves detailed information about the last error that occurred on the current thread.
Definition
error.c:271
infix_error_category_t
infix_error_category_t
Enumerates the high-level categories of errors that can occur.
Definition
infix.h:1213
INFIX_CODE_PROTECTION_FAILURE
@ INFIX_CODE_PROTECTION_FAILURE
Definition
infix.h:1230
INFIX_CODE_SUCCESS
@ INFIX_CODE_SUCCESS
Definition
infix.h:1225
INFIX_CODE_LAYOUT_FAILED
@ INFIX_CODE_LAYOUT_FAILED
Definition
infix.h:1244
INFIX_CODE_LIBRARY_NOT_FOUND
@ INFIX_CODE_LIBRARY_NOT_FOUND
Definition
infix.h:1246
INFIX_CODE_INVALID_MEMBER_TYPE
@ INFIX_CODE_INVALID_MEMBER_TYPE
Definition
infix.h:1243
INFIX_CODE_UNRESOLVED_NAMED_TYPE
@ INFIX_CODE_UNRESOLVED_NAMED_TYPE
Definition
infix.h:1242
INFIX_CODE_INTEGER_OVERFLOW
@ INFIX_CODE_INTEGER_OVERFLOW
Definition
infix.h:1236
INFIX_CODE_TYPE_TOO_LARGE
@ INFIX_CODE_TYPE_TOO_LARGE
Definition
infix.h:1241
INFIX_CODE_UNEXPECTED_TOKEN
@ INFIX_CODE_UNEXPECTED_TOKEN
Definition
infix.h:1232
INFIX_CODE_MISSING_RETURN_TYPE
@ INFIX_CODE_MISSING_RETURN_TYPE
Definition
infix.h:1235
INFIX_CODE_EMPTY_MEMBER_NAME
@ INFIX_CODE_EMPTY_MEMBER_NAME
Definition
infix.h:1238
INFIX_CODE_EXECUTABLE_MEMORY_FAILURE
@ INFIX_CODE_EXECUTABLE_MEMORY_FAILURE
Definition
infix.h:1229
INFIX_CODE_UNKNOWN
@ INFIX_CODE_UNKNOWN
Definition
infix.h:1226
INFIX_CODE_SYMBOL_NOT_FOUND
@ INFIX_CODE_SYMBOL_NOT_FOUND
Definition
infix.h:1247
INFIX_CODE_RECURSION_DEPTH_EXCEEDED
@ INFIX_CODE_RECURSION_DEPTH_EXCEEDED
Definition
infix.h:1237
INFIX_CODE_UNSUPPORTED_ABI
@ INFIX_CODE_UNSUPPORTED_ABI
Definition
infix.h:1240
INFIX_CODE_UNTERMINATED_AGGREGATE
@ INFIX_CODE_UNTERMINATED_AGGREGATE
Definition
infix.h:1233
INFIX_CODE_LIBRARY_LOAD_FAILED
@ INFIX_CODE_LIBRARY_LOAD_FAILED
Definition
infix.h:1248
INFIX_CODE_INVALID_KEYWORD
@ INFIX_CODE_INVALID_KEYWORD
Definition
infix.h:1234
INFIX_CODE_OUT_OF_MEMORY
@ INFIX_CODE_OUT_OF_MEMORY
Definition
infix.h:1228
INFIX_CATEGORY_ABI
@ INFIX_CATEGORY_ABI
Definition
infix.h:1218
INFIX_CATEGORY_ALLOCATION
@ INFIX_CATEGORY_ALLOCATION
Definition
infix.h:1216
INFIX_CATEGORY_GENERAL
@ INFIX_CATEGORY_GENERAL
Definition
infix.h:1215
INFIX_CATEGORY_PARSER
@ INFIX_CATEGORY_PARSER
Definition
infix.h:1217
INFIX_CATEGORY_NONE
@ INFIX_CATEGORY_NONE
Definition
infix.h:1214
infix_write_global
c23_nodiscard infix_status infix_write_global(infix_library_t *, const char *, const char *, void *, infix_registry_t *)
Writes data from a buffer into a global variable in a library.
Definition
loader.c:189
infix_library_close
void infix_library_close(infix_library_t *)
Closes a dynamic library handle.
Definition
loader.c:90
infix_library_get_symbol
c23_nodiscard void * infix_library_get_symbol(infix_library_t *, const char *)
Retrieves the address of a symbol (function or variable) from a loaded library.
Definition
loader.c:121
infix_library_open
c23_nodiscard infix_library_t * infix_library_open(const char *)
Opens a dynamic library and returns a handle to it.
Definition
loader.c:46
infix_read_global
c23_nodiscard infix_status infix_read_global(infix_library_t *, const char *, const char *, void *, infix_registry_t *)
Reads the value of a global variable from a library into a buffer.
Definition
loader.c:147
infix_reverse_create_callback
c23_nodiscard infix_status infix_reverse_create_callback(infix_reverse_t **, const char *, void *, infix_registry_t *)
Creates a type-safe reverse trampoline (callback).
Definition
trampoline.c:1044
infix_type_t::pointer_info
struct infix_type_t::@0::@1 pointer_info
Metadata for INFIX_TYPE_POINTER.
infix_error_details_t::position
size_t position
Definition
infix.h:1257
infix_type_t::meta
union infix_type_t::@0 meta
A union containing metadata specific to the type's category.
infix_type_t::is_packed
bool is_packed
Definition
infix.h:213
infix_type_t::vector_info
struct infix_type_t::@0::@7 vector_info
Metadata for INFIX_TYPE_VECTOR.
infix_error_details_t::category
infix_error_category_t category
Definition
infix.h:1255
infix_direct_value_t::u64
uint64_t u64
Used for all unsigned integer types up to 64 bits.
Definition
infix.h:1301
infix_function_argument_t::type
infix_type * type
Definition
infix.h:266
infix_type_t::func_ptr_info
struct infix_type_t::@0::@4 func_ptr_info
Metadata for INFIX_TYPE_REVERSE_TRAMPOLINE.
infix_cif_func
void(* infix_cif_func)(void *, void **)
A function pointer type for a bound forward trampoline.
Definition
infix.h:336
infix_type_from_signature
c23_nodiscard infix_status infix_type_from_signature(infix_type **, infix_arena_t **, const char *, infix_registry_t *)
Parses a signature string representing a single data type.
Definition
signature.c:1009
infix_type_t::num_elements
size_t num_elements
Definition
infix.h:218
infix_type_t::arena
infix_arena_t * arena
Definition
infix.h:200
infix_type_t::size
size_t size
Definition
infix.h:197
infix_unbound_cif_func
void(* infix_unbound_cif_func)(void *, void *, void **)
A function pointer type for an unbound forward trampoline.
Definition
infix.h:327
infix_type_t::alignment
size_t alignment
Definition
infix.h:198
infix_forward_create_unbound
c23_nodiscard infix_status infix_forward_create_unbound(infix_forward_t **, const char *, infix_registry_t *)
Creates an "unbound" forward trampoline from a signature string.
Definition
trampoline.c:995
infix_forward_create
c23_nodiscard infix_status infix_forward_create(infix_forward_t **, const char *, void *, infix_registry_t *)
Creates a "bound" forward trampoline from a signature string.
Definition
trampoline.c:989
infix_direct_value_t::ptr
void * ptr
Used for all pointer types.
Definition
infix.h:1304
infix_struct_member_t::bit_offset
uint8_t bit_offset
Definition
infix.h:257
infix_direct_arg_handler_t::writeback_handler
infix_writeback_fn writeback_handler
For "out" or "in-out" parameters. Called after the C function returns.
Definition
infix.h:1360
infix_type_t::members
infix_struct_member * members
Definition
infix.h:211
infix_forward_create_in_arena
c23_nodiscard infix_status infix_forward_create_in_arena(infix_forward_t **, infix_arena_t *, const char *, void *, infix_registry_t *)
Creates a "bound" forward trampoline within a user-provided arena.
Definition
trampoline.c:911
infix_struct_member_t::is_bitfield
bool is_bitfield
Definition
infix.h:258
infix_type_t::complex_info
struct infix_type_t::@0::@6 complex_info
Metadata for INFIX_TYPE_COMPLEX.
infix_reverse_create_closure
c23_nodiscard infix_status infix_reverse_create_closure(infix_reverse_t **, const char *, infix_closure_handler_fn, void *, infix_registry_t *)
Creates a generic reverse trampoline (closure) for stateful callbacks.
Definition
trampoline.c:1072
infix_type_t::name
const char * name
Definition
infix.h:195
infix_type_t::args
infix_function_argument * args
Definition
infix.h:224
infix_type_t::@0::@7::num_elements
size_t num_elements
Definition
infix.h:239
infix_type_t::@0::@7::element_type
struct infix_type_t * element_type
Definition
infix.h:238
infix_type_t::aggregate_category
infix_aggregate_category_t aggregate_category
Definition
infix.h:244
infix_status
infix_status
Enumerates the possible status codes returned by infix API functions.
Definition
infix.h:352
infix_function_argument_t::name
const char * name
Definition
infix.h:265
infix_type_t::@0::@8::name
const char * name
Definition
infix.h:243
infix_struct_member_t::name
const char * name
Definition
infix.h:253
infix_type_t::category
infix_type_category category
Definition
infix.h:196
infix_type_t::aggregate_info
struct infix_type_t::@0::@2 aggregate_info
Metadata for INFIX_TYPE_STRUCT and INFIX_TYPE_UNION.
infix_type_t::array_info
struct infix_type_t::@0::@3 array_info
Metadata for INFIX_TYPE_ARRAY.
infix_type_t::pointee_type
struct infix_type_t * pointee_type
Definition
infix.h:207
infix_direct_arg_handler_t::scalar_marshaller
infix_marshaller_fn scalar_marshaller
For "in" parameters of a scalar type (int, float, pointer).
Definition
infix.h:1356
infix_struct_member_t::type
infix_type * type
Definition
infix.h:254
infix_type_t::element_type
struct infix_type_t * element_type
Definition
infix.h:217
infix_type_t::is_flexible
bool is_flexible
Definition
infix.h:219
infix_type_t::return_type
struct infix_type_t * return_type
Definition
infix.h:223
infix_signature_parse
c23_nodiscard infix_status infix_signature_parse(const char *, infix_arena_t **, infix_type **, infix_function_argument **, size_t *, size_t *, infix_registry_t *)
Parses a full function signature string into its constituent parts.
Definition
signature.c:1068
infix_struct_member_t::offset
size_t offset
Definition
infix.h:255
infix_type_t::enum_info
struct infix_type_t::@0::@5 enum_info
Metadata for INFIX_TYPE_ENUM.
infix_direct_arg_handler_t::aggregate_marshaller
infix_aggregate_marshaller_fn aggregate_marshaller
For "in" parameters of an aggregate type (struct, union).
Definition
infix.h:1358
infix_direct_value_t::f64
double f64
Used for float and double.
Definition
infix.h:1303
infix_type_t::base_type
struct infix_type_t * base_type
Definition
infix.h:234
infix_error_details_t::system_error_code
long system_error_code
Definition
infix.h:1258
infix_struct_member_t::bit_width
uint8_t bit_width
Definition
infix.h:256
infix_error_details_t::code
infix_error_code_t code
Definition
infix.h:1256
infix_direct_value_t::i64
int64_t i64
Used for all signed integer types up to 64 bits.
Definition
infix.h:1302
infix_type_t::num_members
size_t num_members
Definition
infix.h:212
infix_type_t::underlying_type
struct infix_type_t * underlying_type
Definition
infix.h:230
infix_type_t::named_reference
struct infix_type_t::@0::@8 named_reference
Metadata for INFIX_TYPE_NAMED_REFERENCE.
infix_type_t::num_fixed_args
size_t num_fixed_args
Definition
infix.h:226
infix_closure_handler_fn
void(* infix_closure_handler_fn)(infix_context_t *, void *, void **)
A function pointer type for a generic closure handler.
Definition
infix.h:348
infix_type_t::primitive_id
infix_primitive_type_id primitive_id
Metadata for INFIX_TYPE_PRIMITIVE.
Definition
infix.h:204
infix_type_t::num_args
size_t num_args
Definition
infix.h:225
infix_type_t::is_arena_allocated
bool is_arena_allocated
Definition
infix.h:199
INFIX_ERROR_ALLOCATION_FAILED
@ INFIX_ERROR_ALLOCATION_FAILED
Definition
infix.h:354
INFIX_ERROR_LAYOUT_FAILED
@ INFIX_ERROR_LAYOUT_FAILED
Definition
infix.h:357
INFIX_ERROR_
@ INFIX_ERROR_
Definition
infix.h:359
INFIX_ERROR_PROTECTION_FAILED
@ INFIX_ERROR_PROTECTION_FAILED
Definition
infix.h:358
INFIX_ERROR_UNSUPPORTED_ABI
@ INFIX_ERROR_UNSUPPORTED_ABI
Definition
infix.h:356
INFIX_SUCCESS
@ INFIX_SUCCESS
Definition
infix.h:353
INFIX_ERROR_INVALID_ARGUMENT
@ INFIX_ERROR_INVALID_ARGUMENT
Definition
infix.h:355
infix_forward_get_code
c23_nodiscard infix_cif_func infix_forward_get_code(infix_forward_t *)
Gets the callable function pointer from a bound forward trampoline.
Definition
trampoline.c:278
infix_reverse_get_code
c23_nodiscard void * infix_reverse_get_code(const infix_reverse_t *)
Gets the native, callable C function pointer from a reverse trampoline.
Definition
trampoline.c:895
infix_type_print
c23_nodiscard infix_status infix_type_print(char *, size_t, const infix_type *, infix_print_dialect_t)
Serializes an infix_type object graph back into a signature string.
Definition
signature.c:1531
infix_forward_get_unbound_code
c23_nodiscard infix_unbound_cif_func infix_forward_get_unbound_code(infix_forward_t *)
Gets the callable function pointer from an unbound forward trampoline.
Definition
trampoline.c:273
infix_forward_get_num_args
c23_nodiscard size_t infix_forward_get_num_args(const infix_forward_t *)
Gets the total number of arguments for a forward trampoline.
Definition
types.c:1321
infix_reverse_get_user_data
c23_nodiscard void * infix_reverse_get_user_data(const infix_reverse_t *)
Gets the user-provided data pointer from a closure context.
Definition
trampoline.c:905
infix_function_print
c23_nodiscard infix_status infix_function_print(char *, size_t, const char *, const infix_type *, const infix_function_argument *, size_t, size_t, infix_print_dialect_t)
Serializes a function signature's components into a string.
Definition
signature.c:1575
infix_print_dialect_t
infix_print_dialect_t
Specifies the output format for printing types and function signatures.
Definition
infix.h:1038
INFIX_DIALECT_SIGNATURE
@ INFIX_DIALECT_SIGNATURE
Definition
infix.h:1039
INFIX_DIALECT_ITANIUM_MANGLING
@ INFIX_DIALECT_ITANIUM_MANGLING
Definition
infix.h:1040
INFIX_DIALECT_MSVC_MANGLING
@ INFIX_DIALECT_MSVC_MANGLING
Definition
infix.h:1041
infix_reverse_destroy
void infix_reverse_destroy(infix_reverse_t *)
Destroys a reverse trampoline and frees all associated memory.
Definition
trampoline.c:877
infix_forward_create_manual
c23_nodiscard infix_status infix_forward_create_manual(infix_forward_t **, infix_type *, infix_type **, size_t, size_t, void *)
Creates a bound forward trampoline from infix_type objects.
Definition
trampoline.c:589
infix_reverse_create_callback_manual
c23_nodiscard infix_status infix_reverse_create_callback_manual(infix_reverse_t **, infix_type *, infix_type **, size_t, size_t, void *)
Creates a type-safe reverse trampoline (callback) from infix_type objects.
Definition
trampoline.c:838
infix_reverse_create_closure_manual
c23_nodiscard infix_status infix_reverse_create_closure_manual(infix_reverse_t **, infix_type *, infix_type **, size_t, size_t, infix_closure_handler_fn, void *)
Creates a generic reverse trampoline (closure) from infix_type objects.
Definition
trampoline.c:859
infix_forward_create_unbound_manual
c23_nodiscard infix_status infix_forward_create_unbound_manual(infix_forward_t **, infix_type *, infix_type **, size_t, size_t)
Creates an unbound forward trampoline from infix_type objects.
Definition
trampoline.c:615
infix_forward_destroy
void infix_forward_destroy(infix_forward_t *)
Destroys a forward trampoline and frees all associated memory.
Definition
trampoline.c:631
infix_arena_destroy
void infix_arena_destroy(infix_arena_t *)
Destroys an arena and frees all memory allocated from it.
Definition
arena.c:83
infix_arena_calloc
c23_nodiscard void * infix_arena_calloc(infix_arena_t *, size_t, size_t, size_t)
Allocates and zero-initializes a block of memory from an arena.
Definition
arena.c:179
infix_arena_alloc
c23_nodiscard void * infix_arena_alloc(infix_arena_t *, size_t, size_t)
Allocates a block of memory from an arena.
Definition
arena.c:117
infix_arena_create
c23_nodiscard infix_arena_t * infix_arena_create(size_t)
Creates a new memory arena.
Definition
arena.c:52
infix_registry_destroy
void infix_registry_destroy(infix_registry_t *)
Destroys a type registry and frees all associated memory.
Definition
type_registry.c:216
infix_register_types
c23_nodiscard infix_status infix_register_types(infix_registry_t *, const char *)
Parses a string of type definitions and adds them to a registry.
Definition
type_registry.c:430
infix_registry_create
c23_nodiscard infix_registry_t * infix_registry_create(void)
Creates a new, empty named type registry.
Definition
type_registry.c:145
infix_registry_lookup_type
c23_nodiscard const infix_type * infix_registry_lookup_type(const infix_registry_t *, const char *)
Retrieves the canonical infix_type object for a given name from the registry.
Definition
type_registry.c:740
infix_registry_create_in_arena
c23_nodiscard infix_registry_t * infix_registry_create_in_arena(infix_arena_t *arena)
Creates a new named type registry that allocates from a user-provided arena.
Definition
type_registry.c:183
infix_registry_iterator_get_type
c23_nodiscard const infix_type * infix_registry_iterator_get_type(const infix_registry_iterator_t *)
Gets the infix_type object of the type at the iterator's current position.
Definition
type_registry.c:709
infix_registry_print
c23_nodiscard infix_status infix_registry_print(char *, size_t, const infix_registry_t *)
Serializes all defined types within a registry into a single, human-readable string.
Definition
signature.c:1640
infix_registry_iterator_begin
c23_nodiscard infix_registry_iterator_t infix_registry_iterator_begin(const infix_registry_t *)
Initializes an iterator for traversing the types in a registry.
Definition
type_registry.c:645
infix_registry_iterator_next
c23_nodiscard bool infix_registry_iterator_next(infix_registry_iterator_t *)
Advances the iterator to the next defined type in the registry.
Definition
type_registry.c:657
infix_registry_iterator_get_name
c23_nodiscard const char * infix_registry_iterator_get_name(const infix_registry_iterator_t *)
Gets the name of the type at the iterator's current position.
Definition
type_registry.c:696
infix_registry_is_defined
c23_nodiscard bool infix_registry_is_defined(const infix_registry_t *, const char *)
Checks if a type with the given name is fully defined in the registry.
Definition
type_registry.c:724
infix_type_create_packed_struct
c23_nodiscard infix_status infix_type_create_packed_struct(infix_arena_t *, infix_type **, size_t, size_t, infix_struct_member *, size_t)
Creates a new packed struct type with a user-specified layout.
Definition
types.c:744
infix_type_get_size
c23_nodiscard size_t infix_type_get_size(const infix_type *)
Gets the size of a type in bytes.
Definition
types.c:1261
infix_type_create_flexible_array
infix_status infix_type_create_flexible_array(infix_arena_t *, infix_type **, infix_type *)
Creates a flexible array member type ([?:type]).
Definition
types.c:493
infix_type_get_arg_type
c23_nodiscard const infix_type * infix_type_get_arg_type(const infix_type *, size_t)
Gets the type of a specific argument from a function type.
Definition
types.c:1310
infix_type_create_void
c23_nodiscard infix_type * infix_type_create_void(void)
Creates a static descriptor for the void type.
Definition
types.c:183
infix_type_get_alignment
c23_nodiscard size_t infix_type_get_alignment(const infix_type *)
Gets the alignment requirement of a type in bytes.
Definition
types.c:1267
infix_forward_get_num_fixed_args
c23_nodiscard size_t infix_forward_get_num_fixed_args(const infix_forward_t *)
Gets the number of fixed (non-variadic) arguments for a forward trampoline.
Definition
types.c:1329
infix_type_get_name
c23_nodiscard const char * infix_type_get_name(const infix_type *)
Gets the semantic alias of a type, if one exists.
Definition
types.c:1243
infix_forward_get_return_type
c23_nodiscard const infix_type * infix_forward_get_return_type(const infix_forward_t *)
Gets the return type for a forward trampoline.
Definition
types.c:1337
infix_primitive_type_id
infix_primitive_type_id
Enumerates the supported primitive C types.
Definition
infix.h:164
infix_forward_get_arg_type
c23_nodiscard const infix_type * infix_forward_get_arg_type(const infix_forward_t *, size_t)
Gets the type of a specific argument for a forward trampoline.
Definition
types.c:1346
infix_type_create_union
c23_nodiscard infix_status infix_type_create_union(infix_arena_t *, infix_type **, infix_struct_member *, size_t)
Creates a new union type from an array of members.
Definition
types.c:638
infix_type_create_enum
c23_nodiscard infix_status infix_type_create_enum(infix_arena_t *, infix_type **, infix_type *)
Creates a new enum type with a specified underlying integer type.
Definition
types.c:536
infix_type_create_vector
c23_nodiscard infix_status infix_type_create_vector(infix_arena_t *, infix_type **, infix_type *, size_t)
Creates a new SIMD vector type.
Definition
types.c:600
infix_reverse_get_return_type
c23_nodiscard const infix_type * infix_reverse_get_return_type(const infix_reverse_t *)
Gets the return type for a reverse trampoline.
Definition
types.c:1372
infix_type_create_pointer
c23_nodiscard infix_type * infix_type_create_pointer(void)
Creates a static descriptor for a generic pointer (void*).
Definition
types.c:178
infix_type_create_complex
c23_nodiscard infix_status infix_type_create_complex(infix_arena_t *, infix_type **, infix_type *)
Creates a new _Complex number type.
Definition
types.c:570
infix_reverse_get_num_args
c23_nodiscard size_t infix_reverse_get_num_args(const infix_reverse_t *)
Gets the total number of arguments for a reverse trampoline.
Definition
types.c:1356
infix_type_get_member_count
c23_nodiscard size_t infix_type_get_member_count(const infix_type *)
Gets the number of members in a struct or union type.
Definition
types.c:1274
infix_type_get_arg_name
c23_nodiscard const char * infix_type_get_arg_name(const infix_type *, size_t)
Gets the name of a specific argument from a function type.
Definition
types.c:1298
infix_type_category
infix_type_category
Enumerates the fundamental categories of types that infix can represent.
Definition
infix.h:148
infix_type_get_category
c23_nodiscard infix_type_category infix_type_get_category(const infix_type *)
Gets the fundamental category of a type.
Definition
types.c:1253
infix_type_create_array
c23_nodiscard infix_status infix_type_create_array(infix_arena_t *, infix_type **, infix_type *, size_t)
Creates a new fixed-size array type.
Definition
types.c:455
infix_type_create_pointer_to
c23_nodiscard infix_status infix_type_create_pointer_to(infix_arena_t *, infix_type **, infix_type *)
Creates a new pointer type that points to a specific type.
Definition
types.c:425
infix_aggregate_category_t
infix_aggregate_category_t
Specifies whether a named type reference refers to a struct or a union.
Definition
infix.h:184
infix_type_create_bitfield_member
infix_struct_member infix_type_create_bitfield_member(const char *, infix_type *, size_t, uint8_t)
A factory function to create a bitfield infix_struct_member.
Definition
types.c:202
infix_type_create_struct
c23_nodiscard infix_status infix_type_create_struct(infix_arena_t *, infix_type **, infix_struct_member *, size_t)
Creates a new struct type from an array of members, calculating layout automatically.
Definition
types.c:685
infix_context_t
infix_reverse_t infix_context_t
An alias for infix_reverse_t, used to clarify its role as a context object in closure handlers.
Definition
infix.h:138
infix_type_create_named_reference
c23_nodiscard infix_status infix_type_create_named_reference(infix_arena_t *, infix_type **, const char *, infix_aggregate_category_t)
Creates a placeholder for a named type to be resolved by a registry.
Definition
types.c:792
infix_reverse_get_arg_type
c23_nodiscard const infix_type * infix_reverse_get_arg_type(const infix_reverse_t *, size_t)
Gets the type of a specific argument for a reverse trampoline.
Definition
types.c:1381
infix_reverse_get_num_fixed_args
c23_nodiscard size_t infix_reverse_get_num_fixed_args(const infix_reverse_t *)
Gets the number of fixed (non-variadic) arguments for a reverse trampoline.
Definition
types.c:1364
infix_type_create_primitive
c23_nodiscard infix_type * infix_type_create_primitive(infix_primitive_type_id)
Creates a static descriptor for a primitive C type.
Definition
types.c:130
infix_type_create_member
infix_struct_member infix_type_create_member(const char *, infix_type *, size_t)
A factory function to create an infix_struct_member.
Definition
types.c:191
infix_type_get_member
c23_nodiscard const infix_struct_member * infix_type_get_member(const infix_type *, size_t)
Gets a specific member from a struct or union type.
Definition
types.c:1285
INFIX_PRIMITIVE_UINT16
@ INFIX_PRIMITIVE_UINT16
Definition
infix.h:168
INFIX_PRIMITIVE_UINT32
@ INFIX_PRIMITIVE_UINT32
Definition
infix.h:170
INFIX_PRIMITIVE_LONG_DOUBLE
@ INFIX_PRIMITIVE_LONG_DOUBLE
Definition
infix.h:178
INFIX_PRIMITIVE_FLOAT
@ INFIX_PRIMITIVE_FLOAT
Definition
infix.h:176
INFIX_PRIMITIVE_DOUBLE
@ INFIX_PRIMITIVE_DOUBLE
Definition
infix.h:177
INFIX_PRIMITIVE_SINT16
@ INFIX_PRIMITIVE_SINT16
Definition
infix.h:169
INFIX_PRIMITIVE_SINT64
@ INFIX_PRIMITIVE_SINT64
Definition
infix.h:173
INFIX_PRIMITIVE_SINT32
@ INFIX_PRIMITIVE_SINT32
Definition
infix.h:171
INFIX_PRIMITIVE_UINT8
@ INFIX_PRIMITIVE_UINT8
Definition
infix.h:166
INFIX_PRIMITIVE_UINT128
@ INFIX_PRIMITIVE_UINT128
Definition
infix.h:174
INFIX_PRIMITIVE_BOOL
@ INFIX_PRIMITIVE_BOOL
Definition
infix.h:165
INFIX_PRIMITIVE_UINT64
@ INFIX_PRIMITIVE_UINT64
Definition
infix.h:172
INFIX_PRIMITIVE_SINT128
@ INFIX_PRIMITIVE_SINT128
Definition
infix.h:175
INFIX_PRIMITIVE_SINT8
@ INFIX_PRIMITIVE_SINT8
Definition
infix.h:167
INFIX_TYPE_UNION
@ INFIX_TYPE_UNION
Definition
infix.h:152
INFIX_TYPE_PRIMITIVE
@ INFIX_TYPE_PRIMITIVE
Definition
infix.h:149
INFIX_TYPE_COMPLEX
@ INFIX_TYPE_COMPLEX
Definition
infix.h:156
INFIX_TYPE_ARRAY
@ INFIX_TYPE_ARRAY
Definition
infix.h:153
INFIX_TYPE_VECTOR
@ INFIX_TYPE_VECTOR
Definition
infix.h:157
INFIX_TYPE_VOID
@ INFIX_TYPE_VOID
Definition
infix.h:159
INFIX_TYPE_POINTER
@ INFIX_TYPE_POINTER
Definition
infix.h:150
INFIX_TYPE_NAMED_REFERENCE
@ INFIX_TYPE_NAMED_REFERENCE
Definition
infix.h:158
INFIX_TYPE_REVERSE_TRAMPOLINE
@ INFIX_TYPE_REVERSE_TRAMPOLINE
Definition
infix.h:154
INFIX_TYPE_ENUM
@ INFIX_TYPE_ENUM
Definition
infix.h:155
INFIX_TYPE_STRUCT
@ INFIX_TYPE_STRUCT
Definition
infix.h:151
INFIX_AGGREGATE_STRUCT
@ INFIX_AGGREGATE_STRUCT
Definition
infix.h:184
INFIX_AGGREGATE_UNION
@ INFIX_AGGREGATE_UNION
Definition
infix.h:184
infix_arena_t
Internal definition of a memory arena.
Definition
infix_internals.h:138
infix_direct_arg_handler_t
A struct containing all the necessary handlers for a single function argument.
Definition
infix.h:1354
infix_error_details_t
Provides detailed, thread-local information about the last error that occurred.
Definition
infix.h:1254
infix_forward_t
Internal definition of a forward trampoline handle.
Definition
infix_internals.h:88
infix_function_argument_t
Describes a single argument to a C function.
Definition
infix.h:264
infix_library_t
Internal definition of a dynamic library handle.
Definition
infix_internals.h:207
infix_registry_iterator_t
Internal definition of a registry iterator.
Definition
infix_internals.h:179
infix_registry_t
Internal definition of a named type registry.
Definition
infix_internals.h:165
infix_reverse_t
Internal definition of a reverse trampoline (callback/closure) handle.
Definition
infix_internals.h:114
infix_struct_member_t
Describes a single member of a C struct or union.
Definition
infix.h:252
infix_type_t
A semi-opaque structure that describes a C type.
Definition
infix.h:194
infix_direct_value_t
A union to hold any primitive value returned by a scalar marshaller.
Definition
infix.h:1300
include
infix
infix.h
Generated by
1.9.8