hook

package
v0.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2021 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HOOK_PLAYER_INITIALIZED = iota
	HOOK_RESULT_FETCH_STARTED
	HOOK_FILE_LOAD_STARTED
	HOOK_FILE_LOADED
	HOOK_FILE_ENDED
	HOOK_FILE_APPENDED
	HOOK_PLAYBACK_PAUSED
	HOOK_PLAYBACK_RESUMED
	HOOK_VOLUME_CHANGED
	HOOK_POSITION_CHANGED
	HOOK_RESULT_DOWNLOAD_STARTED
	HOOK_QUEUE_UPDATE_FINISHED
	HOOK_PLAYER_EXIT
	HOOK_LOOP_STATUS_CHANGED

	HOOK_GUI_STARTED

	// communicate the tray with the gtk window
	HOOK_REQUEST_EXIT
	HOOK_REQUEST_SHOW_HIDE
)

Variables

This section is empty.

Functions

func CallHooks

func CallHooks(hookType int, params ...interface{})

func RegisterHook

func RegisterHook(hookType int, cb HookCallback)

func RegisterHooks

func RegisterHooks(hookTypes []int, cb HookCallback)

Types

type HookCallback

type HookCallback func(params ...interface{})

Jump to

Keyboard shortcuts

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