32#ifndef _SIR_PLUGIN_SAMPLE_H_INCLUDED
33# define _SIR_PLUGIN_SAMPLE_H_INCLUDED
35# include "sir/platform.h"
36# include "sir/types.h"
45BOOL APIENTRY DllMain(HMODULE module, DWORD ul_reason_for_call, LPVOID reserved);
46# define PLUGIN_EXPORT __declspec(dllexport)
PLUGIN_EXPORT bool sir_plugin_init(void)
Called by libsir after the plugin is queried and successfully validated.
Definition plugin_sample.c:70
PLUGIN_EXPORT bool sir_plugin_cleanup(void)
Called by libsir when the plugin is about to be unloaded.
Definition plugin_sample.c:81
PLUGIN_EXPORT bool sir_plugin_write(sir_level level, const char *message)
Called by libsir when a message is dispatched on any level whose bit was set in the levels bitmask of...
Definition plugin_sample.c:75
PLUGIN_EXPORT bool sir_plugin_query(sir_plugininfo *info)
Called by libsir after the plugin library object is loaded, but before any other functions are probed...
Definition plugin_sample.c:55
uint16_t sir_level
The sir_level type.
Definition types.h:71
The libsir-to-plugin query data structure.
Definition types.h:329