2017-10-31 08:24:21 +00: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/>.
|
|
|
|
*
|
|
|
|
* Michal Privoznik <mprivozn@redhat.com>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef VIRSH_COMPLETER
|
|
|
|
# define VIRSH_COMPLETER
|
|
|
|
|
|
|
|
# include "vsh.h"
|
|
|
|
|
|
|
|
char ** virshDomainNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2017-11-06 14:48:01 +00: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 11:18:23 +00:00
|
|
|
char ** virshDomainDiskTargetCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-01-12 13:01:33 +00:00
|
|
|
char ** virshStoragePoolNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-01-12 13:15:11 +00:00
|
|
|
char ** virshStorageVolNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-01-12 13:26:35 +00:00
|
|
|
char ** virshInterfaceNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-01-12 13:35:40 +00:00
|
|
|
char ** virshNetworkNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-01-12 13:44:37 +00:00
|
|
|
char ** virshNodeDeviceNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-01-12 13:51:34 +00:00
|
|
|
char ** virshNWFilterNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-01-12 14:00:40 +00:00
|
|
|
char ** virshSecretUUIDCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-01-12 14:28:30 +00:00
|
|
|
char ** virshSnapshotNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-05-21 11:53:44 +00:00
|
|
|
char ** virshAllocpagesPagesizeCompleter(vshControl *ctl,
|
2018-05-24 09:04:33 +00:00
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2018-05-21 11:53:44 +00:00
|
|
|
|
2018-05-23 06:32:40 +00:00
|
|
|
char ** virshSecretEventNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-05-23 06:32:42 +00:00
|
|
|
char ** virshDomainEventNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-05-24 13:16:26 +00:00
|
|
|
char ** virshPoolEventNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-05-23 06:32:46 +00:00
|
|
|
char ** virshNodedevEventNameCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
|
|
|
|
2018-05-25 07:12:37 +00:00
|
|
|
char ** virshCellnoCompleter(vshControl *ctl,
|
|
|
|
const vshCmd *cmd,
|
|
|
|
unsigned int flags);
|
2017-10-31 08:24:21 +00:00
|
|
|
#endif
|