|
Gateway C ABI
|
The plugin interface. More...
#include <abi.h>
Data Fields | |
| tPublishDatapointValue | publishDatapointValueCallback |
| Callback used to publish datapoint values. | |
| tStoreDatapointValue | storeDatapointValueCallback |
| Callback used to store datapoint values. | |
| tSystemLog | logSystemCallback |
| tAuditLog | logAuditCallback |
| tReleaseDatapointValue | releaseDatapointValueCallback |
| Callback used to release a datapoint value. | |
| tGetLastDatapointValue | getLastDatapointValueCallback |
| Callback used to get the last value of a datapoint. | |
| tGetEthernetInterface | getEthernetInterfaceCallback |
| Callback used to get ethernet interface configuration by name. | |
| tGetSerialInterface | getSerialInterfaceCallback |
| Callback used to get serial interface configuration by name. | |
| const GCPluginConfig | config |
| Configuration and related functions. | |
| const GCCoreCtx | ctx |
| Core Context. | |
| const GCLogLevel | logLevel |
| The log level set for this plugin instance. | |
The plugin interface.
The interface that the core provides to the plugin, it contains all the callbacks that the plugin can use to interact with the core.
| const GCPluginConfig sGCPluginInterface::config |
Configuration and related functions.
| const GCCoreCtx sGCPluginInterface::ctx |
Core Context.
The context state that the core provides to the plugin, it is required to call most of the core callbacks.
| tGetEthernetInterface sGCPluginInterface::getEthernetInterfaceCallback |
Callback used to get ethernet interface configuration by name.
Retrieves the configuration for an ethernet interface by its logical name. This allows plugins to obtain the OS interface name configured for the runtime.
| ctx | The core context |
| name | The logical name of the ethernet interface (e.g., "primary_eth") |
| out | Pointer to output structure (allocated by plugin) |
| tGetLastDatapointValue sGCPluginInterface::getLastDatapointValueCallback |
Callback used to get the last value of a datapoint.
This callback is used to get the last value of a datapoint from the realtime database.
| ctx | The core context |
| identifier | The identifier of the datapoint to get the last value from |
| tGetSerialInterface sGCPluginInterface::getSerialInterfaceCallback |
Callback used to get serial interface configuration by name.
Retrieves the configuration for a serial interface by its logical name. This allows plugins to obtain the OS device path and serial settings configured for the runtime.
| ctx | The core context |
| name | The logical name of the serial interface (e.g., "moxa_port_1") |
| out | Pointer to output structure (allocated by plugin) |
| tAuditLog sGCPluginInterface::logAuditCallback |
This callback shouldn't be used, instead use the higher level gcSystemLog and gcAuditLog functions
| const GCLogLevel sGCPluginInterface::logLevel |
The log level set for this plugin instance.
The log level set for this plugin instance, higher values mean more verbose logging.
| tSystemLog sGCPluginInterface::logSystemCallback |
This callback shouldn't be used, instead use the higher level gcSystemLog and gcAuditLog functions
| tPublishDatapointValue sGCPluginInterface::publishDatapointValueCallback |
Callback used to publish datapoint values.
This callback is used to publish a new datapoint value to the core.
| ctx | The core context |
| value | The datapoint value to be published, owned by the plugin |
| tReleaseDatapointValue sGCPluginInterface::releaseDatapointValueCallback |
Callback used to release a datapoint value.
This callback is used to release a datapoint value that was previously returned by the core.
| value | The datapoint value to be released |
| tStoreDatapointValue sGCPluginInterface::storeDatapointValueCallback |
Callback used to store datapoint values.
This callback is used to store a new datapoint value to the timeseries database.
| ctx | The core context |
| value | The datapoint value to be stored, owned by the plugin |