diff options
author | MichaĆ Lowas-Rzechonek <michal.lowas-rzechonek@silvair.com> | 2019-06-24 09:32:28 +0200 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2019-06-24 09:04:44 -0700 |
commit | 12b984d1d4d47a8fd5bc8455d586bb208b804ebf (patch) | |
tree | 9ea739eea2eeffafcdfd5186e3f9d8f76ed2aae6 /mesh/mesh-io-api.h | |
parent | ee70e5e070505e7caef66e9446ac586c378bde0f (diff) | |
download | bluez-12b984d1d4d47a8fd5bc8455d586bb208b804ebf.tar.gz |
mesh: Move HCI handling to mesh-io-generic
This patch separates 'mesh' module from 'mesh_io', particularly
regarding configuration and initialization.
Main code is no longer aware of MGMT and HCI usage - querying available
HCI interfaces now happens in mesh-io-generic.
MGMT code is now extracted into mesh-mgmt module, which mesh-io-generic
uses to query interfaces.
Diffstat (limited to 'mesh/mesh-io-api.h')
-rw-r--r-- | mesh/mesh-io-api.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mesh/mesh-io-api.h b/mesh/mesh-io-api.h index acf12445d..4cdf1f80a 100644 --- a/mesh/mesh-io-api.h +++ b/mesh/mesh-io-api.h @@ -19,7 +19,7 @@ struct mesh_io_private; -typedef bool (*mesh_io_init_t)(uint16_t index, struct mesh_io *io); +typedef bool (*mesh_io_init_t)(struct mesh_io *io, void *opts); typedef bool (*mesh_io_destroy_t)(struct mesh_io *io); typedef bool (*mesh_io_caps_t)(struct mesh_io *io, struct mesh_io_caps *caps); typedef bool (*mesh_io_send_t)(struct mesh_io *io, @@ -47,7 +47,6 @@ struct mesh_io_api { struct mesh_io { enum mesh_io_type type; - uint16_t index; const struct mesh_io_api *api; struct mesh_io_private *pvt; }; |