Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1828773ybn; Thu, 26 Sep 2019 02:52:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOygolK2jUaMyfunJDRKR7pK0OuCTTMmTMvbdSGTiOel81FqCnJ70SBiQ4/nbFx7CzBKDr X-Received: by 2002:a17:906:7a0d:: with SMTP id d13mr2249887ejo.242.1569491548882; Thu, 26 Sep 2019 02:52:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569491548; cv=none; d=google.com; s=arc-20160816; b=dZfg4oatlDCeswNePss4McUnI0q6l8AvujblQZ3686REhGTcu/U/doIVMc8JiQSjTm EII/c9KkZ0kx8kwgv7/Y9ieBkvBCEQt70Pl7PR9TO957uhjBsDHjW20osSWy+Yx+Qw5y iOyfUV9FCocEI3VfV34GcsZCk9q1jJucSyJjT0PIijUCugmTgXVPHu84h3sH+CEVBwFQ Bxxw2zorXqPXJj/RYNqNkh3V1L+INojJ5A47SAOHjaYU3yamZLfq9k4JWJ1nKAi2oHd0 wq1u3DJd4mpZ9X8N5ksjH8Ve4uHDSRXnwd50DqDpKx3b/AsvN5y0Bd6I3R31M/B4YIIC raHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=bksIrLXEGo9mSZaGBZRxCrtAusuraQGAtGRdRGV8/ZU=; b=cWBzpQwCXr65RMeXXWO8MqnvESzDu2z7Lb1dJH1AIdUiTDVpHBydpus7C+yjSCeF8j FU7ZmbMKq9tIWIemj5pbenyza4UoHi26L/0Kg0mCZUsh8rev6uI1IfdEMpMVDKiB5niV Spaqt9PS4AhLs03EsteoXIsjax29pZ2GANwp4vwUp6L8zhKQOipCmPW/MbsgjG8/B9aZ HyzB5HhERiDVeoC3+ErKZwczMD7V/VLVHHDm9BQDBbkFI//3wGQXvXyXzUcihqoKfTKj 6uBKhbgrepa6J4lLqG7F4hJJXHNZUCkLRWlZqr/K3mKetTAoY0mtKwFwAGIPMz+AC/62 /rOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a2si965854edc.321.2019.09.26.02.52.04; Thu, 26 Sep 2019 02:52:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440013AbfIYSTz (ORCPT + 99 others); Wed, 25 Sep 2019 14:19:55 -0400 Received: from mga11.intel.com ([192.55.52.93]:14386 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437692AbfIYSTz (ORCPT ); Wed, 25 Sep 2019 14:19:55 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Sep 2019 11:19:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,549,1559545200"; d="p7s'?scan'208";a="179892053" Received: from orsmsx110.amr.corp.intel.com ([10.22.240.8]) by orsmga007.jf.intel.com with ESMTP; 25 Sep 2019 11:19:53 -0700 Received: from orsmsx103.amr.corp.intel.com ([169.254.5.5]) by ORSMSX110.amr.corp.intel.com ([169.254.10.139]) with mapi id 14.03.0439.000; Wed, 25 Sep 2019 11:19:53 -0700 From: "Stotland, Inga" To: "linux-bluetooth@vger.kernel.org" CC: "luiz.dentz@gmail.com" , "johan.hedberg@gmail.com" Subject: Re: [PATCH BlueZ 0/1 v3] ELL based mainloop Thread-Topic: [PATCH BlueZ 0/1 v3] ELL based mainloop Thread-Index: AQHVUBKMWsVeokbEp0mGc3wuJuKLyKc9cNkA Date: Wed, 25 Sep 2019 18:19:53 +0000 Message-ID: References: <20190811070045.15406-1-inga.stotland@intel.com> In-Reply-To: <20190811070045.15406-1-inga.stotland@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [10.254.12.163] Content-Type: multipart/signed; micalg=sha-1; protocol="application/x-pkcs7-signature"; boundary="=-5LIT3fi4jS4vd0g6W8cz" MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org --=-5LIT3fi4jS4vd0g6W8cz Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ping On Sun, 2019-08-11 at 00:00 -0700, Inga Stotland wrote: > + timeout-ell.c >=20 > This patch addresses a need to enable using common mainloop for the > ell-based apps that desire to use common bluetooth fuctionality > (e.g., bt_shell). >=20 > Note: A bit awkward callback handling there is due to the discrepancy > in the arg type for signo (signal number). >=20 > src/shared/mainloop.h: > typedef void (*mainloop_signal_func) (int signum, void *user_data) >=20 > and ell/main.h: >=20 > typedef void (*l_main_signal_cb_t) (uint32_t signo, void *user_data) >=20 > My guess is that ell derives the unsigned int type from > , > where ssi_signo is defined as uint32_t. BlueZ is probably following > the > standard Linux signal handling, where signal is represented as an > int.=20 >=20 > Inga Stotland (1): > shared/mainloop: Add ell-based mainloop implementation >=20 > Makefile.am | 11 +++- > src/shared/mainloop-ell.c | 126 > ++++++++++++++++++++++++++++++++++++++ > src/shared/timeout-ell.c | 72 ++++++++++++++++++++++ > 3 files changed, 206 insertions(+), 3 deletions(-) > create mode 100644 src/shared/mainloop-ell.c > create mode 100644 src/shared/timeout-ell.c >=20 --=-5LIT3fi4jS4vd0g6W8cz Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIKbDCCBOsw ggPToAMCAQICEDabxALowUBS+21KC0JI8fcwDQYJKoZIhvcNAQEFBQAwbzELMAkGA1UEBhMCU0Ux FDASBgNVBAoTC0FkZFRydXN0IEFCMSYwJAYDVQQLEx1BZGRUcnVzdCBFeHRlcm5hbCBUVFAgTmV0 d29yazEiMCAGA1UEAxMZQWRkVHJ1c3QgRXh0ZXJuYWwgQ0EgUm9vdDAeFw0xMzEyMTEwMDAwMDBa Fw0yMDA1MzAxMDQ4MzhaMHkxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEUMBIGA1UEBxMLU2Fu dGEgQ2xhcmExGjAYBgNVBAoTEUludGVsIENvcnBvcmF0aW9uMSswKQYDVQQDEyJJbnRlbCBFeHRl cm5hbCBCYXNpYyBJc3N1aW5nIENBIDRCMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA yzuW/y/g0bznz8BD48M94luFzqHaqY9yGN9H/W0J7hOVBpl0rTQJ6kZ7z7hyDb9kf2UW4ZU25alC i+q5m6NwHg+z9pcN7bQ84SSBueaYF7cXlAg7z3XyZbzSEYP7raeuWRf5fYvYzq8/uI7VNR8o/43w PtDP10YDdO/0J5xrHxnC/9/aU+wTFSVsPqxsd7C58mnu7G4VRJ0n9PG4SfmYNC0h/5fLWuOWhxAv 6MuiK7MmvTPHLMclULgJqVSqG1MbBs0FbzoRHne4Cx0w6rtzPTrzo+bTRqhruaU18lQkzBk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