Moved all c code to .h and .c files + removed struc_ prefix when not needed

This commit is contained in:
Quentin Renard
2024-09-05 11:38:25 +02:00
parent e7c92c0115
commit 09a88834bb
45 changed files with 304 additions and 276 deletions

View File

@@ -1,17 +1,6 @@
package astiav
//#include <libavformat/avio.h>
/*
int astiavInterruptCallback(void *ret)
{
return *((int*)ret);
}
AVIOInterruptCB astiavNewInterruptCallback(int *ret)
{
AVIOInterruptCB c = { astiavInterruptCallback, ret };
return c;
}
*/
//#include "io_interrupter.h"
import "C"
type IOInterrupter interface {
@@ -20,7 +9,7 @@ type IOInterrupter interface {
}
type defaultIOInterrupter struct {
c C.struct_AVIOInterruptCB
c C.AVIOInterruptCB
i C.int
}