diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-16 17:05:00 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-16 17:05:00 +0000 |
commit | 38efdf0ce37cc3413acee30d966f242aa8a77acd (patch) | |
tree | 6e7738015216d3c39847602e0ea776a3e14faa19 /apps/include | |
parent | 4f7967b4c678bef1a42eda3acf739c8bbefd9a07 (diff) | |
download | px4-firmware-38efdf0ce37cc3413acee30d966f242aa8a77acd.tar.gz px4-firmware-38efdf0ce37cc3413acee30d966f242aa8a77acd.tar.bz2 px4-firmware-38efdf0ce37cc3413acee30d966f242aa8a77acd.zip |
Rename apps/include/apps.h to builtin.h. Move parts of apps/builtins/exec_builtin.c to binfmt/libbuiltin/libbuiltin_utils.c
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5524 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/include')
-rw-r--r-- | apps/include/builtin.h (renamed from apps/include/apps.h) | 47 |
1 files changed, 5 insertions, 42 deletions
diff --git a/apps/include/apps.h b/apps/include/builtin.h index 0fb807c14..24cf204fa 100644 --- a/apps/include/apps.h +++ b/apps/include/builtin.h @@ -1,5 +1,5 @@ /**************************************************************************** - * apps/include/apps.h + * apps/include/builtin.h * * Originally by: * @@ -40,8 +40,8 @@ * ****************************************************************************/ -#ifndef __APPS_INCLUDE_APPS_H -#define __APPS_INCLUDE_APPS_H +#ifndef __APPS_INCLUDE_BUILTIN_H +#define __APPS_INCLUDE_BUILTIN_H /**************************************************************************** * Included Files @@ -50,9 +50,8 @@ #include <nuttx/config.h> #include <sys/types.h> -#include <stdint.h> -#include <nuttx/fs/ioctl.h> +#include <nuttx/binfmt/builtin.h> /**************************************************************************** * Pre-processor Definitions @@ -79,42 +78,6 @@ extern "C" { ****************************************************************************/ /**************************************************************************** - * Name: builtin_isavail - * - * Description: - * Checks for availabiliy of application registerred during compile time. - * - * Input Parameter: - * filename - Name of the linked-in binary to be started. - * - * Returned Value: - * This is an end-user function, so it follows the normal convention: - * Returns index of builtin application. If it is not found then it - * returns -1 (ERROR) and sets errno appropriately. - * - ****************************************************************************/ - -EXTERN int builtin_isavail(FAR const char *appname); - -/**************************************************************************** - * Name: builtin_getname - * - * Description: - * Returns pointer to a name of built-in application pointed by the - * index. - * - * Input Parameter: - * index, from 0 and on ... - * - * Returned Value: - * Returns valid pointer pointing to the app name if index is valid. - * Otherwise NULL is returned. - * - ****************************************************************************/ - -EXTERN const char *builtin_getname(int index); - -/**************************************************************************** * Name: exec_builtin * * Description: @@ -145,4 +108,4 @@ EXTERN int exec_builtin(FAR const char *appname, FAR const char **argv, } #endif -#endif /* __APPS_INCLUDE_APPS_H */ +#endif /* __APPS_INCLUDE_BUILTIN_H */ |