I would like to access the data inside this member function, which is static. The member function is static now, so I can use it with a third-party API written in C that has a typdef function pointer for callback purposes. Based on the information below, what is the best way to get around the need to create a static function in order to use the data from the next member of the function as part of other member functions of my class that are non-static. Maybe there is a way to still use this static function, but still overcome the inability to mix static with non-stationary variables. My code works as it is, but without the ability to access data in the next callback function.
void TextDetect::vtrCB(vtrTextTrack *track, void *calldata) { }
In the associated C API, there are the following two lines of code that I have to use:
typedef void (*vtrCallback)(vtrTextTrack *track, void *calldata); int vtrInitialize(const char *inifile, vtrCallback cb, void *calldata);
Here is the title of my class:
#include <vtrapi.h>
source share