High Performance OPC UA Server SDK  1.2.0.193
custom_provider_event.h
/*****************************************************************************
* *
* Copyright (c) 2006-2016 Unified Automation GmbH. All rights reserved. *
* *
* Software License Agreement ("SLA") Version 2.6 *
* *
* Unless explicitly acquired and licensed from Licensor under another *
* license, the contents of this file are subject to the Software License *
* Agreement ("SLA") Version 2.6, or subsequent versions as allowed by the *
* SLA, and You may not copy or use this file in either source code or *
* executable form, except in compliance with the terms and conditions of *
* the SLA. *
* *
* All software distributed under the SLA is provided strictly on an "AS *
* IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, *
* AND LICENSOR HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT *
* LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR *
* PURPOSE, QUIET ENJOYMENT, OR NON-INFRINGEMENT. See the SLA for specific *
* language governing rights and limitations under the SLA. *
* *
* The complete license agreement can be found here: *
* http://unifiedautomation.com/License/SLA/2.6/ *
* *
*****************************************************************************/
#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
/* dummy implementations in case events are disabled */
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 /* end of include guard */