Skip to content

ELL based mainloop

Inga Stotland linux-bluetooth 3 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest1 patch 2 repliesApplied
  2. v21 patch 0 repliesSuperseded
  3. v11 patch 0 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/1shared/mainloop: Add ell-based mainloop implementationMakefile.am src/shared/mainloop-ell.c src/shared/timeout-ell.c+206 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH BlueZ 0/1 v3] ELL based mainloop

+ 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 <sys/signalfd.h>, 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
Signature · 1 line
2.21.0