summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoryangwei <[email protected]>2024-02-28 19:13:35 +0800
committeryangwei <[email protected]>2024-02-28 19:14:21 +0800
commitdba8ffef7b3b69db106d75c86e784c57b88b92b8 (patch)
tree476b336216bb0bd2a2ce93d04136fafa1dec843b /include
parent41d9fa5e80726a00c9ca3b66b7619f834dc66377 (diff)
✨ feat(polling plugin): support register polling plugin
Diffstat (limited to 'include')
-rw-r--r--include/stellar/stellar.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/stellar/stellar.h b/include/stellar/stellar.h
index 96b5394..3f11734 100644
--- a/include/stellar/stellar.h
+++ b/include/stellar/stellar.h
@@ -33,4 +33,7 @@ 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 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