mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 09:06:50 +08:00
[utils]: add show_options to utils
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@316 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
@@ -17,10 +17,22 @@
|
||||
#ifndef __UTILS_H__
|
||||
#define __UTILS_H__
|
||||
|
||||
typedef struct OptionInfo_t {
|
||||
const char* name;
|
||||
const char* argname;
|
||||
const char* help;
|
||||
} OptionInfo;
|
||||
|
||||
#define show_options(opt) \
|
||||
do { \
|
||||
_show_options(sizeof(opt)/sizeof(OptionInfo), opt); \
|
||||
} while (0)
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void _show_options(int count, OptionInfo *options);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Reference in New Issue
Block a user