mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
virsh: Add vshCompleter to each option
completer and completer_flags added to the _vshCmdOptDef structure so it will be possible for completion generators to conveniently call option completer functions with desired flags. Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
22547b4c98
commit
ffb7ccaa70
@ -148,6 +148,8 @@ typedef struct _vshCmdOptDef vshCmdOptDef;
|
|||||||
typedef struct _vshControl vshControl;
|
typedef struct _vshControl vshControl;
|
||||||
typedef struct _vshCtrlData vshCtrlData;
|
typedef struct _vshCtrlData vshCtrlData;
|
||||||
|
|
||||||
|
typedef char **(*vshCompleter)(unsigned int flags);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* vshCmdInfo -- name/value pair for information about command
|
* vshCmdInfo -- name/value pair for information about command
|
||||||
*
|
*
|
||||||
@ -169,6 +171,8 @@ struct _vshCmdOptDef {
|
|||||||
unsigned int flags; /* flags */
|
unsigned int flags; /* flags */
|
||||||
const char *help; /* non-NULL help string; or for VSH_OT_ALIAS
|
const char *help; /* non-NULL help string; or for VSH_OT_ALIAS
|
||||||
* the name of a later public option */
|
* the name of a later public option */
|
||||||
|
vshCompleter completer; /* option completer */
|
||||||
|
unsigned int completer_flags; /* option completer flags */
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user