dxFeed Graal Native SDK 3.16.0
Loading...
Searching...
No Matches
dxfg_publisher.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_PUBLISHER_H
10#define DXFG_PUBLISHER_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#include "dxfg_events.h"
23#include "dxfg_javac.h"
24
40
42// Forward declaration: the type is described in dxfg_javac.h.
45
58
71
88DXFG_DEPRECATED("use dxfg_v4_DXPublisher_getInstance()")
90
113DXFG_DEPRECATED("use dxfg_v4_DXPublisher_publishEvents()")
115
136DXFG_DEPRECATED("use dxfg_v4_DXPublisher_getSubscription()")
138
139
154DXFG_DEPRECATED("use dxfg_v4_ObservableSubscription_isClosed()")
156
171DXFG_DEPRECATED("use dxfg_v4_ObservableSubscription_getEventTypes()")
173
187DXFG_DEPRECATED("use dxfg_v4_ObservableSubscription_containsEventType()")
189
210DXFG_DEPRECATED("use dxfg_v4_ObservableSubscription_addChangeListener()")
212
230DXFG_DEPRECATED("use dxfg_v4_ObservableSubscription_removeChangeListener()")
232 // end of Publisher
234
235#ifdef __cplusplus
236}
237#endif
238
239#endif // DXFG_PUBLISHER_H
dxFeed Graal Native SDK Common declarations
dxFeed Graal Native SDK Events functions and types declarations
dxfg_event_clazz_t
The class of an event: tells which structure an event (dxfg_event_type_t) is.
Definition dxfg_events.h:185
dxFeed Graal Native SDK Java functions and types 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
int32_t dxfg_ObservableSubscription_removeChangeListener(graal_isolatethread_t *thread, dxfg_observable_subscription_t *sub, dxfg_observable_subscription_change_listener_t *listener)
dxfg_event_clazz_list_t * dxfg_ObservableSubscription_getEventTypes(graal_isolatethread_t *thread, dxfg_observable_subscription_t *sub)
dxfg_publisher_t * dxfg_DXPublisher_getInstance(graal_isolatethread_t *thread)
dxfg_observable_subscription_t * dxfg_DXPublisher_getSubscription(graal_isolatethread_t *thread, dxfg_publisher_t *publisher, dxfg_event_clazz_t eventClazz)
int32_t dxfg_DXPublisher_publishEvents(graal_isolatethread_t *thread, dxfg_publisher_t *publisher, dxfg_event_type_list *events)
int32_t dxfg_ObservableSubscription_containsEventType(graal_isolatethread_t *thread, dxfg_observable_subscription_t *sub, dxfg_event_clazz_t eventClazz)
int32_t dxfg_ObservableSubscription_addChangeListener(graal_isolatethread_t *thread, dxfg_observable_subscription_t *sub, dxfg_observable_subscription_change_listener_t *listener)
int32_t dxfg_ObservableSubscription_isClosed(graal_isolatethread_t *thread, dxfg_observable_subscription_t *sub)
A list of event classes.
Definition dxfg_events.h:1227
A list of events.
Definition dxfg_events.h:1215
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
A handle of a Java ObservableSubscriptionChangeListener object; release it with dxfg_JavaObjectHandle...
Definition dxfg_events.h:1440
A handle of a Java ObservableSubscription object; release it with dxfg_JavaObjectHandler_release().
Definition dxfg_publisher.h:67
dxfg_java_object_handler handler
Definition dxfg_publisher.h:69
A handle of a Java DXPublisher object; release it with dxfg_JavaObjectHandler_release().
Definition dxfg_publisher.h:54
dxfg_java_object_handler handler
Definition dxfg_publisher.h:56