Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6316406ybh; Wed, 7 Aug 2019 21:47:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzKSICFg707tBD6VyXDm12r7HckPmDOxer+XzABNK592XjvbUbTCiobeA/7mZrCVrZoOHbH X-Received: by 2002:a17:90a:8b98:: with SMTP id z24mr1987383pjn.77.1565239678396; Wed, 07 Aug 2019 21:47:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565239678; cv=none; d=google.com; s=arc-20160816; b=cu99IusD9gp2SsgxZPkdAsuR8fKwbINQMuc2llSOgsWtCdiz4MJpPkX+m4/wfGQmXC aUAnC/RZZeaCXAkICaC4gqPA7KtuoXeMY4FiQqiei2N1Q0TpQJPYmF+JYwt91PxajwAp L32bL8THSA7eFfOnYovN1qSZs45XG/n0W15SrVbt3vkXJvik28zKn2ib9Ocxq3Gel21F VZExT/PPGxxYqZRWVLQsSIyR/c2m+J+oB4RTVvYynYFNJkezDfOu6aK5/+cjNNSoiYuy xlE316bf4lRFV5D8v+J/JEvyMWmD8RSYmJkarvN+phWaEPcsggjmHtUX2I7KFaHKzKSR P5gg== 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=GFYeThTGpBComCcs+h8nwqJ4mvKESHmy4ldrBREnmIk=; b=rVRLdjAhWELRFI9759sOleD7tkxYHBvJDXXEpVzwcrZWGZOAOqr0QlUbk939DSa60H LPY5fPqz65swnHTu9+mgH+WHx0N9BmlHPyQ/DkXKsvMH0hXxwtM7F0P1yfxVsJcF+cVS 6UaTJ3p8UwQ8KOwH+Xjzf5Hhu+DwukN9CCA9GBMOctve+C9vZz4Tw8VJkg0Qpd0jbtcV 8P/inZWWRrNQCoJG0GPyz1QCz329cBy1kf09Nh4JazKlm65OaVJqCky4AzCRJaUc7ymU F+FKjvDwyELGZCQoWd2sqlGHh/5aULJsaE9RB7MblgEagy3JfHHUXKb9vhFUHDtPDwLl Xdiw== 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 l70si51004372pge.446.2019.08.07.21.47.28; Wed, 07 Aug 2019 21:47:58 -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 S1725868AbfHHEqf (ORCPT + 99 others); Thu, 8 Aug 2019 00:46:35 -0400 Received: from mga07.intel.com ([134.134.136.100]:10619 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725446AbfHHEqf (ORCPT ); Thu, 8 Aug 2019 00:46:35 -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 orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Aug 2019 21:46:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,360,1559545200"; d="scan'208";a="182484282" Received: from ingas-nuc1.sea.intel.com ([10.255.95.214]) by FMSMGA003.fm.intel.com with ESMTP; 07 Aug 2019 21:46:34 -0700 From: Inga Stotland To: linux-bluetooth@vger.kernel.org Cc: luiz.dentz@gmail.com, Inga Stotland Subject: [PATCH BlueZ 0/1] ELL based mainloop Date: Wed, 7 Aug 2019 21:46:32 -0700 Message-Id: <20190808044633.29515-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 This patch addresses a need to be able to use common mainloop for the ell-based apps that desire to use common bluetooth fuctionality (e.g., bt_shell). A bit awkward callback handling there is due to the discrepancy in the arg type for signo (signal number) in: typedef void (*mainloop_signal_func) (int signum, void *user_data) and 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 | 13 +++- src/shared/mainloop-ell.c | 129 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 139 insertions(+), 3 deletions(-) create mode 100644 src/shared/mainloop-ell.c -- 2.21.0