2017-10-31 16:24:21 +08:00
|
|
|
/*
|
|
|
|
* virsh-completer.h: virsh completer callbacks
|
|
|
|
*
|
|
|
|
* Copyright (C) 2017 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/>.
|
|
|
|
*/
|
|
|
|
|
2018-12-13 22:53:50 +08:00
|
|
|
#ifndef LIBVIRT_VIRSH_COMPLETER_H
|
|
|
|
# define LIBVIRT_VIRSH_COMPLETER_H
|
2017-10-31 16:24:21 +08:00
|
|
|
|
|
|
|
# include "vsh.h"
|
|
|
|
|
|
|
|
char ** virshDomainNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2017-11-06 22:48:01 +08:00
|
|
|
enum {
|
|
|
|
VIRSH_DOMAIN_INTERFACE_COMPLETER_MAC = 1 << 0, /* Return just MACs */
|
|
|
|
};
|
|
|
|
|
|
|
|
char ** virshDomainInterfaceCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-05-15 19:18:23 +08:00
|
|
|
char ** virshDomainDiskTargetCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-01-12 21:01:33 +08:00
|
|
|
char ** virshStoragePoolNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-01-12 21:15:11 +08:00
|
|
|
char ** virshStorageVolNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-01-12 21:26:35 +08:00
|
|
|
char ** virshInterfaceNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-01-12 21:35:40 +08:00
|
|
|
char ** virshNetworkNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2019-03-05 11:17:39 +08:00
|
|
|
char ** virshNetworkEventNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-12-13 00:58:31 +08:00
|
|
|
char ** virshNetworkPortUUIDCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-01-12 21:44:37 +08:00
|
|
|
char ** virshNodeDeviceNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-01-12 21:51:34 +08:00
|
|
|
char ** virshNWFilterNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-05-10 00:44:35 +08:00
|
|
|
char ** virshNWFilterBindingNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-01-12 22:00:40 +08:00
|
|
|
char ** virshSecretUUIDCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-01-12 22:28:30 +08:00
|
|
|
char ** virshSnapshotNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-05-21 19:53:44 +08:00
|
|
|
char ** virshAllocpagesPagesizeCompleter(vshControl *ctl,
|
2018-05-24 17:04:33 +08:00
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2018-05-21 19:53:44 +08:00
|
|
|
|
2018-05-23 14:32:40 +08:00
|
|
|
char ** virshSecretEventNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-05-23 14:32:42 +08:00
|
|
|
char ** virshDomainEventNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-05-24 21:16:26 +08:00
|
|
|
char ** virshPoolEventNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-07-12 22:07:59 +08:00
|
|
|
char ** virshDomainInterfaceStateCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-05-23 14:32:46 +08:00
|
|
|
char ** virshNodedevEventNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-06-26 18:41:34 +08:00
|
|
|
char ** virshDomainDeviceAliasCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-05-25 15:12:37 +08:00
|
|
|
char ** virshCellnoCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2018-12-30 12:28:04 +08:00
|
|
|
|
|
|
|
char ** virshDomainShutdownModeCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2018-12-13 22:53:50 +08:00
|
|
|
#endif /* LIBVIRT_VIRSH_COMPLETER_H */
|