mirror of
https://github.com/asticode/go-astiav.git
synced 2025-10-05 08:06:59 +08:00
Moved all c code to .h and .c files + removed struc_ prefix when not needed
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user