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:
Peter Krempa 2021-09-16 11:19:01 +02:00
parent 6246bc6601
commit 4402bff1ec
12 changed files with 203 additions and 154 deletions

View File

@ -22,6 +22,7 @@
#include "vsh.h"
char ** virshCheckpointNameCompleter(vshControl *ctl,
char **
virshCheckpointNameCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);

View File

@ -22,7 +22,8 @@
#include "vsh.h"
char ** virshDomainNameCompleter(vshControl *ctl,
char **
virshDomainNameCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
@ -30,27 +31,33 @@ enum {
VIRSH_DOMAIN_INTERFACE_COMPLETER_MAC = 1 << 0, /* Return just MACs */
};
char ** virshDomainInterfaceCompleter(vshControl *ctl,
char **
virshDomainInterfaceCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshDomainDiskTargetCompleter(vshControl *ctl,
char **
virshDomainDiskTargetCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshDomainEventNameCompleter(vshControl *ctl,
char **
virshDomainEventNameCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshDomainInterfaceStateCompleter(vshControl *ctl,
char **
virshDomainInterfaceStateCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshDomainDeviceAliasCompleter(vshControl *ctl,
char **
virshDomainDeviceAliasCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshDomainShutdownModeCompleter(vshControl *ctl,
char **
virshDomainShutdownModeCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
@ -64,67 +71,83 @@ virshDomainInterfaceSourceModeCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshDomainHostnameSourceCompleter(vshControl *ctl,
char **
virshDomainHostnameSourceCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshDomainPerfEnableCompleter(vshControl *ctl,
char **
virshDomainPerfEnableCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshDomainPerfDisableCompleter(vshControl *ctl,
char **
virshDomainPerfDisableCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshDomainUUIDCompleter(vshControl *ctl,
char **
virshDomainUUIDCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshDomainIOThreadIdCompleter(vshControl *ctl,
char **
virshDomainIOThreadIdCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshDomainVcpuCompleter(vshControl *ctl,
char **
virshDomainVcpuCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshDomainVcpulistCompleter(vshControl *ctl,
char **
virshDomainVcpulistCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshDomainCpulistCompleter(vshControl *ctl,
char **
virshDomainCpulistCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshDomainVcpulistViaAgentCompleter(vshControl *ctl,
char **
virshDomainVcpulistViaAgentCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshDomainConsoleCompleter(vshControl *ctl,
char **
virshDomainConsoleCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshDomainSignalCompleter(vshControl *ctl,
char **
virshDomainSignalCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshDomainLifecycleCompleter(vshControl *ctl,
char **
virshDomainLifecycleCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshDomainLifecycleActionCompleter(vshControl *ctl,
char **
virshDomainLifecycleActionCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshCodesetNameCompleter(vshControl *ctl,
char **
virshCodesetNameCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshKeycodeNameCompleter(vshControl *ctl,
char **
virshKeycodeNameCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshDomainFSMountpointsCompleter(vshControl *ctl,
char **
virshDomainFSMountpointsCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);

View File

@ -22,18 +22,22 @@
#include "vsh.h"
char ** virshAllocpagesPagesizeCompleter(vshControl *ctl,
char **
virshAllocpagesPagesizeCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshCellnoCompleter(vshControl *ctl,
char **
virshCellnoCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshNodeCpuCompleter(vshControl *ctl,
char **
virshNodeCpuCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshNodeSuspendTargetCompleter(vshControl *ctl,
char **
virshNodeSuspendTargetCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);

View File

@ -22,10 +22,12 @@
#include "vsh.h"
char ** virshInterfaceNameCompleter(vshControl *ctl,
char **
virshInterfaceNameCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshInterfaceMacCompleter(vshControl *ctl,
char **
virshInterfaceMacCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);

View File

@ -22,22 +22,27 @@
#include "vsh.h"
char ** virshNetworkNameCompleter(vshControl *ctl,
char **
virshNetworkNameCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshNetworkEventNameCompleter(vshControl *ctl,
char **
virshNetworkEventNameCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshNetworkPortUUIDCompleter(vshControl *ctl,
char **
virshNetworkPortUUIDCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshNetworkUUIDCompleter(vshControl *ctl,
char **
virshNetworkUUIDCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshNetworkDhcpMacCompleter(vshControl *ctl,
char **
virshNetworkDhcpMacCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);

View File

@ -22,14 +22,17 @@
#include "vsh.h"
char ** virshNodeDeviceNameCompleter(vshControl *ctl,
char **
virshNodeDeviceNameCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshNodeDeviceEventNameCompleter(vshControl *ctl,
char **
virshNodeDeviceEventNameCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshNodeDeviceCapabilityNameCompleter(vshControl *ctl,
char **
virshNodeDeviceCapabilityNameCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);

View File

@ -22,10 +22,12 @@
#include "vsh.h"
char ** virshNWFilterNameCompleter(vshControl *ctl,
char **
virshNWFilterNameCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshNWFilterBindingNameCompleter(vshControl *ctl,
char **
virshNWFilterBindingNameCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);

View File

@ -22,14 +22,17 @@
#include "vsh.h"
char ** virshStoragePoolNameCompleter(vshControl *ctl,
char **
virshStoragePoolNameCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshPoolEventNameCompleter(vshControl *ctl,
char **
virshPoolEventNameCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshPoolTypeCompleter(vshControl *ctl,
char **
virshPoolTypeCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);

View File

@ -22,10 +22,12 @@
#include "vsh.h"
char ** virshSecretUUIDCompleter(vshControl *ctl,
char **
virshSecretUUIDCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshSecretEventNameCompleter(vshControl *ctl,
char **
virshSecretEventNameCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);

View File

@ -22,6 +22,7 @@
#include "vsh.h"
char ** virshSnapshotNameCompleter(vshControl *ctl,
char **
virshSnapshotNameCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);

View File

@ -23,11 +23,13 @@
#include "vsh.h"
char ** virshStorageVolNameCompleter(vshControl *ctl,
char **
virshStorageVolNameCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
char ** virshStorageVolKeyCompleter(vshControl *ctl,
char **
virshStorageVolKeyCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);

View File

@ -32,5 +32,6 @@
#include "virsh-completer-snapshot.h"
#include "virsh-completer-volume.h"
char ** virshCommaStringListComplete(const char *input,
char **
virshCommaStringListComplete(const char *input,
const char **options);