From c4e2f637b61e5825df072234a3e47e1db525c60c Mon Sep 17 00:00:00 2001 From: William Woodall Date: Wed, 30 Mar 2016 11:25:36 -0700 Subject: [PATCH] rename get_implementation_identifier to use rmw --- rclpy/rclpy/__init__.py | 4 ++-- rclpy/src/rclpy/_rclpy.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rclpy/rclpy/__init__.py b/rclpy/rclpy/__init__.py index 3b95930b9..ecdcc358d 100644 --- a/rclpy/rclpy/__init__.py +++ b/rclpy/rclpy/__init__.py @@ -77,5 +77,5 @@ def shutdown(): return _rclpy.rclpy_shutdown() -def get_implementation_identifier(): - return _rclpy.rclpy_get_implementation_identifier() +def get_rmw_implementation_identifier(): + return _rclpy.rclpy_get_rmw_implementation_identifier() diff --git a/rclpy/src/rclpy/_rclpy.c b/rclpy/src/rclpy/_rclpy.c index 5433d19f4..48f84aa49 100644 --- a/rclpy/src/rclpy/_rclpy.c +++ b/rclpy/src/rclpy/_rclpy.c @@ -169,7 +169,7 @@ rclpy_create_subscription(PyObject * Py_UNUSED(self), PyObject * args) } static PyObject * -rclpy_get_implementation_identifier(PyObject * Py_UNUSED(self), PyObject * Py_UNUSED(args)) +rclpy_get_rmw_implementation_identifier(PyObject * Py_UNUSED(self), PyObject * Py_UNUSED(args)) { const char * rmw_implementation_identifier = rmw_get_implementation_identifier(); @@ -398,7 +398,7 @@ static PyMethodDef rclpy_methods[] = { {"rclpy_shutdown", rclpy_shutdown, METH_NOARGS, "rclpy_shutdown."}, - {"rclpy_get_implementation_identifier", rclpy_get_implementation_identifier, + {"rclpy_get_rmw_implementation_identifier", rclpy_get_rmw_implementation_identifier, METH_NOARGS, "Retrieve the identifier for the active RMW implementation."}, {NULL, NULL, 0, NULL} /* sentinel */ };