nexus: Refactor some of the create/remove network path and add code for
retrieving network lists from supplicant
nexus: Rework properties
nexus: Implement wifi network enable/disable and add some error checking
nexus: Add some TODOs
nexus: Whitespace cleanup
nexus: Add bindings between controllers and network interfaces
nexus: Add properties for InterfaceConfig
nexus: Fix a few conversion bugs in InterfaceConfig
Signed-off-by: San Mehat <san@google.com>
diff --git a/nexus/LoopController.cpp b/nexus/LoopController.cpp
index 400d279..a86202a 100644
--- a/nexus/LoopController.cpp
+++ b/nexus/LoopController.cpp
@@ -13,20 +13,21 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
#include <errno.h>
#include "LoopController.h"
+#include "PropertyManager.h"
-LoopController::LoopController() :
- Controller("LOOP", "loop") {
+LoopController::LoopController(PropertyManager *propmngr) :
+ Controller("LOOP", propmngr) {
}
-int LoopController::enable() {
- errno = ENOSYS;
- return -1;
+int LoopController::set(const char *name, const char *value) {
+ return Controller::set(name, value);
}
-int LoopController::disable() {
- errno = ENOSYS;
- return -1;
+const char *LoopController::get(const char *name, char *buffer, size_t maxsize) {
+ return Controller::get(name, buffer, maxsize);
}
+