diff options
author | Inga Stotland <inga.stotland@intel.com> | 2019-05-14 15:54:07 -0700 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2019-05-15 09:12:38 -0700 |
commit | f66e29d5662dabfa8f361cce5a453514f30a27fd (patch) | |
tree | 53ce3eae06e777a21e64797afa88d28f49e1b941 /mesh/dbus.c | |
parent | 0af87c6c6ca335ccc1f80de99096d40f7872c388 (diff) | |
download | bluez-f66e29d5662dabfa8f361cce5a453514f30a27fd.tar.gz |
mesh: Add skeleton for org.bluez.mesh.Management1 interface
This adds bare-bones imlementation of methods on org.bluez.mesh.Management1
interface.
Diffstat (limited to 'mesh/dbus.c')
-rw-r--r-- | mesh/dbus.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/mesh/dbus.c b/mesh/dbus.c index 3b2e2aa81..083a7f77e 100644 --- a/mesh/dbus.c +++ b/mesh/dbus.c @@ -2,7 +2,7 @@ * * BlueZ - Bluetooth protocol stack for Linux * - * Copyright (C) 2018 Intel Corporation. All rights reserved. + * Copyright (C) 2018-2019 Intel Corporation. All rights reserved. * * * This library is free software; you can redistribute it and/or @@ -33,10 +33,9 @@ #include "mesh/mesh-defs.h" #include "mesh/mesh-io.h" #include "mesh/node.h" +#include "mesh/manager.h" #include "mesh/net.h" -#include "mesh/storage.h" #include "mesh/cfgmod.h" -#include "mesh/model.h" #include "mesh/mesh.h" #include "mesh/error.h" #include "mesh/dbus.h" @@ -62,7 +61,8 @@ static struct error_entry const error_table[] = { ERROR_INTERFACE ".InProgress", "Already in progress"}, { ERROR_INTERFACE ".AlreadyExists", "Already exists"}, { ERROR_INTERFACE ".DoesNotExist", "Does not exist"}, - { ERROR_INTERFACE ".Canceled", "Operation canceled"} + { ERROR_INTERFACE ".Canceled", "Operation canceled"}, + { ERROR_INTERFACE ".NotImplemented", "Not implemented"}, }; struct l_dbus_message *dbus_error(struct l_dbus_message *msg, int err, @@ -99,6 +99,10 @@ bool dbus_init(struct l_dbus *bus) if (!node_dbus_init(bus)) return false; + /* Management interface */ + if (!manager_dbus_init(bus)) + return false; + dbus = bus; return true; |