papi

package
v0.0.0-...-45eb8e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDeviceCallback

func GetDeviceCallback(h C.uintptr_t, data *C.char, size C.size_t)

Types

type DevicePlugin

type DevicePlugin struct {
	// contains filtered or unexported fields
}

func (*DevicePlugin) CreateDevice

func (dev *DevicePlugin) CreateDevice() uintptr

func (*DevicePlugin) Device_Print

func (dev *DevicePlugin) Device_Print(self uintptr) error

func (*DevicePlugin) Device_SetValue

func (dev *DevicePlugin) Device_SetValue(self uintptr, value int32) error

func (*DevicePlugin) Device_Value

func (dev *DevicePlugin) Device_Value(self uintptr) (value int32, err error)

func (*DevicePlugin) FreeDevice

func (dev *DevicePlugin) FreeDevice(ptr uintptr) error

func (*DevicePlugin) GetDevice

func (dev *DevicePlugin) GetDevice(ptr uintptr, useJson bool) (encoded []byte, err error)

func (*DevicePlugin) Init

func (dev *DevicePlugin) Init(lookup func(symName string) (uintptr, error)) error