mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
Drop unused function declarations
When moving function and/or renaming them sometimes corresponding change to corresponding header file is not done. This leaves us with functions that are declared in header files, but nowhere implemented. Drop such declarations. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
6c50d11276
commit
aeebb30ba2
@ -118,10 +118,6 @@ int virCHMonitorSaveVM(virCHMonitor *mon,
|
||||
const char *to);
|
||||
int virCHMonitorGetInfo(virCHMonitor *mon, virJSONValue **info);
|
||||
|
||||
void virCHMonitorCPUInfoFree(virCHMonitorCPUInfo *cpus);
|
||||
int virCHMonitorGetCPUInfo(virCHMonitor *mon,
|
||||
virCHMonitorCPUInfo **vcpus,
|
||||
size_t maxvcpus);
|
||||
size_t virCHMonitorGetThreadInfo(virCHMonitor *mon, bool refresh,
|
||||
virCHMonitorThreadInfo **threads);
|
||||
int virCHMonitorGetIOThreads(virCHMonitor *mon,
|
||||
|
@ -193,7 +193,6 @@ int virDeviceHostdevPCIDriverInfoParseXML(xmlNodePtr node,
|
||||
int virDeviceHostdevPCIDriverInfoFormat(virBuffer *buf,
|
||||
const virDeviceHostdevPCIDriverInfo *driver);
|
||||
|
||||
void virDeviceHostdevPCIDriverInfoPostParse(virDeviceHostdevPCIDriverInfo *driver);
|
||||
void virDeviceHostdevPCIDriverInfoClear(virDeviceHostdevPCIDriverInfo *driver);
|
||||
|
||||
void virDomainDeviceInfoClear(virDomainDeviceInfo *info);
|
||||
|
@ -51,9 +51,6 @@ virInterfaceObj *
|
||||
virInterfaceObjListFindByName(virInterfaceObjList *interfaces,
|
||||
const char *name);
|
||||
|
||||
void
|
||||
virInterfaceObjFree(virInterfaceObj *obj);
|
||||
|
||||
virInterfaceObjList *
|
||||
virInterfaceObjListClone(virInterfaceObjList *interfaces);
|
||||
|
||||
|
@ -229,9 +229,6 @@ virStoragePoolObjGetNames(virStoragePoolObjList *pools,
|
||||
char **const names,
|
||||
int maxnames);
|
||||
|
||||
void
|
||||
virStoragePoolObjFree(virStoragePoolObj *obj);
|
||||
|
||||
typedef void
|
||||
(*virStoragePoolObjListIterator)(virStoragePoolObj *obj,
|
||||
const void *opaque);
|
||||
|
@ -46,9 +46,6 @@ extern virDomainDefParserConfig libxlDomainDefParserConfig;
|
||||
extern virXMLNamespace libxlDriverDomainXMLNamespace;
|
||||
extern const struct libxl_event_hooks ev_hooks;
|
||||
|
||||
int
|
||||
libxlDomainObjPrivateInitCtx(virDomainObj *vm);
|
||||
|
||||
int
|
||||
libxlDomainJobGetTimeElapsed(virDomainJobObj *job,
|
||||
unsigned long long *timeElapsed);
|
||||
|
@ -67,8 +67,6 @@ virLogHandler *virLogHandlerNewPostExecRestart(virJSONValue *child,
|
||||
virLogHandlerShutdownInhibitor inhibitor,
|
||||
void *opaque);
|
||||
|
||||
void virLogHandlerFree(virLogHandler *handler);
|
||||
|
||||
int virLogHandlerDomainOpenLogFile(virLogHandler *handler,
|
||||
const char *driver,
|
||||
const unsigned char *domuuid,
|
||||
|
@ -29,7 +29,6 @@ virCgroup *virLXCCgroupCreate(virDomainDef *def,
|
||||
pid_t initpid,
|
||||
size_t nnicindexes,
|
||||
int *nicindexes);
|
||||
virCgroup *virLXCCgroupJoin(virDomainDef *def);
|
||||
int virLXCCgroupSetup(virDomainDef *def,
|
||||
virCgroup *cgroup,
|
||||
virBitmap *nodemask);
|
||||
|
@ -26,12 +26,6 @@
|
||||
|
||||
int virLXCUpdateActiveUSBHostdevs(virLXCDriver *driver,
|
||||
virDomainDef *def);
|
||||
int virLXCFindHostdevUSBDevice(virDomainHostdevDef *hostdev,
|
||||
bool mandatory,
|
||||
virUSBDevice **usb);
|
||||
int virLXCPrepareHostdevUSBDevices(virLXCDriver *driver,
|
||||
const char *name,
|
||||
virUSBDeviceList *list);
|
||||
int virLXCPrepareHostDevices(virLXCDriver *driver,
|
||||
virDomainDef *def);
|
||||
void virLXCDomainReAttachHostDevices(virLXCDriver *driver,
|
||||
|
@ -53,6 +53,3 @@ virLXCMonitor *virLXCMonitorNew(virDomainObj *vm,
|
||||
virLXCMonitorCallbacks *cb);
|
||||
|
||||
void virLXCMonitorClose(virLXCMonitor *mon);
|
||||
|
||||
void virLXCMonitorLock(virLXCMonitor *mon);
|
||||
void virLXCMonitorUnlock(virLXCMonitor *mon);
|
||||
|
@ -33,15 +33,6 @@ int virLXCProcessStop(virLXCDriver *driver,
|
||||
virDomainShutoffReason reason,
|
||||
unsigned int cleanupFlags);
|
||||
|
||||
void virLXCProcessAutoDestroyRun(virLXCDriver *driver,
|
||||
virConnectPtr conn);
|
||||
void virLXCProcessAutoDestroyShutdown(virLXCDriver *driver);
|
||||
int virLXCProcessAutoDestroyAdd(virLXCDriver *driver,
|
||||
virDomainObj *vm,
|
||||
virConnectPtr conn);
|
||||
int virLXCProcessAutoDestroyRemove(virLXCDriver *driver,
|
||||
virDomainObj *vm);
|
||||
|
||||
void virLXCProcessAutostartAll(virLXCDriver *driver);
|
||||
int virLXCProcessReconnectAll(virLXCDriver *driver,
|
||||
virDomainObjList *doms);
|
||||
|
@ -93,7 +93,6 @@ qemuBuildNicDevProps(virDomainDef *def,
|
||||
virDomainNetDef *net,
|
||||
virQEMUCaps *qemuCaps);
|
||||
|
||||
char *qemuDeviceDriveHostAlias(virDomainDiskDef *disk);
|
||||
bool qemuDiskBusIsSD(int bus);
|
||||
|
||||
int
|
||||
@ -208,8 +207,6 @@ qemuBuildRedirdevDevProps(const virDomainDef *def,
|
||||
virJSONValue *
|
||||
qemuBuildZPCIDevProps(virDomainDeviceInfo *dev);
|
||||
|
||||
int qemuNetworkPrepareDevices(virDomainDef *def);
|
||||
|
||||
bool
|
||||
qemuDiskConfigBlkdeviotuneEnabled(const virDomainDiskDef *disk);
|
||||
|
||||
|
@ -588,8 +588,6 @@ virDomainObj *qemuDomainObjFromDomain(virDomainPtr domain);
|
||||
|
||||
qemuDomainSaveCookie *qemuDomainSaveCookieNew(virDomainObj *vm);
|
||||
|
||||
void qemuDomainEventFlush(int timer, void *opaque);
|
||||
|
||||
qemuMonitor *qemuDomainGetMonitor(virDomainObj *vm)
|
||||
ATTRIBUTE_NONNULL(1);
|
||||
void qemuDomainObjEnterMonitor(virDomainObj *obj)
|
||||
@ -645,9 +643,6 @@ void qemuDomainObjTaint(virQEMUDriver *driver,
|
||||
virDomainTaintFlags taint,
|
||||
qemuLogContext *logCtxt);
|
||||
|
||||
char **qemuDomainObjGetTainting(virQEMUDriver *driver,
|
||||
virDomainObj *obj);
|
||||
|
||||
void qemuDomainObjCheckTaint(virQEMUDriver *driver,
|
||||
virDomainObj *obj,
|
||||
qemuLogContext *logCtxt,
|
||||
@ -716,10 +711,6 @@ int qemuDomainCheckDiskStartupPolicy(virQEMUDriver *driver,
|
||||
size_t diskIndex,
|
||||
bool cold_boot);
|
||||
|
||||
int qemuDomainCheckDiskPresence(virQEMUDriver *driver,
|
||||
virDomainObj *vm,
|
||||
unsigned int flags);
|
||||
|
||||
int qemuDomainStorageSourceValidateDepth(virStorageSource *src,
|
||||
int add,
|
||||
const char *diskdst);
|
||||
@ -947,9 +938,6 @@ int qemuDomainSecretPrepare(virQEMUDriver *driver,
|
||||
virDomainObj *vm)
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
|
||||
|
||||
int qemuDomainDeviceDefValidateDisk(const virDomainDiskDef *disk,
|
||||
virQEMUCaps *qemuCaps);
|
||||
|
||||
int qemuDomainDeviceDiskDefPostParse(virDomainDiskDef *disk,
|
||||
unsigned int parseFlags);
|
||||
|
||||
|
@ -939,10 +939,6 @@ void qemuMonitorChardevInfoFree(void *data);
|
||||
int qemuMonitorGetChardevInfo(qemuMonitor *mon,
|
||||
GHashTable **retinfo);
|
||||
|
||||
int qemuMonitorAttachPCIDiskController(qemuMonitor *mon,
|
||||
const char *bus,
|
||||
virPCIDeviceAddress *guestAddr);
|
||||
|
||||
int qemuMonitorAddDeviceProps(qemuMonitor *mon,
|
||||
virJSONValue **props);
|
||||
|
||||
|
@ -175,10 +175,6 @@ qemuMonitorJSONMigrate(qemuMonitor *mon,
|
||||
int
|
||||
qemuMonitorJSONGetMigrationBlockers(qemuMonitor *mon,
|
||||
char ***blockers);
|
||||
int
|
||||
qemuMonitorJSONGetSpiceMigrationStatus(qemuMonitor *mon,
|
||||
bool *spice_migrated);
|
||||
|
||||
|
||||
int
|
||||
qemuMonitorJSONMigrateCancel(qemuMonitor *mon);
|
||||
@ -208,26 +204,6 @@ qemuMonitorJSONGraphicsRelocate(qemuMonitor *mon,
|
||||
int tlsPort,
|
||||
const char *tlsSubject);
|
||||
|
||||
int
|
||||
qemuMonitorJSONAddPCIHostDevice(qemuMonitor *mon,
|
||||
virPCIDeviceAddress *hostAddr,
|
||||
virPCIDeviceAddress *guestAddr);
|
||||
|
||||
int
|
||||
qemuMonitorJSONAddPCIDisk(qemuMonitor *mon,
|
||||
const char *path,
|
||||
const char *bus,
|
||||
virPCIDeviceAddress *guestAddr);
|
||||
|
||||
int
|
||||
qemuMonitorJSONAddPCINetwork(qemuMonitor *mon,
|
||||
const char *nicstr,
|
||||
virPCIDeviceAddress *guestAddr);
|
||||
|
||||
int
|
||||
qemuMonitorJSONRemovePCIDevice(qemuMonitor *mon,
|
||||
virPCIDeviceAddress *guestAddr);
|
||||
|
||||
int
|
||||
qemuMonitorJSONAddFileHandleToSet(qemuMonitor *mon,
|
||||
int fd,
|
||||
@ -268,11 +244,6 @@ int
|
||||
qemuMonitorJSONGetChardevInfo(qemuMonitor *mon,
|
||||
GHashTable *info);
|
||||
|
||||
int
|
||||
qemuMonitorJSONAttachPCIDiskController(qemuMonitor *mon,
|
||||
const char *bus,
|
||||
virPCIDeviceAddress *guestAddr);
|
||||
|
||||
int
|
||||
qemuMonitorJSONAddDeviceProps(qemuMonitor *mon,
|
||||
virJSONValue **props);
|
||||
|
@ -189,9 +189,6 @@ void qemuProcessShutdownOrReboot(virDomainObj *vm);
|
||||
void qemuProcessAutoDestroy(virDomainObj *dom,
|
||||
virConnectPtr conn);
|
||||
|
||||
int qemuProcessSetSchedParams(int id, pid_t pid, size_t nsp,
|
||||
virDomainThreadSchedParam *sp);
|
||||
|
||||
virDomainDiskDef *qemuProcessFindDomainDiskByAliasOrQOM(virDomainObj *vm,
|
||||
const char *alias,
|
||||
const char *qomid);
|
||||
|
@ -26,7 +26,6 @@
|
||||
typedef struct _virNetLibsshSession virNetLibsshSession;
|
||||
|
||||
virNetLibsshSession *virNetLibsshSessionNew(const char *username);
|
||||
void virNetLibsshSessionFree(virNetLibsshSession *sess);
|
||||
|
||||
typedef enum {
|
||||
VIR_NET_LIBSSH_HOSTKEY_VERIFY_NORMAL,
|
||||
|
@ -152,8 +152,6 @@ int virNetServerClientInit(virNetServerClient *client);
|
||||
int virNetServerClientInitKeepAlive(virNetServerClient *client,
|
||||
int interval,
|
||||
unsigned int count);
|
||||
bool virNetServerClientCheckKeepAlive(virNetServerClient *client,
|
||||
virNetMessage *msg);
|
||||
int virNetServerClientStartKeepAlive(virNetServerClient *client);
|
||||
|
||||
const char *virNetServerClientLocalAddrStringSASL(virNetServerClient *client);
|
||||
|
@ -72,9 +72,6 @@ typedef int (*virMediatedDeviceCallback)(virMediatedDevice *dev,
|
||||
virMediatedDevice *
|
||||
virMediatedDeviceNew(const char *uuidstr, virMediatedDeviceModelType model);
|
||||
|
||||
virMediatedDevice *
|
||||
virMediatedDeviceCopy(virMediatedDevice *dev);
|
||||
|
||||
void
|
||||
virMediatedDeviceFree(virMediatedDevice *dev);
|
||||
|
||||
|
@ -185,16 +185,6 @@ int virNetDevGetMAC(const char *ifname,
|
||||
virMacAddr *macaddr)
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) G_GNUC_WARN_UNUSED_RESULT;
|
||||
|
||||
int virNetDevReplaceMacAddress(const char *linkdev,
|
||||
const virMacAddr *macaddress,
|
||||
const char *stateDir)
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3)
|
||||
G_GNUC_WARN_UNUSED_RESULT;
|
||||
|
||||
int virNetDevRestoreMacAddress(const char *linkdev,
|
||||
const char *stateDir)
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) G_GNUC_WARN_UNUSED_RESULT;
|
||||
|
||||
int virNetDevSetCoalesce(const char *ifname,
|
||||
virNetDevCoalesce *coalesce,
|
||||
bool update)
|
||||
|
@ -39,14 +39,6 @@
|
||||
|
||||
#define IS_CT(def) (def->os.type == VIR_DOMAIN_OSTYPE_EXE)
|
||||
|
||||
#define vzDomNotFoundError(domain) \
|
||||
do { \
|
||||
char uuidstr[VIR_UUID_STRING_BUFLEN]; \
|
||||
virUUIDFormat(domain->uuid, uuidstr); \
|
||||
virReportError(VIR_ERR_NO_DOMAIN, \
|
||||
_("no domain with matching uuid '%1$s'"), uuidstr); \
|
||||
} while (0)
|
||||
|
||||
#define PARALLELS_DOMAIN_ROUTED_NETWORK_NAME "host-routed"
|
||||
#define VIRTUOZZO_VER_7 ((unsigned long)7000000)
|
||||
|
||||
|
@ -126,9 +126,6 @@ typedef struct _testQemuInfo testQemuInfo;
|
||||
void testQemuInfoFree(testQemuInfo *info);
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(testQemuInfo, testQemuInfoFree);
|
||||
|
||||
virDomainXMLOption *testQemuXMLConfInit(void);
|
||||
|
||||
|
||||
virQEMUCaps *qemuTestParseCapabilitiesArch(virArch arch,
|
||||
const char *capsFile);
|
||||
virCPUDef *qemuTestGetCPUDef(qemuTestCPUDef d);
|
||||
|
Loading…
Reference in New Issue
Block a user