rcl  master
C API providing common ROS client library functionality.
security_directory.h
Go to the documentation of this file.
1 // Copyright 2018 Open Source Robotics Foundation, Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef RCL__SECURITY_DIRECTORY_H_
16 #define RCL__SECURITY_DIRECTORY_H_
17 
18 #ifdef __cplusplus
19 extern "C"
20 {
21 #endif
22 
23 #include "rcl/allocator.h"
24 #include "rcl/visibility_control.h"
25 
26 #ifndef ROS_SECURITY_NODE_DIRECTORY_VAR_NAME
27  #define ROS_SECURITY_NODE_DIRECTORY_VAR_NAME "ROS_SECURITY_NODE_DIRECTORY"
28 #endif
29 
30 #ifndef ROS_SECURITY_ROOT_DIRECTORY_VAR_NAME
31  #define ROS_SECURITY_ROOT_DIRECTORY_VAR_NAME "ROS_SECURITY_ROOT_DIRECTORY"
32 #endif
33 
34 #ifndef ROS_SECURITY_LOOKUP_TYPE_VAR_NAME
35  #define ROS_SECURITY_LOOKUP_TYPE_VAR_NAME "ROS_SECURITY_LOOKUP_TYPE"
36 #endif
37 
39 
57 char * rcl_get_secure_root(
58  const char * node_name,
59  const char * node_namespace,
60  const rcl_allocator_t * allocator
61 );
62 
63 #ifdef __cplusplus
64 }
65 #endif
66 
67 #endif // RCL__SECURITY_DIRECTORY_H_
char * rcl_get_secure_root(const char *node_name, const char *node_namespace, const rcl_allocator_t *allocator)
Return the secure root directory associated with a node given its validated name and namespace...
#define RCL_PUBLIC
Definition: visibility_control.h:48