Skip to content

Commit

Permalink
Rename rosidl_generator_c to rosidl_runtime_c
Browse files Browse the repository at this point in the history
  • Loading branch information
Minggang Wang committed May 6, 2020
1 parent 326ad70 commit c19c5d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
'-lrcutils',
'-lrcl_yaml_param_parser',
'-lrmw',
'-lrosidl_generator_c',
'-lrosidl_runtime_c',
],
'conditions': [
[
Expand Down
8 changes: 4 additions & 4 deletions src/rcl_bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <rmw/validate_full_topic_name.h>
#include <rmw/validate_namespace.h>
#include <rmw/validate_node_name.h>
#include <rosidl_generator_c/string_functions.h>
#include <rosidl_runtime_c/string_functions.h>

#include <memory>
#include <string>
Expand Down Expand Up @@ -1270,10 +1270,10 @@ NAN_METHOD(Shutdown) {
NAN_METHOD(InitString) {
void* buffer =
node::Buffer::Data(Nan::To<v8::Object>(info[0]).ToLocalChecked());
rosidl_generator_c__String* ptr =
reinterpret_cast<rosidl_generator_c__String*>(buffer);
rosidl_runtime_c__String* ptr =
reinterpret_cast<rosidl_runtime_c__String*>(buffer);

rosidl_generator_c__String__init(ptr);
rosidl_runtime_c__String__init(ptr);
info.GetReturnValue().Set(Nan::Undefined());
}

Expand Down

0 comments on commit c19c5d3

Please sign in to comment.