rcl  master
C API providing common ROS client library functionality.
domain_id.h
Go to the documentation of this file.
1 // Copyright 2019 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 
16 
17 #ifndef RCL__DOMAIN_ID_H_
18 #define RCL__DOMAIN_ID_H_
19 
20 #ifdef __cplusplus
21 extern "C"
22 {
23 #endif
24 
25 #include <stddef.h>
26 
27 #include "rcl/types.h"
28 #include "rcl/visibility_control.h"
29 #include "rmw/domain_id.h"
30 
32 #define RCL_DEFAULT_DOMAIN_ID RMW_DEFAULT_DOMAIN_ID
33 
34 extern const char * const RCL_DOMAIN_ID_ENV_VAR;
35 
37 
43 RCL_PUBLIC
45 rcl_get_default_domain_id(size_t * domain_id);
46 
47 #ifdef __cplusplus
48 }
49 #endif
50 
51 #endif // RCL__DOMAIN_ID_H_
types.h
rcl_ret_t
rmw_ret_t rcl_ret_t
The type that holds an rcl return code.
Definition: types.h:23
rcl_get_default_domain_id
rcl_ret_t rcl_get_default_domain_id(size_t *domain_id)
Determine the default domain ID, based on the environment.
domain_id.h