mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-26 03:21:50 -06:00
util: move declarations out of qemu-common.h
Move declarations out of qemu-common.h for functions declared in utils/ files: e.g. include/qemu/path.h for utils/path.c. Move inline functions out of qemu-common.h and into new files (e.g. include/qemu/bcd.h) Signed-off-by: Veronia Bahaa <veroniabahaa@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
73bcb24d93
commit
f348b6d1a5
149 changed files with 435 additions and 300 deletions
22
include/qemu/help_option.h
Normal file
22
include/qemu/help_option.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
#ifndef QEMU_HELP_OPTION_H
|
||||
#define QEMU_HELP_OPTION_H 1
|
||||
|
||||
/**
|
||||
* is_help_option:
|
||||
* @s: string to test
|
||||
*
|
||||
* Check whether @s is one of the standard strings which indicate
|
||||
* that the user is asking for a list of the valid values for a
|
||||
* command option like -cpu or -M. The current accepted strings
|
||||
* are 'help' and '?'. '?' is deprecated (it is a shell wildcard
|
||||
* which makes it annoying to use in a reliable way) but provided
|
||||
* for backwards compatibility.
|
||||
*
|
||||
* Returns: true if @s is a request for a list.
|
||||
*/
|
||||
static inline bool is_help_option(const char *s)
|
||||
{
|
||||
return !strcmp(s, "?") || !strcmp(s, "help");
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue