pnmixer
Volume mixer for the system tray
Typedefs | Functions
hotkeys.h File Reference

Header for hotkeys.c. More...

#include "audio.h"
Include dependency graph for hotkeys.h:

Go to the source code of this file.

Typedefs

typedef struct hotkeys Hotkeys
 

Functions

Hotkeyshotkeys_new (Audio *audio)
 
void hotkeys_free (Hotkeys *hotkeys)
 
void hotkeys_reload (Hotkeys *hotkeys)
 
void hotkeys_bind (Hotkeys *hotkeys)
 
void hotkeys_unbind (Hotkeys *hotkeys)
 

Detailed Description

Header for hotkeys.c.

Header for hotkeys.c.

Definition in file hotkeys.h.

Typedef Documentation

◆ Hotkeys

typedef struct hotkeys Hotkeys

Definition at line 22 of file hotkeys.h.

Function Documentation

◆ hotkeys_bind()

void hotkeys_bind ( Hotkeys hotkeys)

Bind hotkeys manually. Should be paired with a hotkeys_unbind() call.

Parameters
hotkeysa Hotkeys instance.

Definition at line 210 of file hotkeys.c.

◆ hotkeys_free()

void hotkeys_free ( Hotkeys hotkeys)

Cleanup the hotkey subsystem.

Parameters
hotkeysa Hotkeys instance.

Definition at line 228 of file hotkeys.c.

◆ hotkeys_new()

Hotkeys* hotkeys_new ( Audio audio)

Creates the hotkeys subsystem, and bind the hotkeys.

Parameters
audiothe audio system, needed to control the audio.
Returns
the newly created Hotkeys instance.

Definition at line 250 of file hotkeys.c.

◆ hotkeys_reload()

void hotkeys_reload ( Hotkeys hotkeys)

Reload hotkey preferences. This has to be called each time the preferences are modified.

Parameters
hotkeysa Hotkeys instance.

Definition at line 121 of file hotkeys.c.

◆ hotkeys_unbind()

void hotkeys_unbind ( Hotkeys hotkeys)

Unbind hotkeys manually. Should be paired with a hotkeys_bind() call.

Parameters
hotkeysa Hotkeys instance.

Definition at line 192 of file hotkeys.c.