diff options
| author | Nick Moore <nick@zoic.org> | 2018-10-16 23:09:55 +1100 |
|---|---|---|
| committer | Nick Moore <nick@zoic.org> | 2018-10-16 23:09:55 +1100 |
| commit | 45974978efa7e81a5a2a46bfb9f8d3cf016b1cb4 (patch) | |
| tree | 8600c082d89015702f54f18d59e481f77ca6c2e0 /shared-module/network/__init__.h | |
| parent | a15f3361aa0182cbefe0aec7376ff56bdcb74aa4 (diff) | |
fixup
Diffstat (limited to 'shared-module/network/__init__.h')
| -rw-r--r-- | shared-module/network/__init__.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared-module/network/__init__.h b/shared-module/network/__init__.h index ce5b4e6d3..00a3c3957 100644 --- a/shared-module/network/__init__.h +++ b/shared-module/network/__init__.h @@ -61,6 +61,7 @@ typedef struct _mod_network_nic_type_t { int (*setsockopt)(struct _mod_network_socket_obj_t *socket, mp_uint_t level, mp_uint_t opt, const void *optval, mp_uint_t optlen, int *_errno); int (*settimeout)(struct _mod_network_socket_obj_t *socket, mp_uint_t timeout_ms, int *_errno); int (*ioctl)(struct _mod_network_socket_obj_t *socket, mp_uint_t request, mp_uint_t arg, int *_errno); + void (*timer_tick)(struct _mod_network_socket_obj_t *socket); } mod_network_nic_type_t; typedef struct _mod_network_socket_obj_t { @@ -82,6 +83,7 @@ extern const mod_network_nic_type_t mod_network_nic_type_cc3k; void network_module_init(void); void network_module_deinit(void); +void network_module_background(void); void network_module_register_nic(mp_obj_t nic); mp_obj_t network_module_find_nic(const uint8_t *ip); |
