Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1281549ybl; Sat, 10 Aug 2019 00:26:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxhCh9JR6CcQHrpArjbpak7nkwYqzb8VRDKxyBAc5Lm8w84AR0xmFEGGOe/mKAwSdLtqbEf X-Received: by 2002:a17:90a:ad86:: with SMTP id s6mr13492089pjq.42.1565422009545; Sat, 10 Aug 2019 00:26:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565422009; cv=none; d=google.com; s=arc-20160816; b=LseCvQKtCnu7iyh6T+vtiyNl4cVN/MSjGj8QiktIsXdPkuB2WtXgwn5ATlNF4uHzwY Sevewv4ebbSTwdSVE9uWFgPFxYwL0MTgUpcOh1XzEgS5SlGl4p04hkmeCbUjzwTh1ASD k5Nl3J7tqDwR6RcLlxm5lpZ4o9So6z+9p5kvYjYJe9bZbBGXrbLDhBKqQA7xlj4lKjIH NWs7Tq1SKnrro9l9rccrLzHSvTEMuI56CLETM1d9FT3OBcMhlHlOud9mF4MAOLf9fJUo cVqHYsOWkNk3b+bpmOXs7u+cuHSWiGgdrzpcyRFLMAJaNjQPeIKF1o13gCZY3qmUsg7r 9djQ== 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=/LBpWcQPJtJY3uF7BaVp5HlVK+kVksqMHAC51/oYJ7o=; b=tgrQLE7Sl7EWjZaEVh3Sbgj/3ag0Fn8wRy0mQ61zLd7yuPRyovl3OH37DlrmmfZRas a5I6V4LyzLgtYQg9kalcLtj/yXHlbbgLxoSE3ANQNSD9p7T4fB9oKRYtvcwPHKXq9hU/ oc9ZlxKiBEaFw7jRe9BsobXcONqarAZOukoRKE0jxRg4H+IEgJDg+S7N/xaB8g0xJg2Y 0ir1BxrkMayMeDCe5J7GPexclgskAhU3f3JTv1X03o14oVsIvuqqCXa9vJRWat7vZdcK EUYJOHEsFTatuK17NOXO9ds0K8mC6A468Gm3Xt+p4doeJEq6DCq8MhE68np+BAzgnno2 Yjag== 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 bb14si3090558pjb.66.2019.08.10.00.26.22; Sat, 10 Aug 2019 00:26:49 -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 S1725497AbfHJH0V (ORCPT + 99 others); Sat, 10 Aug 2019 03:26:21 -0400 Received: from mga18.intel.com ([134.134.136.126]:50837 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725468AbfHJH0V (ORCPT ); Sat, 10 Aug 2019 03:26:21 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Aug 2019 00:26:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,368,1559545200"; d="scan'208";a="169526254" Received: from ingas-nuc1.sea.intel.com ([10.251.24.184]) by orsmga008.jf.intel.com with ESMTP; 10 Aug 2019 00:26:20 -0700 From: Inga Stotland To: linux-bluetooth@vger.kernel.org Cc: luiz.dentz@gmail.com, Inga Stotland Subject: [PATCH BlueZ 0/1 v2] ELL based mainloop Date: Sat, 10 Aug 2019 00:26:18 -0700 Message-Id: <20190810072619.7714-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 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 | 129 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 137 insertions(+), 3 deletions(-) create mode 100644 src/shared/mainloop-ell.c -- 2.21.0