dxFeed Graal Native SDK 3.16.0
Loading...
Searching...
No Matches
dxfg_javac.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_JAVAC_H
10#define DXFG_JAVAC_H
11
12#ifdef __cplusplus
13extern "C" {
14# include <cstdint>
15#else
16# include <stdint.h>
17#endif
18
19#include "dxfg_common.h"
20
21#include "graal_isolate.h"
22
44
64
74
81typedef struct dxfg_list {
83 int32_t size;
85 void **elements;
87
101
109typedef struct dxfg_string_list {
111 int32_t size;
114 const char **elements;
116
130
143
154
165
177
188
395
406typedef void (*dxfg_finalize_function)(graal_isolatethread_t *thread, void *user_data);
407
427DXFG_DEPRECATED("use dxfg_v4_Object_finalize()")
429 dxfg_finalize_function finalize, void *user_data);
430
451DXFG_DEPRECATED("use dxfg_v4_JavaObjectHandler_release()")
453
472DXFG_DEPRECATED("use dxfg_v4_NativeListener_deactivate()")
474
510DXFG_DEPRECATED("use dxfg_v4_JavaObjectHandler_clone()")
512 dxfg_java_object_handler **javaObjectHandlerClone);
513
533DXFG_DEPRECATED("use dxfg_v4_JavaObjectHandler_array_release()")
535 const dxfg_java_object_handler **handlersArray, int32_t size);
536
550DXFG_DEPRECATED("use dxfg_v4_Object_new()")
552
566DXFG_DEPRECATED("use dxfg_v4_Object_toString()")
568
584DXFG_DEPRECATED("use dxfg_v4_Object_equals()")
587
600DXFG_DEPRECATED("use dxfg_v4_Object_hashCode()")
602
619DXFG_DEPRECATED("use dxfg_v4_Comparable_compareTo()")
622
634DXFG_DEPRECATED("use dxfg_v4_java_object_handler_list_release()")
636
648DXFG_DEPRECATED("use dxfg_v4_String_release()")
649int32_t dxfg_String_release(graal_isolatethread_t *thread, const char *string);
650
662DXFG_DEPRECATED("use dxfg_v4_string_list_release()")
664
684DXFG_DEPRECATED("use dxfg_v4_Executors_newFixedThreadPool()")
686 const char *nameThreads);
687
705DXFG_DEPRECATED("use dxfg_v4_Executors_newScheduledThreadPool()")
707 const char *nameThreads);
708
720DXFG_DEPRECATED("use dxfg_v4_ExecutorBaseOnConcurrentLinkedQueue_new()")
722
736DXFG_DEPRECATED("use dxfg_v4_ExecutorBaseOnConcurrentLinkedQueue_processAllPendingTasks()")
738 dxfg_executor_t *executor);
739
754DXFG_DEPRECATED("use dxfg_v4_ByteArrayInputStream_new()")
756
768DXFG_DEPRECATED("use dxfg_v4_gc()")
770
780DXFG_DEPRECATED("use dxfg_v4_throw_exception()")
782
795DXFG_DEPRECATED("use dxfg_v4_TimeZone_getTimeZone()")
797
809DXFG_DEPRECATED("use dxfg_v4_TimeZone_getDefault()")
811
824DXFG_DEPRECATED("use dxfg_v4_TimeZone_getID()")
826
839DXFG_DEPRECATED("use dxfg_v4_TimeZone_getDisplayName()")
841
858DXFG_DEPRECATED("use dxfg_v4_TimeZone_getDisplayNameWithStyle()")
859const char *dxfg_TimeZone_getDisplayName2(graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone, int32_t daylight,
860 int32_t style);
861
875DXFG_DEPRECATED("use dxfg_v4_TimeZone_getDSTSavings()")
877
890DXFG_DEPRECATED("use dxfg_v4_TimeZone_useDaylightTime()")
892
906DXFG_DEPRECATED("use dxfg_v4_TimeZone_observesDaylightTime()")
908
923DXFG_DEPRECATED("use dxfg_v4_TimeZone_getOffset()")
924int32_t dxfg_TimeZone_getOffset(graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone, int64_t date);
925
945DXFG_DEPRECATED("use dxfg_v4_TimeZone_getOffsetByCalendarFields()")
946int32_t dxfg_TimeZone_getOffset2(graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone, int32_t era, int32_t year,
947 int32_t month, int32_t day, int32_t dayOfWeek, int32_t milliseconds);
948
961DXFG_DEPRECATED("use dxfg_v4_TimeZone_getRawOffset()")
963
977DXFG_DEPRECATED("use dxfg_v4_TimeZone_hasSameRules()")
979
993DXFG_DEPRECATED("use dxfg_v4_TimeZone_inDaylightTime()")
995
1009DXFG_DEPRECATED("use dxfg_v4_TimeZone_setID()")
1010int32_t dxfg_TimeZone_setID(graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone, const char *ID);
1011
1026DXFG_DEPRECATED("use dxfg_v4_TimeZone_setRawOffset()")
1027int32_t dxfg_TimeZone_setRawOffset(graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone, int32_t offsetMillis);
1028
1040DXFG_DEPRECATED("use dxfg_v4_TimePeriod_ZERO()")
1042
1054DXFG_DEPRECATED("use dxfg_v4_TimePeriod_UNLIMITED()")
1056
1069DXFG_DEPRECATED("use dxfg_v4_TimePeriod_valueOf()")
1071
1087DXFG_DEPRECATED("use dxfg_v4_TimePeriod_valueOfString()")
1089
1102DXFG_DEPRECATED("use dxfg_v4_TimePeriod_getTime()")
1104
1118DXFG_DEPRECATED("use dxfg_v4_TimePeriod_getSeconds()")
1120
1135DXFG_DEPRECATED("use dxfg_v4_TimePeriod_getNanos()")
1137
1149DXFG_DEPRECATED("use dxfg_v4_TimeFormat_DEFAULT()")
1151
1163DXFG_DEPRECATED("use dxfg_v4_TimeFormat_GMT()")
1165
1179DXFG_DEPRECATED("use dxfg_v4_TimeFormat_getInstance()")
1181
1194DXFG_DEPRECATED("use dxfg_v4_TimeFormat_withTimeZone()")
1196
1209DXFG_DEPRECATED("use dxfg_v4_TimeFormat_withMillis()")
1211
1224DXFG_DEPRECATED("use dxfg_v4_TimeFormat_asFullIso()")
1226
1247DXFG_DEPRECATED("use dxfg_v4_TimeFormat_parse()")
1248int64_t dxfg_TimeFormat_parse(graal_isolatethread_t *thread, dxfg_time_format_t *timeFormat, const char *value);
1249
1266DXFG_DEPRECATED("use dxfg_v4_TimeFormat_format()")
1267const char *dxfg_TimeFormat_format(graal_isolatethread_t *thread, dxfg_time_format_t *timeFormat, int64_t value);
1268
1281DXFG_DEPRECATED("use dxfg_v4_TimeFormat_getTimeZone()")
1283
1298DXFG_DEPRECATED("use dxfg_v4_AuthToken_valueOf()")
1300
1314DXFG_DEPRECATED("use dxfg_v4_AuthToken_createBasicToken()")
1316
1330DXFG_DEPRECATED("use dxfg_v4_AuthToken_createBasicTokenWithUserAndPassword()")
1332 const char *password);
1333
1348DXFG_DEPRECATED("use dxfg_v4_AuthToken_createBasicTokenOrNull()")
1350 const char *password);
1351
1364DXFG_DEPRECATED("use dxfg_v4_AuthToken_createBearerToken()")
1366
1380DXFG_DEPRECATED("use dxfg_v4_AuthToken_createBearerTokenOrNull()")
1382
1396DXFG_DEPRECATED("use dxfg_v4_AuthToken_createCustomToken()")
1398 const char *value);
1399
1412DXFG_DEPRECATED("use dxfg_v4_AuthToken_getHttpAuthorization()")
1414
1427DXFG_DEPRECATED("use dxfg_v4_AuthToken_getUser()")
1429
1442DXFG_DEPRECATED("use dxfg_v4_AuthToken_getPassword()")
1444
1457DXFG_DEPRECATED("use dxfg_v4_AuthToken_getScheme()")
1459
1473DXFG_DEPRECATED("use dxfg_v4_AuthToken_getValue()")
1475 // end of Javac
1477
1478#ifdef __cplusplus
1479}
1480#endif
1481
1482#endif // DXFG_JAVAC_H
dxFeed Graal Native SDK Common declarations
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
#define DXFG_OUT
Definition dxfg_common.h:37
dxfg_auth_token_t * dxfg_AuthToken_createBearerToken(graal_isolatethread_t *thread, const char *token)
dxfg_auth_token_t * dxfg_AuthToken_createCustomToken(graal_isolatethread_t *thread, const char *scheme, const char *value)
int32_t dxfg_TimeZone_inDaylightTime(graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone, int64_t date)
int32_t dxfg_TimeZone_useDaylightTime(graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone)
int32_t dxfg_TimeZone_getRawOffset(graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone)
int32_t dxfg_Object_equals(graal_isolatethread_t *thread, dxfg_java_object_handler *object, dxfg_java_object_handler *other)
dxfg_executor_t * dxfg_ExecutorBaseOnConcurrentLinkedQueue_new(graal_isolatethread_t *thread)
dxfg_time_format_t * dxfg_TimeFormat_withMillis(graal_isolatethread_t *thread, dxfg_time_format_t *timeFormat)
const char * dxfg_AuthToken_getUser(graal_isolatethread_t *thread, dxfg_auth_token_t *authToken)
const char * dxfg_AuthToken_getPassword(graal_isolatethread_t *thread, dxfg_auth_token_t *authToken)
const char * dxfg_TimeZone_getDisplayName(graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone)
dxfg_auth_token_t * dxfg_AuthToken_createBasicToken(graal_isolatethread_t *thread, const char *userPassword)
dxfg_time_format_t * dxfg_TimeFormat_GMT(graal_isolatethread_t *thread)
dxfg_java_object_handler * dxfg_throw_exception(graal_isolatethread_t *thread)
int32_t dxfg_CList_JavaObjectHandler_release(graal_isolatethread_t *thread, dxfg_java_object_handler_list *list)
dxfg_executor_t * dxfg_Executors_newScheduledThreadPool(graal_isolatethread_t *thread, int nThreads, const char *nameThreads)
dxfg_time_period_t * dxfg_TimePeriod_valueOf2(graal_isolatethread_t *thread, const char *value)
dxfg_time_zone_t * dxfg_TimeZone_getDefault(graal_isolatethread_t *thread)
dxfg_time_format_t * dxfg_TimeFormat_getInstance(graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone)
dxfg_time_format_t * dxfg_TimeFormat_withTimeZone(graal_isolatethread_t *thread, dxfg_time_format_t *timeFormat)
dxfg_time_period_t * dxfg_TimePeriod_valueOf(graal_isolatethread_t *thread, int64_t value)
int32_t dxfg_Object_new(graal_isolatethread_t *thread, DXFG_OUT dxfg_java_object_handler **object)
int32_t dxfg_ExecutorBaseOnConcurrentLinkedQueue_processAllPendingTasks(graal_isolatethread_t *thread, dxfg_executor_t *executor)
dxfg_time_period_t * dxfg_TimePeriod_UNLIMITED(graal_isolatethread_t *thread)
const char * dxfg_TimeZone_getDisplayName2(graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone, int32_t daylight, int32_t style)
dxfg_rounding_mode_t
The rounding behavior of numerical operations that can discard precision (java.math....
Definition dxfg_javac.h:201
int32_t dxfg_String_release(graal_isolatethread_t *thread, const char *string)
dxfg_executor_t * dxfg_Executors_newFixedThreadPool(graal_isolatethread_t *thread, int nThreads, const char *nameThreads)
int32_t dxfg_gc(graal_isolatethread_t *thread)
int64_t dxfg_TimePeriod_getNanos(graal_isolatethread_t *thread, dxfg_time_period_t *timePeriod)
int32_t dxfg_TimeZone_setID(graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone, const char *ID)
dxfg_input_stream_t * dxfg_ByteArrayInputStream_new(graal_isolatethread_t *thread, const char *bytes, int32_t size)
int32_t dxfg_JavaObjectHandler_release(graal_isolatethread_t *thread, dxfg_java_object_handler *handler)
int32_t dxfg_Object_hashCode(graal_isolatethread_t *thread, dxfg_java_object_handler *object)
dxfg_time_zone_t * dxfg_TimeZone_getTimeZone(graal_isolatethread_t *thread, const char *ID)
int32_t dxfg_JavaObjectHandler_array_release(graal_isolatethread_t *thread, const dxfg_java_object_handler **handlersArray, int32_t size)
dxfg_time_format_t * dxfg_TimeFormat_DEFAULT(graal_isolatethread_t *thread)
const char * dxfg_AuthToken_getValue(graal_isolatethread_t *thread, dxfg_auth_token_t *authToken)
int32_t dxfg_Comparable_compareTo(graal_isolatethread_t *thread, dxfg_java_object_handler *object, dxfg_java_object_handler *other)
void(*) dxfg_finalize_function(graal_isolatethread_t *thread, void *user_data)
The function registered by dxfg_Object_finalize(): called after the Java object has been garbage coll...
Definition dxfg_javac.h:406
int64_t dxfg_TimeFormat_parse(graal_isolatethread_t *thread, dxfg_time_format_t *timeFormat, const char *value)
dxfg_time_period_t * dxfg_TimePeriod_ZERO(graal_isolatethread_t *thread)
const char * dxfg_TimeFormat_format(graal_isolatethread_t *thread, dxfg_time_format_t *timeFormat, int64_t value)
int32_t dxfg_TimeZone_getOffset(graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone, int64_t date)
int32_t dxfg_TimePeriod_getSeconds(graal_isolatethread_t *thread, dxfg_time_period_t *timePeriod)
int32_t dxfg_TimeZone_hasSameRules(graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone, dxfg_time_zone_t *other)
int32_t dxfg_TimeZone_observesDaylightTime(graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone)
int32_t dxfg_JavaObjectHandler_clone(graal_isolatethread_t *thread, dxfg_java_object_handler *javaObjectHandler, dxfg_java_object_handler **javaObjectHandlerClone)
const char * dxfg_Object_toString(graal_isolatethread_t *thread, dxfg_java_object_handler *object)
int32_t dxfg_TimeZone_getDSTSavings(graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone)
int32_t dxfg_TimeZone_getOffset2(graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone, int32_t era, int32_t year, int32_t month, int32_t day, int32_t dayOfWeek, int32_t milliseconds)
int32_t dxfg_CList_String_release(graal_isolatethread_t *thread, dxfg_string_list *stringList)
dxfg_auth_token_t * dxfg_AuthToken_createBasicTokenOrNull(graal_isolatethread_t *thread, const char *user, const char *password)
dxfg_auth_token_t * dxfg_AuthToken_valueOf(graal_isolatethread_t *thread, const char *string)
dxfg_time_format_t * dxfg_TimeFormat_asFullIso(graal_isolatethread_t *thread, dxfg_time_format_t *timeFormat)
int32_t dxfg_TimeZone_setRawOffset(graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone, int32_t offsetMillis)
int32_t dxfg_Object_finalize(graal_isolatethread_t *thread, dxfg_java_object_handler *handler, dxfg_finalize_function finalize, void *user_data)
dxfg_auth_token_t * dxfg_AuthToken_createBearerTokenOrNull(graal_isolatethread_t *thread, const char *token)
const char * dxfg_AuthToken_getScheme(graal_isolatethread_t *thread, dxfg_auth_token_t *authToken)
const char * dxfg_AuthToken_getHttpAuthorization(graal_isolatethread_t *thread, dxfg_auth_token_t *authToken)
int32_t dxfg_NativeListener_deactivate(graal_isolatethread_t *thread, dxfg_java_object_handler *listener)
int64_t dxfg_TimePeriod_getTime(graal_isolatethread_t *thread, dxfg_time_period_t *timePeriod)
dxfg_auth_token_t * dxfg_AuthToken_createBasicToken2(graal_isolatethread_t *thread, const char *user, const char *password)
const char * dxfg_TimeZone_getID(graal_isolatethread_t *thread, dxfg_time_zone_t *timeZone)
dxfg_time_zone_t * dxfg_TimeFormat_getTimeZone(graal_isolatethread_t *thread, dxfg_time_format_t *timeFormat)
@ DXFG_ROUNDING_MODE_FLOOR
Definition dxfg_javac.h:294
@ DXFG_ROUNDING_MODE_UP
Definition dxfg_javac.h:223
@ DXFG_ROUNDING_MODE_HALF_DOWN
Definition dxfg_javac.h:342
@ DXFG_ROUNDING_MODE_HALF_EVEN
Definition dxfg_javac.h:369
@ DXFG_ROUNDING_MODE_HALF_UP
Definition dxfg_javac.h:318
@ DXFG_ROUNDING_MODE_UNNECESSARY
Definition dxfg_javac.h:393
@ DXFG_ROUNDING_MODE_DOWN
Definition dxfg_javac.h:246
@ DXFG_ROUNDING_MODE_CEILING
Definition dxfg_javac.h:270
A handle of a Java AuthToken object; release it with dxfg_JavaObjectHandler_release().
Definition dxfg_javac.h:184
dxfg_java_object_handler handler
Definition dxfg_javac.h:186
A handle of a Java Executor object; release it with dxfg_JavaObjectHandler_release().
Definition dxfg_javac.h:126
dxfg_java_object_handler handler
Definition dxfg_javac.h:128
A handle of a Java InputStream object; release it with dxfg_JavaObjectHandler_release().
Definition dxfg_javac.h:139
dxfg_java_object_handler handler
Definition dxfg_javac.h:141
A list of handles of Java objects.
Definition dxfg_javac.h:95
int32_t size
Definition dxfg_javac.h:97
dxfg_java_object_handler ** elements
Definition dxfg_javac.h:99
The handle of a Java object: the reference by which the C code refers to an object that lives in Java...
Definition dxfg_javac.h:60
void * java_object_handle
Definition dxfg_javac.h:62
A handle of a Java object with the same layout as dxfg_java_object_handler.
Definition dxfg_javac.h:70
void * java_object_handle
Definition dxfg_javac.h:72
The common layout of the lists of the SDK: the number of elements and the array of pointers to them.
Definition dxfg_javac.h:81
void ** elements
Definition dxfg_javac.h:85
int32_t size
Definition dxfg_javac.h:83
A list of strings.
Definition dxfg_javac.h:109
int32_t size
Definition dxfg_javac.h:111
const char ** elements
Definition dxfg_javac.h:114
A handle of a Java TimeFormat object; release it with dxfg_JavaObjectHandler_release().
Definition dxfg_javac.h:161
dxfg_java_object_handler handler
Definition dxfg_javac.h:163
A handle of a Java TimePeriod object; release it with dxfg_JavaObjectHandler_release().
Definition dxfg_javac.h:150
dxfg_java_object_handler handler
Definition dxfg_javac.h:152
A handle of a Java TimeZone object; release it with dxfg_JavaObjectHandler_release().
Definition dxfg_javac.h:173
dxfg_java_object_handler handler
Definition dxfg_javac.h:175