Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2371433ybl; Sun, 11 Aug 2019 00:02:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFipP5sSuTdQV7Odi3ujmtXMPrbr16aPO2V7uZzU2LMLSJehgIXSWjthhRb3g8+O2ogr+X X-Received: by 2002:a17:902:441:: with SMTP id 59mr19234352ple.62.1565506944850; Sun, 11 Aug 2019 00:02:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565506944; cv=none; d=google.com; s=arc-20160816; b=A7aUcWvFvbBdRG0AByMIJ1SCP1r/HVBQh+jb/s5C7QOZ/MGDTpurrlTNkWDtdOGTmj pBXmCX9/OobzvHI6T3ufakkwu2/OQCcCuuKZ0YAV0VwDGU5NDlmyy+ftPUYwkAoecrDG jhDjoxSrTd7rcRqr3Aercv/P9mFxhDwWwpnh3imhdQaNJwKI2yXt1wt6wnkDCZYggm3k /IbZFxZqxXBue+tkw4W0/gkkYlJrqQxNf7vkqhUZUzVcfphPtBR4ceBBmrCUHMYiIrv4 E4l7IG+RxLIoOfmHSe9wT6HPqlfVv2w18VzjUiV9gU81QriWDlRPcUgFSsuUq56oJINY GASA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=CaNzxiIqySEWfBdU3VqVQ47GMEW8h8Yrf184RiJneDg=; b=afk2qk4s/m3PudeuryJ7ylEiMVwZn8odng2RtEb01JNY4nUNolqYmBJqqqaTeFZ4S1 9RdmKLls+wLr6FfmiEri52Lhk0b2ZhkT5+QAvmRC0UGNZLyaRGUTy38x/TIxuw2phW5E 7SAO7g8pOGb8Hp7VxHi5II9nwF5Z+wyPSkbt6pP3D8lQiBdE6eqyMpWX1FR3xn/RKcmW Xp+eHAJ3J4NiHG4lnhxsMv3UZOttQ70N7jPu7frWPGAvJ1GK3h0h0JV7RA38gs+SzIj5 gF2qQxfH91eeb/f6UpXjMAz11XI3EkFNQ0xl8eO6GDO7iJcgXruL0FR0HCYTf6xe+OTD NP3Q== 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 a6si54032497pla.259.2019.08.11.00.01.48; Sun, 11 Aug 2019 00:02:24 -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 S1725826AbfHKHBp (ORCPT + 99 others); Sun, 11 Aug 2019 03:01:45 -0400 Received: from mga03.intel.com ([134.134.136.65]:18129 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725813AbfHKHBp (ORCPT ); Sun, 11 Aug 2019 03:01:45 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Aug 2019 00:00:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,372,1559545200"; d="scan'208";a="183280806" Received: from ingas-nuc1.sea.intel.com ([10.254.104.35]) by FMSMGA003.fm.intel.com with ESMTP; 11 Aug 2019 00:00:47 -0700 From: Inga Stotland To: linux-bluetooth@vger.kernel.org Cc: luiz.dentz@gmail.com, Inga Stotland Subject: [PATCH BlueZ 0/1 v3] ELL based mainloop Date: Sun, 11 Aug 2019 00:00:44 -0700 Message-Id: <20190811070045.15406-1-inga.stotland@intel.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org + timeout-ell.c 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). Note: A bit awkward callback handling there is due to the discrepancy in the arg type for signo (signal number). src/shared/mainloop.h: typedef void (*mainloop_signal_func) (int signum, void *user_data) and ell/main.h: typedef void (*l_main_signal_cb_t) (uint32_t signo, void *user_data) 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. Inga Stotland (1): shared/mainloop: Add ell-based mainloop implementation 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 -- 2.21.0