diff options
| author | 2025-11-23 01:12:43 -0600 | |
|---|---|---|
| committer | 2025-11-23 01:12:43 -0600 | |
| commit | bc6575839f8f826b6e3537f5f88970f4444a06c5 (patch) | |
| tree | a1f9973beda654b77690bcf5672335e179f0a7c3 /plugins/epoll.c | |
| parent | ignore this commit (diff) | |
more work on plugins
Diffstat (limited to 'plugins/epoll.c')
| -rw-r--r-- | plugins/epoll.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/plugins/epoll.c b/plugins/epoll.c index 5c1975a..f0a3970 100644 --- a/plugins/epoll.c +++ b/plugins/epoll.c @@ -1,2 +1,23 @@ #include <sys/epoll.h> +#include "plugins.h" +static int plugin_init(ptx_plugin_t *plugin, void *resume) +{ + UNUSED(plugin, resume); + return 0; +} + +static int plugin_restart(ptx_plugin_t *plugin, void **presume) +{ + UNUSED(plugin, presume); + return PTX_PLUGIN_CANNOT_RESUME; +} + +PTX_PLUGIN_DESC_START + PTX_PLUGIN_NAME("io_epoll") + PTX_PLUGIN_DESCRIPTION("provides epoll-based i/o") + PTX_PLUGIN_VERSION("0.1.0") + + PTX_PLUGIN_INIT(plugin_init) + PTX_PLUGIN_RESTART(plugin_restart) +PTX_PLUGIN_DESC_END |
