From d08ae89c82232c53c63c658c7ab26175440702a6 Mon Sep 17 00:00:00 2001 From: DanyLE Date: Wed, 13 Mar 2024 18:17:36 +0100 Subject: [PATCH] feat: update code to support antd 2.0.0 new plugin interface --- configure.ac | 2 +- wvnc.c | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index ab642e3..da57cb2 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ # initialise autoconf and set up some basic information about the program we’re packaging -AC_INIT([wvnc], [0.2.5a], [xsang.le@gmail.com]) +AC_INIT([wvnc], [0.3.0], [xsang.le@gmail.com]) # We’re going to use automake for this project # [subdir-objects] if needed diff --git a/wvnc.c b/wvnc.c index 27708be..eb4430d 100644 --- a/wvnc.c +++ b/wvnc.c @@ -1,4 +1,3 @@ -#define PLUGIN_IMPLEMENT 1 #include #include #include @@ -6,6 +5,7 @@ #include #include #include +#include #include #include #include @@ -770,9 +770,14 @@ void *handle(void *data) return task; //LOG("%s\n", "EXIT Streaming.."); } -void init() +void* create(antd_plugin_ctx_t* ctx) { + UNUSED(ctx); + LOG("Initialize WVNC context"); + return NULL; } -void destroy() +void drop(antd_plugin_ctx_t* ctx) { + UNUSED(ctx); + LOG("Drop WVNC context"); } \ No newline at end of file