rcl
master
C API providing common ROS client library functionality.
|
#include "rmw/validate_namespace.h"
#include "rmw/validate_node_name.h"
#include "rcl/macros.h"
#include "rcl/types.h"
#include "rcl/visibility_control.h"
Go to the source code of this file.
Functions | |
rcl_ret_t | rcl_validate_enclave_name (const char *enclave, int *validation_result, size_t *invalid_index) |
Determine if a given enclave name is valid. More... | |
rcl_ret_t | rcl_validate_enclave_name_with_size (const char *enclave, size_t enclave_length, int *validation_result, size_t *invalid_index) |
Deterimine if a given enclave name is valid. More... | |
const char * | rcl_enclave_name_validation_result_string (int validation_result) |
Return a validation result description, or NULL if unknown or RCL_ENCLAVE_NAME_VALID. More... | |
rcl_ret_t rcl_validate_enclave_name | ( | const char * | enclave, |
int * | validation_result, | ||
size_t * | invalid_index | ||
) |
Determine if a given enclave name is valid.
The same rules as rmw_validate_namespace() are used. The only difference is in the maximum allowed length, which can be up to 255 characters.
[in] | enclave | enclave to be validated |
[out] | validation_result | int in which the result of the check is stored |
[out] | invalid_index | index of the input string where an error occurred |
rcl_ret_t rcl_validate_enclave_name_with_size | ( | const char * | enclave, |
size_t | enclave_length, | ||
int * | validation_result, | ||
size_t * | invalid_index | ||
) |
Deterimine if a given enclave name is valid.
This is an overload of rcl_validate_enclave_name() with an extra parameter for the length of enclave.
[in] | enclave | enclave to be validated |
[in] | enclave_length | The number of characters in enclave |
[out] | validation_result | int in which the result of the check is stored |
[out] | invalid_index | index of the input string where an error occurred |
const char* rcl_enclave_name_validation_result_string | ( | int | validation_result | ) |
Return a validation result description, or NULL if unknown or RCL_ENCLAVE_NAME_VALID.
[in] | validation_result | The validation result to get the string for |