S2OPC OPCUA Toolkit
sopc_service_call_context.h
Go to the documentation of this file.
1 /*
2  * Licensed to Systerel under one or more contributor license
3  * agreements. See the NOTICE file distributed with this work
4  * for additional information regarding copyright ownership.
5  * Systerel licenses this file to you under the Apache
6  * License, Version 2.0 (the "License"); you may not use this
7  * file except in compliance with the License. You may obtain
8  * a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  * KIND, either express or implied. See the License for the
16  * specific language governing permissions and limitations
17  * under the License.
18  */
19 
27 #ifndef SOPC_SERVICE_CALL_CONTEXT_H_
28 #define SOPC_SERVICE_CALL_CONTEXT_H_
29 
31 #include "sopc_enum_types.h"
32 #include "sopc_user.h"
33 
38 typedef struct SOPC_CallContext SOPC_CallContext;
39 
41 const SOPC_User* SOPC_CallContext_GetUser(const SOPC_CallContext* callContextPtr);
42 
45 
47 const char* SOPC_CallContext_GetSecurityPolicy(const SOPC_CallContext* callContextPtr);
48 
51 
57 
58 #endif // SOPC_SERVICE_CALL_CONTEXT_H_
sopc_user.h
Defines the logged-in (server-side) user.
SOPC_CallContext_GetUser
const SOPC_User * SOPC_CallContext_GetUser(const SOPC_CallContext *callContextPtr)
Returns the user that called the service.
SOPC_User
struct SOPC_User SOPC_User
Logged in (successfully) user structure.
Definition: sopc_user.h:40
OpcUa_MessageSecurityMode
OpcUa_MessageSecurityMode
Definition: libs2opc_client.h:89
sopc_address_space_access.h
SOPC_CallContext_GetEndpointConfigIdx
uint32_t SOPC_CallContext_GetEndpointConfigIdx(const SOPC_CallContext *callContextPtr)
Returns the server endpoint of the connection used to call the service.
SOPC_CallContext_GetSecurityPolicy
const char * SOPC_CallContext_GetSecurityPolicy(const SOPC_CallContext *callContextPtr)
Returns the security policy of the connection used to call the service.
SOPC_CallContext_GetAddressSpaceAccess
SOPC_AddressSpaceAccess * SOPC_CallContext_GetAddressSpaceAccess(const SOPC_CallContext *callContextPtr)
Get direct access to the address space. AddressSpace is only available during a method call and shall...
sopc_enum_types.h
SOPC_AddressSpaceAccess
struct _SOPC_AddressSpaceAccess SOPC_AddressSpaceAccess
AddressSpace Access module provides controlled access to address space. This might be used to access ...
Definition: sopc_address_space_access.h:40
SOPC_CallContext
Definition: app_cb_call_context_internal.h:28
SOPC_CallContext_GetSecurityMode
OpcUa_MessageSecurityMode SOPC_CallContext_GetSecurityMode(const SOPC_CallContext *callContextPtr)
Returns the security mode of the connection used to call the service.