gc_plugin_abi 0.5.0

Gridcore Plugin API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Module that contains safe zero-cost data structure abstractions for the plugin C ABI.
//! All abstraction structs have the same layout and name as the C ABI counterparts. All methods have minimal to no overhead unless specifically mentioned (eg: [GCPluginInterface::get_own_configuration]).
//! The only exception to the naming rule is the [GCSubscribedDatapointValue] struct, which is a special wrapper around the [gc_abi_sys::GCDatapointValue], which works similar to Box to avoid memory leaks.
//!
//! Any interaction with the core gateway should be done through these abstractions.

mod borrowed_datapoint_value;
mod plugin_interface;
mod schema_types;

pub use borrowed_datapoint_value::{GCBorrowedDatapointValue, set_datapoint_release_fn};
pub use plugin_interface::GCPluginInterface;
pub use schema_types::*;