.. _program_listing_file_include_tracetools_image_pipeline_tracetools.h: Program Listing for File tracetools.h ===================================== |exhale_lsh| :ref:`Return to documentation for file ` (``include/tracetools_image_pipeline/tracetools.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp // Copyright 2021 VĂ­ctor Mayoral-Vilches // // 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 TRACETOOLS_IMAGE_PIPELINE__TRACETOOLS_H_ #define TRACETOOLS_IMAGE_PIPELINE__TRACETOOLS_H_ #include #include #include #include "tracetools_image_pipeline/config.h" #include "tracetools_image_pipeline/visibility_control.hpp" #ifndef TRACETOOLS_DISABLED # define TRACEPOINT(event_name, ...) \ (ros_trace_ ## event_name)(__VA_ARGS__) # define DECLARE_TRACEPOINT(event_name, ...) \ TRACETOOLS_PUBLIC void ros_trace_ ## event_name(__VA_ARGS__); #else # define TRACEPOINT(event_name, ...) ((void) (0)) # define DECLARE_TRACEPOINT(event_name, ...) #endif #ifdef __cplusplus extern "C" { #endif TRACETOOLS_PUBLIC bool ros_trace_compile_status(); DECLARE_TRACEPOINT( image_proc_resize_init, const void * resize_node, const void * resize_image_msg, const void * resize_info_msg) DECLARE_TRACEPOINT( image_proc_resize_fini, const void * resize_node, const void * resize_image_msg, const void * resize_info_msg) DECLARE_TRACEPOINT( image_proc_rectify_init, const void * rectify_node, const void * rectify_image_msg, const void * rectify_info_msg) DECLARE_TRACEPOINT( image_proc_rectify_fini, const void * rectify_node, const void * rectify_image_msg, const void * rectify_info_msg) #ifdef __cplusplus } #endif #endif // TRACETOOLS_IMAGE_PIPELINE__TRACETOOLS_H_