Not really an issue I have, but I was wondering if...
# kotlin-native
z
Not really an issue I have, but I was wondering if someone using macOS could verify if my native cinterop file works for those systems. It does work on Linux It should generate bindings for libavutil libavcodec and libavformat from ffmpeg.
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 libavcodec/avcodec.h libavformat/avformat.h
headerFilter = libavutil/** libavcodec/** libavformat/**
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 -lavcodec -lavformat
linkerOpts.linux = -L/usr/lib/x86_64-linux-gnu -L/usr/lib -lavutil -lavcodec -lavformat

nonStrictEnums = AVCRCId AVHWDeviceType

---

struct AVDictionary {
    int count;
    AVDictionaryEntry *elems;
};

typedef void (*simple_log_callback_t)(void*, int, const char*, void*);

static inline simple_log_callback_t av_log_default_callback2() {
    return (simple_log_callback_t)av_log_default_callback;
}

static inline void av_log_set_callback2(simple_log_callback_t callback) {
    av_log_set_callback((void (*)(void*, int, const char*, va_list))callback);
}