diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-21 18:27:58 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-21 18:27:58 +0200 |
| commit | 22e89e8a409703dc64fa23b3fdc6975ef5fd04f5 (patch) | |
| tree | ab5b0df555de1dc2690a5c95f2e865a2c86fab06 /src/net/inc | |
| parent | 8fd167bebf94605cd095212bacff39c98a43c480 (diff) | |
| download | jancity-22e89e8a409703dc64fa23b3fdc6975ef5fd04f5.tar.gz | |
net: Group events into struct
Diffstat (limited to 'src/net/inc')
| -rw-r--r-- | src/net/inc/net.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/net/inc/net.h b/src/net/inc/net.h index cdfeb0e..8359cda 100644 --- a/src/net/inc/net.h +++ b/src/net/inc/net.h @@ -15,9 +15,13 @@ union net_connect struct net_connect_common { enum net_domain domain; - void (*on_connected)(void *arg); - void (*on_disconnected)(void *arg); - void *arg; + + struct net_connect_ev + { + void (*connected)(void *arg); + void (*disconnected)(void *arg); + void *arg; + } ev; } common; struct net_connect_ipv4 |
