open62541 1.4.15
Open source implementation of OPC UA
Loading...
Searching...
No Matches
ServerContext.h
Go to the documentation of this file.
1/** This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 *
5 * Copyright 2021 (c) Jan Murzyn
6 */
7
8#ifndef SERVERCONTEXT_H
9#define SERVERCONTEXT_H
10
11#include <open62541/server.h>
12
13// ServerContext struct bundles the open62541's UA_Server object
14// and a table that maps indices used in the nodeset file to indices used in the server.
15struct ServerContext;
17
18// ServerContext_new allocates memory that has to released by ServerContext_delete
20
21// Releases memory allocated by ServerContext_new
23
24// Gets pointer to the UA_Server object
26
27// Use ServerContext_addNamespaceIdx to sequentially add namespaces as they appear in the
28// nodeset file.
30
31// Translates from an index used in the nodeset file to an index used in the server
33
34#endif
struct UA_Server * ServerContext_getServerObject(const ServerContext *serverContext)
struct ServerContext ServerContext
void ServerContext_addNamespaceIdx(ServerContext *serverContext, UA_UInt16 serverIdx)
UA_UInt16 ServerContext_translateToServerIdx(const ServerContext *serverContext, UA_UInt16 nodesetIdx)
ServerContext * ServerContext_new(struct UA_Server *server)
void ServerContext_delete(ServerContext *serverContext)
struct UA_Server UA_Server
Definition common.h:198
uint16_t UA_UInt16
Definition types.h:47