For some reason cinterop isn't generating a functi...
# kotlin-native
z
For some reason cinterop isn't generating a function for this C header function in log.h
void av_log_set_callback(void (*callback)(void*, int, const char*, va_list));
this is my cinterop file
Copy code
headers = libavutil/avutil.h libavutil/pixfmt.h libavutil/pixdesc.h libavutil/dict.h libavutil/crc.h \
    libavutil/hwcontext.h libavutil/imgutils.h libavutil/rational.h libavutil/log.h
headerFilter = libavutil/**
package = ffmpeg

compilerOpts.linux = -I/usr/include -I/usr/include/x86_64-linux-gnu -I/usr/include/ffmpeg
linkerOpts.osx = -L/opt/local/lib -L/usr/local/opt/curl/lib -lavutil
linkerOpts.linux = -L/usr/lib/x86_64-linux-gnu -L/usr/lib -lavutil

nonStrictEnums = AVCRCId AVHWDeviceType

---

struct AVDictionary {
    int count;
    AVDictionaryEntry *elems;
};
It seems to be caused by the va_list parameter in the callback