dxFeed Graal Native SDK
3.15.0-rc1
Toggle main menu visibility
Loading...
Searching...
No Matches
dxfg_common.h
Go to the documentation of this file.
1
// Copyright (c) 2025 Devexperts LLC.
2
// SPDX-License-Identifier: MPL-2.0
3
8
9
#ifndef DXFG_COMMON_H
10
#define DXFG_COMMON_H
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
# include <cstdint>
15
#else
16
# include <stdint.h>
17
#endif
18
19
#include "
graal_isolate.h
"
20
28
35
#ifndef DXFG_OUT
36
# ifndef DOXYGEN_SHOULD_SKIP_THIS
37
# define DXFG_OUT
38
# endif
// DOXYGEN_SHOULD_SKIP_THIS
39
#endif
/* DXFG_OUT */
40
45
#ifndef DXFG_DEPRECATED
46
# if defined(__cplusplus) && __cplusplus >= 201402L
47
# define DXFG_DEPRECATED(message) [[deprecated(message)]]
48
# elif defined(__GNUC__) || defined(__clang__)
49
# define DXFG_DEPRECATED(message) __attribute__((deprecated(message)))
50
# elif defined(_MSC_VER)
51
# define DXFG_DEPRECATED(message) __declspec(deprecated(message))
52
# else
53
# define DXFG_DEPRECATED(message)
54
# endif
55
#endif
/* DXFG_DEPRECATED */
56
64
#ifndef DXFG_EXPERIMENTAL
65
# define DXFG_EXPERIMENTAL
66
#endif
/* DXFG_EXPERIMENTAL */
67
72
#define DXFG_EXECUTE_SUCCESSFULLY ((int32_t)0)
73
80
#define DXFG_EXECUTE_FAIL ((int32_t)-1)
81
90
typedef
struct
dxfg_string_to_double_map_entry_t
{
92
const
char
*
key
;
94
double
value
;
95
}
dxfg_string_to_double_map_entry_t
;
96
113
DXFG_DEPRECATED(
"use dxfg_v4_string_to_double_map_entry_list_release()"
)
114
int32_t
dxfg_free_string_to_double_map_entries
(
graal_isolatethread_t
*thread,
115
dxfg_string_to_double_map_entry_t
*mapEntries, int32_t size);
116
131
DXFG_DEPRECATED(
"use dxfg_v4_free()"
)
132
int32_t
dxfg_free
(
graal_isolatethread_t
*thread,
void
*pointer);
133
150
DXFG_DEPRECATED(
"use dxfg_v4_string_list_release()"
)
151
int32_t
dxfg_free_strings
(
graal_isolatethread_t
*thread,
char
** strings, int32_t size);
152
// end of Common
154
218
219
#ifdef __cplusplus
220
}
221
#endif
222
223
#endif
// DXFG_COMMON_H
graal_isolate.h
The functions of GraalVM that create, attach to and tear down an isolate, the instance of the SDK in ...
graal_isolatethread_t
struct __graal_isolatethread_t graal_isolatethread_t
The state of one thread attached to an isolate: the first parameter (thread) of the SDK functions.
Definition
graal_isolate.h:60
dxfg_free_strings
int32_t dxfg_free_strings(graal_isolatethread_t *thread, char **strings, int32_t size)
Frees an array of C strings that a function of the SDK returned.
dxfg_free
int32_t dxfg_free(graal_isolatethread_t *thread, void *pointer)
Frees a block of the unmanaged (GraalVM) memory that a function of the SDK allocated,...
dxfg_free_string_to_double_map_entries
int32_t dxfg_free_string_to_double_map_entries(graal_isolatethread_t *thread, dxfg_string_to_double_map_entry_t *mapEntries, int32_t size)
Frees an array of string to double map entries that a function of the SDK returned.
dxfg_string_to_double_map_entry_t
A map entry that consists of a string and a double: an element of an array that represents a map from...
Definition
dxfg_common.h:90
dxfg_string_to_double_map_entry_t::value
double value
Definition
dxfg_common.h:94
dxfg_string_to_double_map_entry_t::key
const char * key
Definition
dxfg_common.h:92
src
main
c
api
dxfg_common.h
Generated by
1.18.0