|
18 | 18 | #include <stddef.h> |
19 | 19 |
|
20 | 20 |
|
21 | | -#include "rcl_yaml_param_parser/types.h" |
22 | 21 | #include "rcl_yaml_param_parser/visibility_control.h" |
23 | 22 |
|
24 | 23 | #include "rcutils/allocator.h" |
25 | 24 | #include "rcutils/macros.h" |
| 25 | +#include "rcutils/thread_attr.h" |
26 | 26 | #include "rcutils/types/rcutils_ret.h" |
27 | 27 |
|
28 | 28 | #ifdef __cplusplus |
29 | 29 | extern "C" |
30 | 30 | { |
31 | 31 | #endif |
32 | 32 |
|
33 | | -/// \brief Return a rcl_thread_attrs_t struct with members initialized to zero value. |
34 | | -/// \return a rcl_thread_attrs_t struct with members initialized to zero value. |
35 | | -RCL_YAML_PARAM_PARSER_PUBLIC |
36 | | -rcl_thread_attrs_t |
37 | | -rcl_get_zero_initialized_thread_attrs(void); |
38 | | - |
39 | | -/// \brief Initialize list of thread attributes |
40 | | -/// \param[out] thread_attrs the list of thread attributes to be initialized |
41 | | -/// \param[in] allocator memory allocator to be used |
42 | | -/// \return #RCUTILS_RET_OK if the structure was initialized succeessfully, or |
43 | | -/// \return #RCUTILS_RET_INVALID_ARGUMENT if any function arguments are invalid, or |
44 | | -/// \return #RCUTILS_RET_BAD_ALLOC if allocating memory failed, or |
45 | | -/// \return #RCUTILS_RET_ERROR an unspecified error occur. |
46 | | -RCL_YAML_PARAM_PARSER_PUBLIC |
47 | | -rcutils_ret_t |
48 | | -rcl_thread_attrs_init( |
49 | | - rcl_thread_attrs_t * thread_attrs, |
50 | | - rcutils_allocator_t allocator); |
51 | | - |
52 | | -/// \brief Initialize list of thread attributes with a capacity |
53 | | -/// \param[out] thread_attrs the list of thread attributes to be initialized |
54 | | -/// \param[in] allocator memory allocator to be used |
55 | | -/// \return #RCUTILS_RET_OK if the structure was initialized succeessfully, or |
56 | | -/// \return #RCUTILS_RET_INVALID_ARGUMENT if any function arguments are invalid, or |
57 | | -/// \return #RCUTILS_RET_BAD_ALLOC if allocating memory failed, or |
58 | | -/// \return #RCUTILS_RET_ERROR an unspecified error occur. |
59 | | -RCL_YAML_PARAM_PARSER_PUBLIC |
60 | | -rcutils_ret_t |
61 | | -rcl_thread_attrs_init_with_capacity( |
62 | | - rcl_thread_attrs_t * thread_attrs, |
63 | | - rcutils_allocator_t allocator, |
64 | | - size_t capacity); |
65 | | - |
66 | | -/// \brief Free list of thread attributes |
67 | | -/// \param[in] thread_attrs The structure to be deallocated. |
68 | | -/// \return #RCUTILS_RET_OK if the memory was successfully freed, or |
69 | | -/// \return #RCUTILS_RET_INVALID_ARGUMENT if any function arguments are invalid |
70 | | -RCL_YAML_PARAM_PARSER_PUBLIC |
71 | | -rcutils_ret_t |
72 | | -rcl_thread_attrs_fini( |
73 | | - rcl_thread_attrs_t * thread_attrs); |
74 | | - |
75 | 33 | /// \brief Parse the YAML file and populate \p thread_attrs |
76 | 34 | /// \pre Given \p thread_attrs must be a valid thread attribute struct |
77 | 35 | /// \param[in] file_path is the path to the YAML file |
78 | | -/// \param[inout] thread_attrs points to the struct to be populated |
| 36 | +/// \param[in,out] thread_attrs points to the struct to be populated |
79 | 37 | /// \return true on success and false on failure |
80 | 38 | RCL_YAML_PARAM_PARSER_PUBLIC |
81 | 39 | rcutils_ret_t rcl_parse_yaml_thread_attrs_file( |
82 | 40 | const char * file_path, |
83 | | - rcl_thread_attrs_t * thread_attrs); |
| 41 | + rcutils_thread_attrs_t * thread_attrs); |
84 | 42 |
|
85 | 43 | /// \brief Parse a thread attribute value as a YAML string, updating thread_attrs accordingly |
86 | 44 | /// \param[in] yaml_value is the thread attribute value as a YAML string to be parsed |
87 | | -/// \param[inout] thread_attrs points to the thread attribute struct |
| 45 | +/// \param[in,out] thread_attrs points to the thread attribute struct |
88 | 46 | /// \return true on success and false on failure |
89 | 47 | RCL_YAML_PARAM_PARSER_PUBLIC |
90 | 48 | rcutils_ret_t rcl_parse_yaml_thread_attrs_value( |
91 | 49 | const char * yaml_value, |
92 | | - rcl_thread_attrs_t * thread_attrs); |
| 50 | + rcutils_thread_attrs_t * thread_attrs); |
93 | 51 |
|
94 | 52 | #ifdef __cplusplus |
95 | 53 | } |
|
0 commit comments