Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3527595ybn; Fri, 27 Sep 2019 07:39:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwX3TcZsQpn8GPVaTfHMOzPbHopY3YqbspaHlJy24JN+B6cKqazHmubVsIvmP9HKfDwbmN7 X-Received: by 2002:a17:906:1e57:: with SMTP id i23mr8154013ejj.204.1569595187205; Fri, 27 Sep 2019 07:39:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569595187; cv=none; d=google.com; s=arc-20160816; b=s5BiMhOIhmM5O7/V7gPc9N01dD9oSujml6Pk/CuiWbMMoISWfsMFPo8w50we8SvIV4 V381EmtZ7ZZ/zlKwyU/Moda9LTM/ItaFJ6omFybwdBdlzlIlwBC9mEy1YFh3F4OEvlT2 vtaZfgr3Ldm14yHzVRYahO6H8z6iJs90MUh3SDkGYma4V64oySuCT88ooUlrohejtogQ Xlq6NfWbXHRHido9FjbQ6l+ZvoJJBohVUWHHzrKVJBwvXb1HzYx3EZ/+PEepTQIzHZZh UFguO0ER6lMfoKEjK1eLWI7ncqrCYF6qDGEnQW+0ZzVeQvL4a9OUMexKP/Y5EhzFFPih llpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=wWSROEV8RW0ondujQ3rdPkoiWybrO+/xVEfWa704mV8=; b=YJ+rCAotyXVGvrmuw+QmuLxPE4Idw4GcjRqiQHS+1+Td/YDtOzviegw8sCj61GgU0e Zr5pdfRGizBLCRHNNBwfwvOgoX7zbhIkIBUSOZod3k8o2DLR0DZslEezg0m9Au8hwzZy pa8rLviPr3adZXqOMegE565q5PCeT90SWZb93OJDLC80/GhoZGujVoVNaL/kihTCTuA7 sEtMwGo2TSUL/gWHBV7MB8Agd4jCZ6RMJ2I8PEY+bKUgWOsxpWIUaGtT2LJJnA/RL3CS DapDinoTb8GPzrnW7zhGK/6CRoAVUN4/YTtz3fhym2KSAbeC5Du+c9eNbnlZEkwuBWTy TuXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BsngVRIL; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s7si1730470edd.290.2019.09.27.07.39.08; Fri, 27 Sep 2019 07:39:47 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BsngVRIL; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727289AbfI0OjE (ORCPT + 99 others); Fri, 27 Sep 2019 10:39:04 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:38703 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726926AbfI0OjD (ORCPT ); Fri, 27 Sep 2019 10:39:03 -0400 Received: by mail-oi1-f196.google.com with SMTP id m16so5397921oic.5 for ; Fri, 27 Sep 2019 07:39:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wWSROEV8RW0ondujQ3rdPkoiWybrO+/xVEfWa704mV8=; b=BsngVRIL7QkbuP6Pun+NoxAzuLOKqv3OAVqenjaNDhxWqyZuzyEKXq5QOwscu6DMqB Cs53kIKEDXpjHhj568Im7hQv7NPDVnKUlx1aeCafQcwauzElL1mSjn0zaCRo9mzfp/Ah dK/KUV5FxpUuUiNB4jFb/FpfCrPmVr2FT+30avZwItV9l5Th9sZqE2ffk3EBFNqNWMa2 o1hRTbxa8f3wRfsjeqhcaZVVEK0wuttVp3jeB0M/wgYxy003MvyqsPL0v5lcJgp0ffhu xKkQO3xJ627ulSsWQvp5xvHVs+auoMpd9riOThMa6O5+RGR6pwqEeVyYu8/McuLKB1ZD j9yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wWSROEV8RW0ondujQ3rdPkoiWybrO+/xVEfWa704mV8=; b=eX4qlW3fp7AnFf0lgFWQB5rPuUwDfjRlqWo365jWW/AF7Gm0UM2o5G37PT7A7oGI36 DiCP7jsLs8MInHzAh3uZ/msUOvb5IswMzwja2pTh89e20ew3SJ74hPh0b2cXViXREW0n O4X5qESvuZhqCabNJF39Rwbe14ou8uVsfWQ6hir9PAbIJm3pzY4LCWMnGtzuzxLBmkXX QgYTXclSGE6Bm0kwU9sohi0m6Te7On5piHG0Mc0xeUk0rRe9dzcxrdelOR1G3osZyH4R /c9Hr1p+em29xeLofBOxqkTVDHhgmROQvopHb8DhWxifi6vj1se3jzmlZJJNxkUqqGb2 H3Hg== X-Gm-Message-State: APjAAAW1BFJTtBI1kYMoeGEYfPVIFk6nJtzr45omI3af+Xe7yp7vGYcl KLOgA+eSqIgh2xUrwpagjdDRZ6DzBCTTHmDg1nB4xYNT X-Received: by 2002:a05:6808:ab9:: with SMTP id r25mr6972714oij.8.1569595142800; Fri, 27 Sep 2019 07:39:02 -0700 (PDT) MIME-Version: 1.0 References: <20190811070045.15406-1-inga.stotland@intel.com> In-Reply-To: From: Luiz Augusto von Dentz Date: Fri, 27 Sep 2019 17:38:49 +0300 Message-ID: Subject: Re: [PATCH BlueZ 0/1 v3] ELL based mainloop To: "Stotland, Inga" Cc: "linux-bluetooth@vger.kernel.org" , "johan.hedberg@gmail.com" Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Inga, On Wed, Sep 25, 2019 at 9:19 PM Stotland, Inga wrote: > > Ping > > On Sun, 2019-08-11 at 00:00 -0700, Inga Stotland wrote: > > + 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 > > Applied, thanks. -- Luiz Augusto von Dentz