dxFeed Graal Native SDK 3.16.0-rc1
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
13extern "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
96
113DXFG_DEPRECATED("use dxfg_v4_string_to_double_map_entry_list_release()")
115 dxfg_string_to_double_map_entry_t *mapEntries, int32_t size);
116
131DXFG_DEPRECATED("use dxfg_v4_free()")
132int32_t dxfg_free(graal_isolatethread_t *thread, void *pointer);
133
150DXFG_DEPRECATED("use dxfg_v4_string_list_release()")
151int32_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
The functions of GraalVM that create, attach to and tear down an isolate, the instance of the SDK in ...
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
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.
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,...
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.
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
double value
Definition dxfg_common.h:94
const char * key
Definition dxfg_common.h:92