pure sdk for main
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#ifndef _SDK_SKMONITOR_H_
|
||||
#define _SDK_SKMONITOR_H_
|
||||
|
||||
typedef enum {
|
||||
SOCK_MONITOR_READ = BIT(0),
|
||||
SOCK_MONITOR_WRITE = BIT(1),
|
||||
SOCK_MONITOR_ERROR = BIT(2),
|
||||
} skmonitor_flags;
|
||||
|
||||
typedef void (*skmonitor_cb)(uint16 sock, skmonitor_flags flags, uint32 priv);
|
||||
|
||||
int32 sock_monitor_init(void);
|
||||
int32 sock_monitor_add(uint16 sock, skmonitor_flags flags, skmonitor_cb cb, uint32 priv);
|
||||
void sock_monitor_del(uint16 sock);
|
||||
void sock_monitor_disable(uint16 sock, uint8 disable);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user