summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoryangwei <[email protected]>2024-03-01 10:45:33 +0800
committeryangwei <[email protected]>2024-04-30 15:58:10 +0800
commitb1e2dd20c4470d3b4dfcb98fb0a9289f197b200e (patch)
tree9e0bb6a16e55df2fe4ca584f40793a521231b714 /include
parentdba8ffef7b3b69db106d75c86e784c57b88b92b8 (diff)
✨ feat(polling return with work state): 0: idle, 1: working
Diffstat (limited to 'include')
-rw-r--r--include/stellar/stellar.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/stellar/stellar.h b/include/stellar/stellar.h
index 3f11734..5907dfd 100644
--- a/include/stellar/stellar.h
+++ b/include/stellar/stellar.h
@@ -33,7 +33,9 @@ typedef void plugin_on_packet_func(struct packet *pkt, unsigned char ip_protoco
//return packet plugin_id
int stellar_packet_plugin_register(struct stellar *st, unsigned char ip_protocol, plugin_on_packet_func on_packet, void *plugin_env);
-typedef void plugin_on_polling_func(void *plugin_env);
+
+//return polling work result, 0: no work, 1: work
+typedef int plugin_on_polling_func(void *plugin_env);
//return polling plugin_id
int stellar_polling_plugin_register(struct stellar *st, plugin_on_polling_func on_polling, void *plugin_env); \ No newline at end of file