#ifndef CUSTOM_PROVIDER_EVENT_H
#define CUSTOM_PROVIDER_EVENT_H
#include <stdint.h>
#include <stdbool.h>
#include <platform/platform.h>
#include <uaserver/server_config.h>
#include <uaserver/addressspace/addressspace.h>
#ifdef UASERVER_SUPPORT_EVENTS
int custom_provider_event_init(void);
void custom_provider_event_clear(void);
int custom_provider_event_fire(
ua_node_t node, uint32_t value,
bool outofrange);
#else
static inline int custom_provider_event_init(void) {return 0;}
static inline void custom_provider_event_clear(void) {return;}
static inline int custom_provider_event_fire(
ua_node_t node, uint32_t value,
bool outofrange)
{
UA_UNUSED(node);
UA_UNUSED(value);
UA_UNUSED(outofrange);
return 0;
}
#endif
#endif