1 /* 2 * virsh-domain.h: Commands to manage domain 3 * 4 * Copyright (C) 2005, 2007-2012 Red Hat, Inc. 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2.1 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library. If not, see 18 * <http://www.gnu.org/licenses/>. 19 */ 20 21 #pragma once 22 23 #include "virsh.h" 24 25 struct virshDomainEventCallback { 26 const char *name; 27 virConnectDomainEventGenericCallback cb; 28 }; 29 typedef struct virshDomainEventCallback virshDomainEventCallback; 30 31 extern virshDomainEventCallback virshDomainEventCallbacks[]; 32 33 typedef enum { 34 VIRSH_DOMAIN_HOSTNAME_SOURCE_AGENT, 35 VIRSH_DOMAIN_HOSTNAME_SOURCE_LEASE, 36 VIRSH_DOMAIN_HOSTNAME_SOURCE_LAST 37 } virshDomainHostnameSource; 38 39 VIR_ENUM_DECL(virshDomainHostnameSource); 40 41 typedef enum { 42 VIRSH_DOMAIN_INTERFACE_SOURCE_MODE_SERVER, 43 VIRSH_DOMAIN_INTERFACE_SOURCE_MODE_CLIENT, 44 VIRSH_DOMAIN_INTERFACE_SOURCE_MODE_LAST 45 } virshDomainInterfaceSourceMode; 46 47 VIR_ENUM_DECL(virshDomainInterfaceSourceMode); 48 49 extern const vshCmdDef domManagementCmds[]; 50 51 VIR_ENUM_DECL(virshDomainProcessSignal); 52 VIR_ENUM_DECL(virshDomainLifecycle); 53 VIR_ENUM_DECL(virshDomainLifecycleAction); 54 VIR_ENUM_DECL(virshDomainCoreDumpFormat); 55