Return-Path: From: "Stotland, Inga" To: "luiz.dentz@gmail.com" CC: "linux-bluetooth@vger.kernel.org" Subject: Re: [PATCH BlueZ 0/1] Usage of bt_shell with ell Date: Tue, 3 Apr 2018 05:17:13 +0000 Message-ID: <1522732632.2908.2.camel@intel.com> References: <20180402023435.30430-1-inga.stotland@intel.com> In-Reply-To: Content-Type: multipart/signed; micalg=sha-1; protocol="application/x-pkcs7-signature"; boundary="=-aS2gnwDsqGbFKwWLdZMn" MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: --=-aS2gnwDsqGbFKwWLdZMn Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Luiz, On Mon, 2018-04-02 at 10:12 +0300, Luiz Augusto von Dentz wrote: > Hi Inga, >=20 > On Mon, Apr 2, 2018 at 5:34 AM, Inga Stotland m> wrote: > > For test code that relies on underlying ell-based implementation, I > > would > > like to use the menues and navigation features provided by bt_shell > > without starting glib's mainloop. > > The attached patch allows to do just that. Perhaps, this is not > > most elegant > > solution, but it seems to be less invasive. >=20 >=20 > It should be possible to create ell backend for mainloop/io, etc, > that > the shell uses, in fact btmgmt already do use a different mainloop > than glib. >=20 Right, it's not a glib mainloop. Anyway, after some digging around, figured it out how to interface ell-based io with bt_shell.=20 > > Inga Stotland (1): > > shared/shell: Add commands to allow shell usage with external > > mainloop > >=20 > > src/shared/shell.c | 42 ++++++++++++++++++++++++++++++++++++++++-- > > src/shared/shell.h | 3 +++ > > 2 files changed, 43 insertions(+), 2 deletions(-) > >=20 > > -- > > 2.14.3 > >=20 > > -- > > To unsubscribe from this list: send the line "unsubscribe linux- > > bluetooth" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html >=20 >=20 >=20 Inga --=-aS2gnwDsqGbFKwWLdZMn Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCA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