/*
* libvirtd-config.c: daemon start of day, guest process & i/o management
*
- * Copyright (C) 2006-2012 Red Hat, Inc.
+ * Copyright (C) 2006-2012, 2014 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange
*
* This library is free software; you can redistribute it and/or
} while (0)
-static int remoteConfigGetAuth(virConfPtr conf, const char *key, int *auth, const char *filename) {
+static int
+remoteConfigGetAuth(virConfPtr conf,
+ const char *key,
+ int *auth,
+ const char *filename)
+{
virConfValuePtr p;
p = virConfGetValue(conf, key);
<pre>
int runhook(const char *drvstr, const char *id,
const char *opstr, const char *subopstr,
- const char *extra) {
+ const char *extra)
+{
int ret;
char *path;
virCommandPtr cmd;
* extract the domain 0 information
*/
static void
-getDomainInfo(int id) {
+getDomainInfo(int id)
+{
virConnectPtr conn = NULL; /* the hypervisor connection */
virDomainPtr dom = NULL; /* the domain being checked */
virDomainInfo info; /* the information being fetched */
virConnectClose(conn);
}
-int main() {
-
+int main()
+{
getDomainInfo(0);
return 0;
static int
bhyveConnectGetMaxVcpus(virConnectPtr conn ATTRIBUTE_UNUSED,
- const char *type) {
+ const char *type)
+{
if (virConnectGetMaxVcpusEnsureACL(conn) < 0)
return -1;
* interface_backend_netcf.c: backend driver methods to handle physical
* interface configuration using the netcf library.
*
- * Copyright (C) 2006-2013 Red Hat, Inc.
+ * Copyright (C) 2006-2014 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
return ret;
}
-static int netcfInterfaceUndefine(virInterfacePtr ifinfo) {
+static int netcfInterfaceUndefine(virInterfacePtr ifinfo)
+{
virNetcfDriverStatePtr driver = ifinfo->conn->interfacePrivateData;
struct netcf_if *iface = NULL;
virInterfaceDefPtr def = NULL;
.stateReload = netcfStateReload,
};
-int netcfIfaceRegister(void) {
+int netcfIfaceRegister(void)
+{
if (virRegisterInterfaceDriver(&interfaceDriver) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
_("failed to register netcf interface driver"));
/*
* interface_backend_udev.c: udev backend for virInterface
*
+ * Copyright (C) 2014 Red Hat, Inc.
* Copyright (C) 2012 Doug Goldstein <cardoe@cardoe.com>
*
* This library is free software; you can redistribute it and/or
};
int
-udevIfaceRegister(void) {
+udevIfaceRegister(void)
+{
if (virRegisterInterfaceDriver(&udevIfaceDriver) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
_("failed to register udev interface driver"));
/*
* interface_driver.c: loads the appropriate backend
*
+ * Copyright (C) 2014 Red Hat, Inc.
* Copyright (C) 2012 Doug Goldstein <cardoe@cardoe.com>
*
* This library is free software; you can redistribute it and/or
#include "interface_driver.h"
int
-interfaceRegister(void) {
+interfaceRegister(void)
+{
#ifdef WITH_NETCF
/* Attempt to load the netcf based backend first */
if (netcfIfaceRegister() == 0)
}
char *
-libxlDomainManagedSavePath(libxlDriverPrivatePtr driver, virDomainObjPtr vm) {
+libxlDomainManagedSavePath(libxlDriverPrivatePtr driver, virDomainObjPtr vm)
+{
char *ret;
libxlDriverConfigPtr cfg = libxlDriverConfigGet(driver);
/*
* node_device_driver.c: node device enumeration
*
- * Copyright (C) 2010-2013 Red Hat, Inc.
+ * Copyright (C) 2010-2014 Red Hat, Inc.
* Copyright (C) 2008 Virtual Iron Software, Inc.
* Copyright (C) 2008 David F. Lively
*
return ret;
}
-int nodedevRegister(void) {
+int nodedevRegister(void)
+{
#if defined(WITH_HAL) && defined(WITH_UDEV)
/* Register only one of these two - they conflict */
if (udevNodeRegister() == -1)
/*
* secret_driver.c: local driver for secret manipulation API
*
- * Copyright (C) 2009-2012 Red Hat, Inc.
+ * Copyright (C) 2009-2012, 2014 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
}
static int
-secretClose(virConnectPtr conn) {
+secretClose(virConnectPtr conn)
+{
conn->secretPrivateData = NULL;
return 0;
}
static int
secretConnectListAllSecrets(virConnectPtr conn,
virSecretPtr **secrets,
- unsigned int flags) {
+ unsigned int flags)
+{
virSecretDriverStatePtr driver = conn->secretPrivateData;
virSecretPtr *tmp_secrets = NULL;
int nsecrets = 0;
/*
- * Copyright (C) 2010-2013 Red Hat, Inc.
+ * Copyright (C) 2010-2014 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
return rc;
}
-static char *virSecurityStackGetMountOptions(virSecurityManagerPtr mgr ATTRIBUTE_UNUSED,
- virDomainDefPtr vm ATTRIBUTE_UNUSED) {
+static char *
+virSecurityStackGetMountOptions(virSecurityManagerPtr mgr ATTRIBUTE_UNUSED,
+ virDomainDefPtr vm ATTRIBUTE_UNUSED)
+{
return NULL;
}