.. _program_listing_file_include_rmw_allocators.h: Program Listing for File allocators.h ===================================== |exhale_lsh| :ref:`Return to documentation for file ` (``include/rmw/allocators.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp // Copyright 2014 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef RMW__ALLOCATORS_H_ #define RMW__ALLOCATORS_H_ #ifdef __cplusplus extern "C" { #endif #include "rmw/types.h" #include "rmw/visibility_control.h" RMW_PUBLIC void * rmw_allocate(size_t size); RMW_PUBLIC void rmw_free(void * pointer); RMW_PUBLIC rmw_node_t * rmw_node_allocate(void); RMW_PUBLIC void rmw_node_free(rmw_node_t * node); RMW_PUBLIC rmw_publisher_t * rmw_publisher_allocate(void); RMW_PUBLIC void rmw_publisher_free(rmw_publisher_t * publisher); RMW_PUBLIC rmw_subscription_t * rmw_subscription_allocate(void); RMW_PUBLIC void rmw_subscription_free(rmw_subscription_t * subscription); RMW_PUBLIC rmw_guard_condition_t * rmw_guard_condition_allocate(void); RMW_PUBLIC void rmw_guard_condition_free(rmw_guard_condition_t * guard_condition); RMW_PUBLIC rmw_client_t * rmw_client_allocate(void); RMW_PUBLIC void rmw_client_free(rmw_client_t * client); RMW_PUBLIC rmw_service_t * rmw_service_allocate(void); RMW_PUBLIC void rmw_service_free(rmw_service_t * service); RMW_PUBLIC rmw_wait_set_t * rmw_wait_set_allocate(void); RMW_PUBLIC void rmw_wait_set_free(rmw_wait_set_t * wait_set); #ifdef __cplusplus } #endif #endif // RMW__ALLOCATORS_H_