Home | History | Annotate | Download | only in android
      1 /* Copyright (C) 2008 The Android Open Source Project
      2 **
      3 ** This software is licensed under the terms of the GNU General Public
      4 ** License version 2, as published by the Free Software Foundation, and
      5 ** may be copied, distributed, and modified under those terms.
      6 **
      7 ** This program is distributed in the hope that it will be useful,
      8 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
      9 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     10 ** GNU General Public License for more details.
     11 */
     12 #ifndef _ANDROID_HELP_H
     13 #define _ANDROID_HELP_H
     14 
     15 #include "android/utils/stralloc.h"
     16 
     17 /* these values give the maximum length of system property
     18  * names and values. They must match the definitions for PROPERTY_MAX_NAME and
     19  * PROPERTY_MAX_VALUE in the Android source tree
     20  * (in system/core/include/cutils/properties.h)
     21  */
     22 #define  BOOT_PROPERTY_MAX_NAME    32
     23 #define  BOOT_PROPERTY_MAX_VALUE   92
     24 
     25 /* appends the list of options with a small description to a dynamic string */
     26 extern void  android_help_list_options( stralloc_t*  out );
     27 
     28 /* output main help screen into a single dynamic string */
     29 extern void  android_help_main( stralloc_t*  out );
     30 
     31 /* output all help into a single dynamic string */
     32 extern void  android_help_all( stralloc_t*  out );
     33 
     34 /* appends the help for a given command-line option into a dynamic string
     35  * returns 0 on success, or -1 on error (i.e. unknown option)
     36  */
     37 extern int  android_help_for_option( const char*  option, stralloc_t*  out );
     38 
     39 /* appends the help for a given help topic into a dynamic string
     40  * returns 0 on success, or -1 on error (i.e. unknown topic)
     41  */
     42 extern int  android_help_for_topic( const char*  topic, stralloc_t*  out );
     43 
     44 #endif /* _ANDROID_HELP_H */
     45