15 #ifndef RCL__VALIDATE_ENCLAVE_NAME_H_
16 #define RCL__VALIDATE_ENCLAVE_NAME_H_
26 #include "rcl/macros.h"
27 #include "rcl/types.h"
28 #include "rcl/visibility_control.h"
30 #define RCL_ENCLAVE_NAME_VALID RMW_NAMESPACE_VALID
31 #define RCL_ENCLAVE_NAME_INVALID_IS_EMPTY_STRING RMW_NAMESPACE_INVALID_IS_EMPTY_STRING
32 #define RCL_ENCLAVE_NAME_INVALID_NOT_ABSOLUTE RMW_NAMESPACE_INVALID_NOT_ABSOLUTE
33 #define RCL_ENCLAVE_NAME_INVALID_ENDS_WITH_FORWARD_SLASH \
34 RMW_NAMESPACE_INVALID_ENDS_WITH_FORWARD_SLASH
35 #define RCL_ENCLAVE_NAME_INVALID_CONTAINS_UNALLOWED_CHARACTERS \
36 RMW_NAMESPACE_INVALID_CONTAINS_UNALLOWED_CHARACTERS
37 #define RCL_ENCLAVE_NAME_INVALID_CONTAINS_REPEATED_FORWARD_SLASH \
38 RMW_NAMESPACE_INVALID_CONTAINS_REPEATED_FORWARD_SLASH
39 #define RCL_ENCLAVE_NAME_INVALID_NAME_TOKEN_STARTS_WITH_NUMBER \
40 RMW_NAMESPACE_INVALID_NAME_TOKEN_STARTS_WITH_NUMBER
41 #define RCL_ENCLAVE_NAME_INVALID_TOO_LONG RMW_NAMESPACE_INVALID_TOO_LONG
43 #define RCL_ENCLAVE_NAME_MAX_LENGTH RMW_NODE_NAME_MAX_NAME_LENGTH
60 rcl_validate_enclave_name(
62 int * validation_result,
63 size_t * invalid_index);
75 rcl_validate_enclave_name_with_size(
77 size_t enclave_length,
78 int * validation_result,
79 size_t * invalid_index);
85 rcl_enclave_name_validation_result_string(
int validation_result);
91 #endif // RCL__VALIDATE_ENCLAVE_NAME_H_