2019-07-14 00:00:35 +08:00
|
|
|
/*
|
|
|
|
* virsh-completer-domain.h: virsh completer callbacks related to domains
|
|
|
|
*
|
|
|
|
* Copyright (C) 2019 Red Hat, Inc.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library. If not, see
|
|
|
|
* <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "vsh.h"
|
|
|
|
|
2021-09-16 17:19:01 +08:00
|
|
|
char **
|
|
|
|
virshDomainNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2019-07-14 00:00:35 +08:00
|
|
|
|
|
|
|
enum {
|
|
|
|
VIRSH_DOMAIN_INTERFACE_COMPLETER_MAC = 1 << 0, /* Return just MACs */
|
|
|
|
};
|
|
|
|
|
2021-09-16 17:19:01 +08:00
|
|
|
char **
|
|
|
|
virshDomainInterfaceCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2019-07-14 00:00:35 +08:00
|
|
|
|
2021-09-16 17:19:01 +08:00
|
|
|
char **
|
|
|
|
virshDomainDiskTargetCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2019-07-14 00:00:35 +08:00
|
|
|
|
2021-09-16 17:19:01 +08:00
|
|
|
char **
|
|
|
|
virshDomainInterfaceStateCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2019-07-14 00:00:35 +08:00
|
|
|
|
2021-09-16 17:19:01 +08:00
|
|
|
char **
|
|
|
|
virshDomainDeviceAliasCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2019-07-14 00:00:35 +08:00
|
|
|
|
2021-09-16 17:19:01 +08:00
|
|
|
char **
|
|
|
|
virshDomainShutdownModeCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2020-01-02 23:07:06 +08:00
|
|
|
|
|
|
|
char **
|
|
|
|
virshDomainInterfaceAddrSourceCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2019-12-28 04:36:25 +08:00
|
|
|
|
2021-08-17 19:03:04 +08:00
|
|
|
char **
|
|
|
|
virshDomainInterfaceSourceModeCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2021-09-16 17:19:01 +08:00
|
|
|
char **
|
|
|
|
virshDomainHostnameSourceCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2020-09-11 15:13:06 +08:00
|
|
|
|
2021-09-16 17:19:01 +08:00
|
|
|
char **
|
|
|
|
virshDomainPerfEnableCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2020-09-11 15:13:06 +08:00
|
|
|
|
2021-09-16 17:19:01 +08:00
|
|
|
char **
|
|
|
|
virshDomainPerfDisableCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2020-09-11 15:13:09 +08:00
|
|
|
|
2021-09-16 17:19:01 +08:00
|
|
|
char **
|
|
|
|
virshDomainUUIDCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2020-09-11 15:13:10 +08:00
|
|
|
|
2021-09-16 17:19:01 +08:00
|
|
|
char **
|
|
|
|
virshDomainIOThreadIdCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2020-09-11 15:13:12 +08:00
|
|
|
|
2021-09-16 17:19:01 +08:00
|
|
|
char **
|
|
|
|
virshDomainVcpuCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
|
|
|
char **
|
|
|
|
virshDomainVcpulistCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
|
|
|
char **
|
|
|
|
virshDomainCpulistCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2020-09-11 15:13:13 +08:00
|
|
|
|
2021-09-16 17:19:01 +08:00
|
|
|
char **
|
|
|
|
virshDomainVcpulistViaAgentCompleter(vshControl *ctl,
|
2020-09-11 15:13:13 +08:00
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2020-09-11 15:13:14 +08:00
|
|
|
|
2021-09-16 17:19:01 +08:00
|
|
|
char **
|
|
|
|
virshDomainConsoleCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2020-11-10 17:50:52 +08:00
|
|
|
|
2021-09-16 17:19:01 +08:00
|
|
|
char **
|
|
|
|
virshDomainSignalCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2020-11-10 17:50:54 +08:00
|
|
|
|
2021-09-16 17:19:01 +08:00
|
|
|
char **
|
|
|
|
virshDomainLifecycleCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
|
|
|
char **
|
|
|
|
virshDomainLifecycleActionCompleter(vshControl *ctl,
|
2020-11-10 17:50:54 +08:00
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2020-11-10 17:51:02 +08:00
|
|
|
|
2021-09-16 17:19:01 +08:00
|
|
|
char **
|
|
|
|
virshCodesetNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2021-02-17 04:15:43 +08:00
|
|
|
|
2021-09-16 17:19:01 +08:00
|
|
|
char **
|
|
|
|
virshKeycodeNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2021-02-19 02:11:22 +08:00
|
|
|
|
2021-09-16 17:19:01 +08:00
|
|
|
char **
|
|
|
|
virshDomainFSMountpointsCompleter(vshControl *ctl,
|
2021-02-19 02:11:22 +08:00
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2021-04-22 18:38:18 +08:00
|
|
|
|
2021-06-07 11:14:18 +08:00
|
|
|
char **
|
|
|
|
virshDomainCoreDumpFormatCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2021-06-15 08:38:21 +08:00
|
|
|
|
|
|
|
char **
|
|
|
|
virshDomainMigrateCompMethodsCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2021-06-15 08:38:26 +08:00
|
|
|
|
|
|
|
|
|
|
|
char **
|
|
|
|
virshDomainStorageFileFormatCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2021-09-16 21:11:03 +08:00
|
|
|
|
|
|
|
char **
|
|
|
|
virshDomainMigrateDisksCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int completeflags);
|
|
|
|
|
|
|
|
char **
|
|
|
|
virshDomainUndefineStorageDisksCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int completeflags);
|
2021-09-16 23:49:50 +08:00
|
|
|
|
|
|
|
char **
|
|
|
|
virshDomainBlockjobBaseTopCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2021-12-16 22:46:31 +08:00
|
|
|
|
|
|
|
char **
|
|
|
|
virshDomainNumatuneModeCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2022-02-20 21:28:14 +08:00
|
|
|
char **
|
|
|
|
virshDomainDirtyRateCalcModeCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|