Displaying 3 results from an estimated 3 matches for "514ad20".
Did you mean:
51420
2010 Apr 21
1
[PATCH matahari] Created a new platform-abstraction layer named Platform.
...tform::_instance = 0;
+
+Platform*
+Platform::instance()
+{
+ // TODO this is where we decide which implementation to use
+ if(!_instance)
+ {
+ _instance = new LinuxPlatform;
+ }
+
+ return _instance;
+}
diff --git a/src/platform.h b/src/platform.h
new file mode 100644
index 0000000..514ad20
--- /dev/null
+++ b/src/platform.h
@@ -0,0 +1,62 @@
+#ifndef __PLATFORM_H
+#define __PLATFORM_H
+
+/* platform.h - Copyright (C) 2010 Red Hat, Inc.
+ * Written by Darryl L. Pierce <dpierce at redhat.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under...
2010 Apr 26
0
[PATCH matahari] Created the NetworkDevice agent.
...n macaddr; }
- const string &getIpaddr(void) { return ipaddr; }
- const string &getNetmask(void) { return netmask; }
- const string &getBroadcast(void) { return broadcast; }
- int getBandwidth(void) { return bandwidth; }
-};
diff --git a/src/platform.h b/src/platform.h
index 514ad20..54fbe37 100644
--- a/src/platform.h
+++ b/src/platform.h
@@ -21,6 +21,8 @@
*/
#include <string>
+#include <vector>
+#include "networkdevice.h"
using namespace std;
@@ -57,6 +59,9 @@ class Platform
// returns the load average for the platform
virtual double g...
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.