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 | 467f09e9521e509295211560b57ca9a0119837bd (patch) | |
| tree | bcb6853ac3cea267b23d10c964e413172808e605 /src/net/inc | |
| parent | 85d4af02662539455cc4ef04edecd3934046d4bf (diff) | |
| download | rts-467f09e9521e509295211560b57ca9a0119837bd.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 |
