rcl  master
C API providing common ROS client library functionality.
init.h
1 // Copyright 2014 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__INIT_H_
16 #define RCL__INIT_H_
17 
18 #ifdef __cplusplus
19 extern "C"
20 {
21 #endif
22 
23 #include "rcl/allocator.h"
24 #include "rcl/context.h"
25 #include "rcl/init_options.h"
26 #include "rcl/macros.h"
27 #include "rcl/types.h"
28 #include "rcl/visibility_control.h"
29 
31 
76 RCL_PUBLIC
77 RCL_WARN_UNUSED
78 rcl_ret_t
79 rcl_init(
80  int argc,
81  char const * const * argv,
82  const rcl_init_options_t * options,
83  rcl_context_t * context);
84 
86 
110 RCL_PUBLIC
111 RCL_WARN_UNUSED
112 rcl_ret_t
113 rcl_shutdown(rcl_context_t * context);
114 
115 #ifdef __cplusplus
116 }
117 #endif
118 
119 #endif // RCL__INIT_H_
rcl_init_options_t
Encapsulation of init options and implementation defined init options.
Definition: init_options.h:33
rcl_context_t
Encapsulates the non-global state of an init/shutdown cycle.
Definition: context.h:108