Move AVFoundation to parent directory (#677)

This commit is contained in:
David von Wrangel
2026-01-08 18:36:41 +01:00
committed by GitHub
parent 03900dcb1b
commit 09fe4a9a6e
6 changed files with 2 additions and 9 deletions
@@ -30,12 +30,6 @@
#import "AVFoundationBind.h"
#include <string.h>
// AVFoundationBind.m is the entry point for cgo compilation (included by avfoundation_darwin.go).
// Including DeviceObserver.m here compiles both into a single compilation unit,
// making all symbols available to the linker.
#include "DeviceObserver.m"
#define CHK(condition, status) \
do { \
if(!(condition)) { \
+1 -2
View File
@@ -3,8 +3,7 @@ package avfoundation
// #cgo CFLAGS: -x objective-c
// #cgo LDFLAGS: -framework AVFoundation -framework Foundation -framework CoreMedia -framework CoreVideo
// #include "AVFoundationBind/AVFoundationBind.h"
// #include "AVFoundationBind/AVFoundationBind.m"
// #include "AVFoundationBind.h"
// extern void onData(void*, void*, int);
// void onDataBridge(void *userData, void *buf, int len) {
// onData(userData, buf, len);
+1 -1
View File
@@ -5,7 +5,7 @@ package avfoundation
#cgo LDFLAGS: -framework AVFoundation -framework Foundation -framework CoreMedia -framework CoreVideo
#include <stdlib.h>
#include <string.h>
#include "AVFoundationBind/DeviceObserver.h"
#include "DeviceObserver.h"
extern void deviceEventBridge(void *userData, DeviceEventType eventType, DeviceInfo *device);