search for: dbus_error

Displaying 7 results from an estimated 7 matches for "dbus_error".

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 19
1
[PATCH matahari] Replaces the existing HAL code for ProcessorAgent with udev.
...tream> #include <pcre.h> -#include "hal.h" -#include "processors.h" +// TODO remove this wrapper once rhbz#583747 is fixed +extern "C" { +#include <libudev.h> +} using namespace std; namespace _qmf = qmf::com::redhat::matahari; -extern DBusError dbus_error; - void ProcessorsAgent::setup(ManagementAgent* agent, Manageable* parent) { @@ -43,17 +37,79 @@ ProcessorsAgent::setup(ManagementAgent* agent, Manageable* parent) management_object = new _qmf::Processors(agent, this, parent); agent->addObject(management_object); - LibHalContext* con...
2010 Mar 15
0
[PATCH] Updated the list of ignored files and fixed whitespace issues.
...ee 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: %s : %s\n", dbus_error.name, dbus_error.message); @@ -75,9 +72,9 @@ char* get_uuid(LibHalContext *hal_ctx) int type = libh...
2010 Mar 16
0
[PATCH] Added the new Processors agent.
...gt; + +#include <hal/libhal.h> + +#include <pcre.h> + +#include "hal.h" +#include "processors.h" + +#include "qmf/com/redhat/matahari/ArgsProcessorsGet_load_average.h" + +using namespace std; +namespace _qmf = qmf::com::redhat::matahari; + +extern DBusError dbus_error; + +void +ProcessorsAgent::setup(ManagementAgent* agent) +{ + // setup the management object + management_object = new _qmf::Processors(agent, this); + agent->addObject(management_object); + + LibHalContext* context = get_hal_ctx(); + + int num_results; + char** processors = libhal_find_de...
2010 Mar 22
1
Small change and resend...
This patch includes one small change: the Processors::get_load_average() method is now const since it does not change the object's state.
2010 Mar 22
1
Resend with loadavg as a statistic...
After some feedback from Slow, mainly about the load_average API being a method rather than an ongoing statistic. So I've converted the code over to instead update the load average statistic on a regular basis.
2010 Apr 26
0
[PATCH matahari] Created the NetworkDevice agent.
...hat/matahari/NIC.h" -#include "qmf/com/redhat/matahari/ArgsNICIdentify_nic.h" - -using namespace qpid::management; -using namespace std; - -using qpid::management::Manageable; - -namespace _qmf = qmf::com::redhat::matahari; - -extern DBusConnection *dbus_connection; -extern DBusError dbus_error; - -ostream &operator<<(ostream& output, const NICWrapper& nic) { - output << "NIC" << endl; - output << "Interface Name: " << nic.interfaceName << endl; - output << "MAC Address: " << nic.macaddr &lt...