Program Listing for File controller.h

Return to documentation for file (api/include/pntos/plugins/controller.h)

#pragma once

#include <pntos/annotations.h>
#include <pntos/plugins/common.h>

#ifdef __cplusplus
extern "C" {
#endif

PNTOS_ASSUME_NONNULL_BEGIN

typedef struct PntosControllerPlugin {
    PntosCommonPlugin common;
    void (*take_control)(struct PntosControllerPlugin* self,
                         PntosPluginArray* plugins,
                         char* PNTOS_NULLABLE* PNTOS_NULLABLE plugin_resources_locations,
                         char* PNTOS_NULLABLE initial_config);
} PntosControllerPlugin;

PNTOS_ASSUME_NONNULL_END

#ifdef __cplusplus
}
#endif