mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
virsh-completer*.h: Use modern header style
Prevent the need to edit the function declarations to put them into the header. There was even inconsistent use. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
6246bc6601
commit
4402bff1ec
@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
#include "vsh.h"
|
#include "vsh.h"
|
||||||
|
|
||||||
char ** virshCheckpointNameCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshCheckpointNameCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
@ -22,7 +22,8 @@
|
|||||||
|
|
||||||
#include "vsh.h"
|
#include "vsh.h"
|
||||||
|
|
||||||
char ** virshDomainNameCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshDomainNameCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
@ -30,27 +31,33 @@ enum {
|
|||||||
VIRSH_DOMAIN_INTERFACE_COMPLETER_MAC = 1 << 0, /* Return just MACs */
|
VIRSH_DOMAIN_INTERFACE_COMPLETER_MAC = 1 << 0, /* Return just MACs */
|
||||||
};
|
};
|
||||||
|
|
||||||
char ** virshDomainInterfaceCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshDomainInterfaceCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshDomainDiskTargetCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshDomainDiskTargetCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshDomainEventNameCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshDomainEventNameCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshDomainInterfaceStateCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshDomainInterfaceStateCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshDomainDeviceAliasCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshDomainDeviceAliasCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshDomainShutdownModeCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshDomainShutdownModeCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
@ -64,67 +71,83 @@ virshDomainInterfaceSourceModeCompleter(vshControl *ctl,
|
|||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshDomainHostnameSourceCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshDomainHostnameSourceCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshDomainPerfEnableCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshDomainPerfEnableCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshDomainPerfDisableCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshDomainPerfDisableCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshDomainUUIDCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshDomainUUIDCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshDomainIOThreadIdCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshDomainIOThreadIdCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshDomainVcpuCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshDomainVcpuCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshDomainVcpulistCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshDomainVcpulistCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshDomainCpulistCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshDomainCpulistCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshDomainVcpulistViaAgentCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshDomainVcpulistViaAgentCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshDomainConsoleCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshDomainConsoleCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshDomainSignalCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshDomainSignalCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshDomainLifecycleCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshDomainLifecycleCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshDomainLifecycleActionCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshDomainLifecycleActionCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshCodesetNameCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshCodesetNameCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshKeycodeNameCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshKeycodeNameCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshDomainFSMountpointsCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshDomainFSMountpointsCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
|
@ -22,18 +22,22 @@
|
|||||||
|
|
||||||
#include "vsh.h"
|
#include "vsh.h"
|
||||||
|
|
||||||
char ** virshAllocpagesPagesizeCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshAllocpagesPagesizeCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshCellnoCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshCellnoCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshNodeCpuCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshNodeCpuCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshNodeSuspendTargetCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshNodeSuspendTargetCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
@ -22,10 +22,12 @@
|
|||||||
|
|
||||||
#include "vsh.h"
|
#include "vsh.h"
|
||||||
|
|
||||||
char ** virshInterfaceNameCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshInterfaceNameCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshInterfaceMacCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshInterfaceMacCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
@ -22,22 +22,27 @@
|
|||||||
|
|
||||||
#include "vsh.h"
|
#include "vsh.h"
|
||||||
|
|
||||||
char ** virshNetworkNameCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshNetworkNameCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshNetworkEventNameCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshNetworkEventNameCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshNetworkPortUUIDCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshNetworkPortUUIDCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshNetworkUUIDCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshNetworkUUIDCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshNetworkDhcpMacCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshNetworkDhcpMacCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
@ -22,14 +22,17 @@
|
|||||||
|
|
||||||
#include "vsh.h"
|
#include "vsh.h"
|
||||||
|
|
||||||
char ** virshNodeDeviceNameCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshNodeDeviceNameCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshNodeDeviceEventNameCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshNodeDeviceEventNameCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshNodeDeviceCapabilityNameCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshNodeDeviceCapabilityNameCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
@ -22,10 +22,12 @@
|
|||||||
|
|
||||||
#include "vsh.h"
|
#include "vsh.h"
|
||||||
|
|
||||||
char ** virshNWFilterNameCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshNWFilterNameCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshNWFilterBindingNameCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshNWFilterBindingNameCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
@ -22,14 +22,17 @@
|
|||||||
|
|
||||||
#include "vsh.h"
|
#include "vsh.h"
|
||||||
|
|
||||||
char ** virshStoragePoolNameCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshStoragePoolNameCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshPoolEventNameCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshPoolEventNameCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshPoolTypeCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshPoolTypeCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
@ -22,10 +22,12 @@
|
|||||||
|
|
||||||
#include "vsh.h"
|
#include "vsh.h"
|
||||||
|
|
||||||
char ** virshSecretUUIDCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshSecretUUIDCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
char ** virshSecretEventNameCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshSecretEventNameCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
#include "vsh.h"
|
#include "vsh.h"
|
||||||
|
|
||||||
char ** virshSnapshotNameCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshSnapshotNameCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
@ -23,11 +23,13 @@
|
|||||||
#include "vsh.h"
|
#include "vsh.h"
|
||||||
|
|
||||||
|
|
||||||
char ** virshStorageVolNameCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshStorageVolNameCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
|
|
||||||
char ** virshStorageVolKeyCompleter(vshControl *ctl,
|
char **
|
||||||
|
virshStorageVolKeyCompleter(vshControl *ctl,
|
||||||
const vshCmd *cmd,
|
const vshCmd *cmd,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
@ -32,5 +32,6 @@
|
|||||||
#include "virsh-completer-snapshot.h"
|
#include "virsh-completer-snapshot.h"
|
||||||
#include "virsh-completer-volume.h"
|
#include "virsh-completer-volume.h"
|
||||||
|
|
||||||
char ** virshCommaStringListComplete(const char *input,
|
char **
|
||||||
|
virshCommaStringListComplete(const char *input,
|
||||||
const char **options);
|
const char **options);
|
||||||
|
Loading…
Reference in New Issue
Block a user