2019-07-13 11:00:35 -05: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 04:19:01 -05:00
|
|
|
char **
|
|
|
|
virshDomainNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2019-07-13 11:00:35 -05:00
|
|
|
|
|
|
|
enum {
|
|
|
|
VIRSH_DOMAIN_INTERFACE_COMPLETER_MAC = 1 << 0, /* Return just MACs */
|
|
|
|
};
|
|
|
|
|
2021-09-16 04:19:01 -05:00
|
|
|
char **
|
|
|
|
virshDomainInterfaceCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2019-07-13 11:00:35 -05:00
|
|
|
|
2021-09-16 04:19:01 -05:00
|
|
|
char **
|
|
|
|
virshDomainDiskTargetCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2019-07-13 11:00:35 -05:00
|
|
|
|
2021-09-16 04:19:01 -05:00
|
|
|
char **
|
|
|
|
virshDomainInterfaceStateCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2019-07-13 11:00:35 -05:00
|
|
|
|
2021-09-16 04:19:01 -05:00
|
|
|
char **
|
|
|
|
virshDomainDeviceAliasCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2019-07-13 11:00:35 -05:00
|
|
|
|
2021-09-16 04:19:01 -05:00
|
|
|
char **
|
|
|
|
virshDomainShutdownModeCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2020-01-02 09:07:06 -06:00
|
|
|
|
|
|
|
char **
|
|
|
|
virshDomainInterfaceAddrSourceCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2019-12-27 14:36:25 -06:00
|
|
|
|
2021-08-17 06:03:04 -05:00
|
|
|
char **
|
|
|
|
virshDomainInterfaceSourceModeCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2021-09-16 04:19:01 -05:00
|
|
|
char **
|
|
|
|
virshDomainHostnameSourceCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2020-09-11 02:13:06 -05:00
|
|
|
|
2021-09-16 04:19:01 -05:00
|
|
|
char **
|
|
|
|
virshDomainPerfEnableCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2020-09-11 02:13:06 -05:00
|
|
|
|
2021-09-16 04:19:01 -05:00
|
|
|
char **
|
|
|
|
virshDomainPerfDisableCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2020-09-11 02:13:09 -05:00
|
|
|
|
2021-09-16 04:19:01 -05:00
|
|
|
char **
|
|
|
|
virshDomainUUIDCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2020-09-11 02:13:10 -05:00
|
|
|
|
2021-09-16 04:19:01 -05:00
|
|
|
char **
|
|
|
|
virshDomainIOThreadIdCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2020-09-11 02:13:12 -05:00
|
|
|
|
2021-09-16 04:19:01 -05: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 02:13:13 -05:00
|
|
|
|
2021-09-16 04:19:01 -05:00
|
|
|
char **
|
|
|
|
virshDomainVcpulistViaAgentCompleter(vshControl *ctl,
|
2020-09-11 02:13:13 -05:00
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2020-09-11 02:13:14 -05:00
|
|
|
|
2021-09-16 04:19:01 -05:00
|
|
|
char **
|
|
|
|
virshDomainConsoleCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2020-11-10 03:50:52 -06:00
|
|
|
|
2021-09-16 04:19:01 -05:00
|
|
|
char **
|
|
|
|
virshDomainSignalCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2020-11-10 03:50:54 -06:00
|
|
|
|
2021-09-16 04:19:01 -05:00
|
|
|
char **
|
|
|
|
virshDomainLifecycleCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
|
|
|
char **
|
|
|
|
virshDomainLifecycleActionCompleter(vshControl *ctl,
|
2020-11-10 03:50:54 -06:00
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2020-11-10 03:51:02 -06:00
|
|
|
|
2021-09-16 04:19:01 -05:00
|
|
|
char **
|
|
|
|
virshCodesetNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2021-02-16 14:15:43 -06:00
|
|
|
|
2021-09-16 04:19:01 -05:00
|
|
|
char **
|
|
|
|
virshKeycodeNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2021-02-18 12:11:22 -06:00
|
|
|
|
2021-09-16 04:19:01 -05:00
|
|
|
char **
|
|
|
|
virshDomainFSMountpointsCompleter(vshControl *ctl,
|
2021-02-18 12:11:22 -06:00
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2021-04-22 05:38:18 -05:00
|
|
|
|
2021-06-06 22:14:18 -05:00
|
|
|
char **
|
|
|
|
virshDomainCoreDumpFormatCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2021-06-14 19:38:21 -05:00
|
|
|
|
|
|
|
char **
|
|
|
|
virshDomainMigrateCompMethodsCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2021-06-14 19:38:26 -05:00
|
|
|
|
|
|
|
|
|
|
|
char **
|
|
|
|
virshDomainStorageFileFormatCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2021-09-16 08:11:03 -05:00
|
|
|
|
|
|
|
char **
|
|
|
|
virshDomainMigrateDisksCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int completeflags);
|
|
|
|
|
|
|
|
char **
|
|
|
|
virshDomainUndefineStorageDisksCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int completeflags);
|
2021-09-16 10:49:50 -05:00
|
|
|
|
|
|
|
char **
|
|
|
|
virshDomainBlockjobBaseTopCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2021-12-16 08:46:31 -06:00
|
|
|
|
|
|
|
char **
|
|
|
|
virshDomainNumatuneModeCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2022-02-20 07:28:14 -06:00
|
|
|
char **
|
|
|
|
virshDomainDirtyRateCalcModeCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|