This version of the patchset addresses Brian's comments. Thanks for the review! First patch has a few style/convention corrections. Second patch now introduces --io option, but leaves --index working as it used to. Michał Lowas-Rzechonek (2): mesh: Move HCI handling to mesh-io-generic mesh: Added --io option Makefile.mesh | 1 + mesh/main.c | 96 +++++++++++++++---- mesh/mesh-io-api.h | 3 +- mesh/mesh-io-generic.c | 63 ++++++++----- mesh/mesh-io.c | 15 ++- mesh/mesh-io.h | 2 +- mesh/mesh-mgmt.c | 204 +++++++++++++++++++++++++++++++++++++++++ mesh/mesh-mgmt.h | 23 +++++ mesh/mesh.c | 189 +++----------------------------------- mesh/mesh.h | 4 +- 10 files changed, 370 insertions(+), 230 deletions(-) create mode 100644 mesh/mesh-mgmt.c create mode 100644 mesh/mesh-mgmt.h -- 2.19.1