mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
and remove the px4_ prefix, except for px4_config.h.
command to update includes:
for k in app.h atomic.h cli.h console_buffer.h defines.h getopt.h i2c.h init.h log.h micro_hal.h module.h module_params.h param.h param_macros.h posix.h sem.h sem.hpp shmem.h shutdown.h tasks.h time.h workqueue.h; do for i in $(grep -rl 'include <px4_'$k src platforms boards); do sed -i 's/#include <px4_'$k'/#include <px4_platform_common\/'$k/ $i; done; done
for in $(grep -rl 'include <px4_config.h' src platforms boards); do sed -i 's/#include <px4_config.h/#include <px4_platform_common\/px4_config.h'/ $i; done
Transitional headers for submodules are added (px4_{defines,log,time}.h)
17 lines
428 B
C
17 lines
428 B
C
/* declarations of builtin command list - automatically generated, do not edit */
|
|
|
|
#pragma once
|
|
|
|
#include <px4_platform_common/tasks.h> // px4_main_t
|
|
#include <map>
|
|
#include <string>
|
|
|
|
// Maps an app name to it's function.
|
|
typedef std::map<std::string, px4_main_t> apps_map_type;
|
|
|
|
// Initialize an apps map.
|
|
__EXPORT void init_app_map(apps_map_type &apps);
|
|
|
|
// List an apps map.
|
|
__EXPORT void list_builtins(apps_map_type &apps);
|