Skip to content

Commit c3fddcc

Browse files
committed
added prefix RCLC_
Signed-off-by: Jan Staschulat <[email protected]>
1 parent 6bb24e0 commit c3fddcc

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

rclc/include/rclc/executor.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,19 @@ extern "C"
5454
*/
5555
typedef enum
5656
{
57-
SEMANTICS_RCLCPP_EXECUTOR,
58-
SEMANTICS_LOGICAL_EXECUTION_TIME
57+
RCLC_SEMANTICS_RCLCPP_EXECUTOR,
58+
RCLC_SEMANTICS_LOGICAL_EXECUTION_TIME
5959
} rclc_executor_semantics_t;
6060

6161
/**
6262
* Different types of Executors.
6363
*/
6464
typedef enum
6565
{
66-
EXECUTOR_NOT_INITIALIZED,
67-
EXECUTOR_SINGLE_THREADED,
68-
EXECUTOR_MULTI_THREADED,
69-
EXECUTOR_NON_POSIX,
66+
RCLC_EXECUTOR_NOT_INITIALIZED,
67+
RCLC_EXECUTOR_SINGLE_THREADED,
68+
RCLC_EXECUTOR_MULTI_THREADED,
69+
RCLC_EXECUTOR_NON_POSIX,
7070
} rclc_executor_type_t;
7171

7272
/// Type definition for trigger function. With the parameters:

rclc/src/rclc/executor.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ rclc_executor_init(
141141
rclc_executor_set_trigger(executor, rclc_executor_trigger_any, NULL);
142142

143143
// default semantics
144-
rclc_executor_set_semantics(executor, SEMANTICS_RCLCPP_EXECUTOR);
144+
rclc_executor_set_semantics(executor, RCLC_SEMANTICS_RCLCPP_EXECUTOR);
145145

146146
return ret;
147147
}
@@ -1956,10 +1956,10 @@ rclc_executor_spin_some(rclc_executor_t * executor, const uint64_t timeout_ns)
19561956

19571957
// based on semantics process input data
19581958
switch (executor->data_comm_semantics) {
1959-
case SEMANTICS_LOGICAL_EXECUTION_TIME:
1959+
case RCLC_SEMANTICS_LOGICAL_EXECUTION_TIME:
19601960
rc = _rclc_let_scheduling(executor);
19611961
break;
1962-
case SEMANTICS_RCLCPP_EXECUTOR:
1962+
case RCLC_SEMANTICS_RCLCPP_EXECUTOR:
19631963
rc = _rclc_default_scheduling(executor);
19641964
break;
19651965
default:

rclc/test/rclc/test_executor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1903,7 +1903,7 @@ TEST_F(TestDefaultExecutor, semantics_RCLCPP) {
19031903
_pub_int_ptr = &this->pub1;
19041904
_pub_int_msg_ptr = &this->pub1_msg;
19051905
// ------------------------- test case setup ------------------------
1906-
rclc_executor_set_semantics(&executor, SEMANTICS_RCLCPP_EXECUTOR);
1906+
rclc_executor_set_semantics(&executor, RCLC_SEMANTICS_RCLCPP_EXECUTOR);
19071907
this->pub1_msg.data = 1;
19081908
_cb5_int_value = 0; // received value in subscription2
19091909
rc = rcl_publish(&this->pub1, &this->pub1_msg, nullptr);

0 commit comments

Comments
 (0)