Skip to content

Commit

Permalink
feat: more & restructured bindings, epoll event loop, linux_can CAN T…
Browse files Browse the repository at this point in the history
…DC dataclasses

bindings:
- add common isolate based epoll event listener
  in bindings
- add bindings for eventfd()
- move function macro definitions into `libc_macros.dart`
- move functions into `libc_functions.dart`
- move custom and exported structs into `libc_structs.dart`

linux_can:
- add dataclasses for CAN TDC
  • Loading branch information
ardera committed Apr 26, 2023
1 parent f73e08b commit 088922b
Show file tree
Hide file tree
Showing 14 changed files with 2,168 additions and 1,169 deletions.
12 changes: 10 additions & 2 deletions packages/_ardera_common_libc_bindings/bindingsgen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ffigen-options:
- 'sys/types.h'
- 'sys/stat.h'
- 'sys/epoll.h'
- 'sys/eventfd.h'

# flutter_gpiod
- 'linux/gpio.h'
Expand Down Expand Up @@ -39,6 +40,7 @@ ffigen-options:
- open
- close
- read
- eventfd

# linux_serial
- cfgetispeed
Expand Down Expand Up @@ -166,8 +168,14 @@ ffigen-options:
include:
# open flags
- 'O_.*'
# errno error codes & EPOLL operations
- 'E.*'
# errno error codes
- 'E[^_]*'
# epoll operations
- 'EPOLL_.*'
# epoll flags
- 'EPOLL[^_]*'
# eventfd flags
- 'EFD_.*'

# flutter_gpiod
- 'GPIO.*'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export 'src/epoll_listener.dart';
Loading

0 comments on commit 088922b

Please sign in to comment.