mirror of
https://github.com/asticode/go-astiav.git
synced 2025-09-26 20:21:15 +08:00
19 lines
275 B
Go
19 lines
275 B
Go
package astiav
|
|
|
|
import "unsafe"
|
|
|
|
type PrivateData struct {
|
|
c unsafe.Pointer
|
|
}
|
|
|
|
func newPrivateDataFromC(c unsafe.Pointer) *PrivateData {
|
|
if c == nil {
|
|
return nil
|
|
}
|
|
return &PrivateData{c: c}
|
|
}
|
|
|
|
func (pd *PrivateData) Options() *Options {
|
|
return newOptionsFromC(pd.c)
|
|
}
|