Files
donut/local-tmp-go-astiav/dictionary_entry.go
Leandro Moreira af8aa3acff add local astiav
2024-05-13 08:58:23 -03:00

23 lines
476 B
Go

package astiav
//#cgo pkg-config: libavutil
//#include <libavutil/dict.h>
import "C"
// https://github.com/FFmpeg/FFmpeg/blob/n5.0/libavutil/dict.h#L79
type DictionaryEntry struct {
c *C.struct_AVDictionaryEntry
}
func newDictionaryEntryFromC(c *C.struct_AVDictionaryEntry) *DictionaryEntry {
return &DictionaryEntry{c: c}
}
func (e DictionaryEntry) Key() string {
return C.GoString(e.c.key)
}
func (e DictionaryEntry) Value() string {
return C.GoString(e.c.value)
}