Skip to content

Commit

Permalink
WIP extmod/moduselect: Add userdata support for .register().
Browse files Browse the repository at this point in the history
Similar to support earlier added to unix port.

Change-Id: I2680b9f83fe1221f3f8c1f6bf06e17e0fb4a664b
  • Loading branch information
pfalcon committed Apr 30, 2019
1 parent 3807ac8 commit 762fc29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions extmod/moduselect.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@
typedef struct _poll_obj_t {
mp_obj_t obj;
mp_uint_t (*ioctl)(mp_obj_t obj, mp_uint_t request, uintptr_t arg, int *errcode);
mp_uint_t flags;
mp_uint_t flags_ret;
mp_obj_t userdata;
uint16_t flags;
uint16_t flags_ret;
} poll_obj_t;

STATIC void poll_map_add(mp_map_t *poll_map, const mp_obj_t *obj, mp_uint_t obj_len, mp_uint_t flags, bool or_flags) {
Expand Down

0 comments on commit 762fc29

Please sign in to comment.