search for: hal_ctx

Displaying 5 results from an estimated 5 matches for "hal_ctx".

2010 Apr 15
1
[PATCH matahari] Refactored the Host agent.
...nics.begin(); - iter!= nics.end(); - iter++) { - output << **iter << endl; + management_object = new _qmf::Host(agent, this); + agent->addObject(management_object); + + // discover the aspects of the host + processors.setup(agent, this); + + LibHalContext *hal_ctx; + int ret; + + // Get our HAL Context or die trying + hal_ctx = get_hal_ctx(); + if (!hal_ctx) + throw runtime_error("Unable to get HAL Context Structure."); + + try { + NICWrapper::fillNICInfo(this->nics, agent, hal_ctx); + + // Host UUID + char *uuid_c = get_uuid(ha...
2010 Mar 15
0
[PATCH] Updated the list of ignored files and fixed whitespace issues.
...d Hat, Inc. * Written by Darryl L. Pierce <dpierce at redhat.com> - * Modified by Arjun Roy <arroy at redhat.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -48,7 +45,7 @@ get_hal_ctx(void) fprintf(stderr, "Failed to initial libhal context: %s : %s\n", dbus_error.name, dbus_error.message); - } + } } else { fprintf(stderr, "Unable to connect to system bus...
2010 Apr 26
2
Patch supercedes previous patch...
In looking at the code I realized that the last of the HAL depenencies were removed with this patch. So, I'm pushing an updated patch that contains none of the HAL code in it.
2010 Apr 26
0
[PATCH matahari] Created the NetworkDevice agent.
...>set_macaddr(macaddr); - mgmt_object->set_ipaddr(ipaddr); - mgmt_object->set_netmask(netmask); - mgmt_object->set_broadcast(broadcast); - mgmt_object->set_bandwidth(bandwidth); -} - -NICWrapper *NICWrapper::getNIC(ManagementAgent *agent, - LibHalContext *hal_ctx, - char *nic_handle) -{ - // Used to get the data - char *macaddr_c; - char *interface_c; - int sock, ret; - struct ifreq ifr; - struct ethtool_cmd ecmd; - - // The data that we care about - NICWrapper *nic = NULL; - string macaddr; - string interface...
2010 Apr 19
1
[PATCH matahari] Removes all code for the previous CPUWrapper class.
...r != nics.end();) { delete (*iter); @@ -169,7 +146,6 @@ HostWrapper* HostWrapper::setupHostWrapper(ManagementAgent *agent) HostWrapper *host = new HostWrapper(); try { - CPUWrapper::fillCPUInfo(host->cpus, agent); NICWrapper::fillNICInfo(host->nics, agent, hal_ctx); // Host UUID diff --git a/src/host.h b/src/host.h index 148c91f..bdf43fa 100644 --- a/src/host.h +++ b/src/host.h @@ -23,7 +23,6 @@ #include "qmf/com/redhat/matahari/Host.h" -#include "cpu.h" #include "nic.h" #include "processors.h" @@ -...