High Performance OPC UA Server SDK  1.2.0.193
uaprovider Struct Reference

Provider context. More...

#include <provider.h>

Data Fields

uint16_t nsindices [MAX_NAMESPACES_PER_PROVIDER]
 
uint16_t num_nsindices
 
void * userdata
 can be used to store any provider specific user data. More...
 
void(* cleanup )(struct uaprovider *ctx)
 Function that is called when the provider is removed. More...
 
uint32_t(* service_hook )(const struct uaprovider_servicehook_ctx *ctx)
 This hook gets called before a service gets invoked. More...
 
void(* session_event )(enum uasession_event_type type, uint32_t channel_id, struct uasession_session *session)
 This callback informs a provider about various session events. More...
 
void(* node_delete )(ua_node_t node)
 Node delete handler function. More...
 
void(* read )(struct uaprovider_read_ctx *ctx)
 Read service handler function.
 
void(* write )(struct uaprovider_write_ctx *ctx)
 Write service handler function.
 
void(* call )(struct uaprovider_call_ctx *ctx)
 Call service handler function.
 
void(* registernodes )(struct uaprovider_registernodes_ctx *ctx)
 Register nodes service handler function.
 
void(* unregisternodes )(struct uaprovider_unregisternodes_ctx *ctx)
 Unregister nodes service handler function.
 
ua_statuscode(* add_item )(struct ua_monitoreditem *item, uint32_t max_items)
 Add monitoreditem operation handler function.
 
ua_statuscode(* remove_item )(struct ua_monitoreditem *item, uint32_t max_items)
 Remove monitoreditem operation handler function.
 
ua_statuscode(* modify_item )(struct ua_monitoreditem *item, uint32_t max_items, uint32_t new_sampling_interval)
 Modify monitoreditem operation handler function.
 
void(* subscribe )(struct uaprovider_subscribe_ctx *ctx)
 Subscribe operation handler function.
 

Detailed Description

Provider context.

Struct with provider service handler functions and namespaces the provider has registered.

Field Documentation

void(* cleanup)(struct uaprovider *ctx)

Function that is called when the provider is removed.

void(* node_delete)(ua_node_t node)

Node delete handler function.

This function is called before the node gets deleted. This gives you the chance to remove resources of underlying IO, when the node gets deleted.

uint32_t(* service_hook)(const struct uaprovider_servicehook_ctx *ctx)

This hook gets called before a service gets invoked.

This hook must return 0. Other return values are reserved for future use.

void(* session_event)(enum uasession_event_type type, uint32_t channel_id, struct uasession_session *session)

This callback informs a provider about various session events.

Parameters
typeThe session event type.
channel_idThe channel associated with this event.
sessionThe session associated with this event. May be NULL if no session exists for the channel triggering the event.
void* userdata

can be used to store any provider specific user data.


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