module

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotImplemented = fmt.Errorf("module does not implement this procedure")
)

Functions

func LoadAll

func LoadAll() error

LoadAll wraps void obs_load_all_modules(void).

func Log

func Log() error

Log wraps obs_log_loaded_modules.

Types

type Module

type Module interface {
	Close() error
	Description() (string, error)
	Load() error
	SetLocale(l locale.Type) error
}

Module provides an interface to opaquely use obs-plugin modules across packages.

type Return

type Return int

Module provides an interface to opaquely use obs-plugin modules across packages.

const (
	Null = Type(0)

	Success             Return = -iota // - Successful
	Error                              // - A generic error occurred
	FileNotFound                       // - The module was not found
	MissingExports                     // - Required exports are missing
	IncompatibleVersion                // - Incompatible version
	HardcodedSkip                      // - Skipped by hardcoded rules (e.g. obsolete obs-browser macOS plugin)
)

func (Return) String

func (r Return) String() string

String returns the human-readable representation of the return value obs_open_module.

type Type

type Type uintptr

Module provides an interface to opaquely use obs-plugin modules across packages.

func New

func New(name string) (Type, error)

New wraps - int obs_open_module(obs_module_t **module, const char *path, const char *data_path). - bool obs_init_module(obs_module_t *module)

func (Type) IsNull

func (t Type) IsNull() bool

IsNull returns true or false as to whether or not Type has been initialized.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL