diff options
| author | yangwei <[email protected]> | 2024-03-01 10:45:33 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2024-04-30 15:58:10 +0800 |
| commit | b1e2dd20c4470d3b4dfcb98fb0a9289f197b200e (patch) | |
| tree | 9e0bb6a16e55df2fe4ca584f40793a521231b714 /examples | |
| parent | dba8ffef7b3b69db106d75c86e784c57b88b92b8 (diff) | |
✨ feat(polling return with work state): 0: idle, 1: working
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stellar_plugin/simple_stellar_plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stellar_plugin/simple_stellar_plugin.c b/examples/stellar_plugin/simple_stellar_plugin.c index eb7dd48..d602d06 100644 --- a/examples/stellar_plugin/simple_stellar_plugin.c +++ b/examples/stellar_plugin/simple_stellar_plugin.c @@ -150,11 +150,11 @@ void simple_stellar_event_on_packet_func(struct packet *pkt, unsigned char ip_p return; } -void simple_stellar_plugin_on_polling_func(void *plugin_env) +int simple_stellar_plugin_on_polling_func(void *plugin_env) { struct simple_stellar_plugin_env *env = (struct simple_stellar_plugin_env *)plugin_env; env->polling_times++; - return; + return 0; } void *simple_stellar_event_plugin_init(struct stellar *st) |
