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