dfx 0.1.0
Linux-based dynamic dataflow executor
Loading...
Searching...
No Matches
dfx_env_api_t Struct Reference

Host environment services provided to the plugin. More...

#include <dfx-plugins-interface/PluginInterface.h>

Public Attributes

dfx_env_handle_t handle
 Host-specific context.
void(* log )(dfx_env_handle_t handle, int level, char const *msg)
 Log a message through the host's logging system.
char const *(* get_plugin_dir )(dfx_env_handle_t handle)
 Returns the absolute path to the directory containing this plugin binary.

Detailed Description

Host environment services provided to the plugin.

Member Data Documentation

◆ get_plugin_dir

char const *(* dfx_env_api_t::get_plugin_dir) (dfx_env_handle_t handle)

Returns the absolute path to the directory containing this plugin binary.

Returns
Pointer to a null-terminated string. Valid until deinit.

◆ handle

dfx_env_handle_t dfx_env_api_t::handle

Host-specific context.

◆ log

void(* dfx_env_api_t::log) (dfx_env_handle_t handle, int level, char const *msg)

Log a message through the host's logging system.

Parameters
[in]handleThe handle provided in this struct.
[in]levelThe severity (see DFX_LOG_LEVEL_INFO etc).
[in]msgThe message string.

The documentation for this struct was generated from the following file: