22#ifndef N_SINK_INTERFACE_H
23#define N_SINK_INTERFACE_H
31#define N_SINK_INTERFACE_TYPE_AUDIO "audio"
32#define N_SINK_INTERFACE_TYPE_VIBRATOR "vibra"
33#define N_SINK_INTERFACE_TYPE_LEDS "leds"
struct _NCore NCore
Internal core structure.
Definition core.h:26
struct _NRequest NRequest
Internal request structure.
Definition request.h:26
struct _NSinkInterface NSinkInterface
Internal sinkinterface structure.
Definition sinkinterface.h:26
void n_sink_interface_resynchronize(NSinkInterface *iface, NRequest *request)
Request resynchronization of other sinks.
void n_sink_interface_set_userdata(NSinkInterface *iface, void *userdata)
Stores userdata for the sink interface.
void n_sink_interface_set_resync_on_master(NSinkInterface *iface, NRequest *request)
Report that sink will resync to other sinks resynchronize requests.
const char * n_sink_interface_get_type(NSinkInterface *iface)
Get interface type.
void n_sink_interface_fail(NSinkInterface *iface, NRequest *request)
Report sink has failed the request.
void n_sink_interface_complete(NSinkInterface *iface, NRequest *request)
Report sink has completed playback of request.
void * n_sink_interface_get_userdata(NSinkInterface *iface)
Returns userdata stored to the sink interface.
NCore * n_sink_interface_get_core(NSinkInterface *iface)
Get core to which interface is associated to.
const char * n_sink_interface_get_name(NSinkInterface *iface)
Get interface name.
void n_sink_interface_synchronize(NSinkInterface *iface, NRequest *request)
Report sink is synchronized and ready to start the playback.
struct _NSinkInterfaceDecl NSinkInterfaceDecl
Interface declaration structure.
Interface declaration structure.
Definition sinkinterface.h:37
int(* pause)(NSinkInterface *iface, NRequest *request)
Pause function.
Definition sinkinterface.h:82
void(* shutdown)(NSinkInterface *iface)
Shutdown function.
Definition sinkinterface.h:54
const char * name
Name of the interface.
Definition sinkinterface.h:39
int(* initialize)(NSinkInterface *iface)
Initialization function.
Definition sinkinterface.h:49
int(* can_handle)(NSinkInterface *iface, NRequest *request)
Can_handle function.
Definition sinkinterface.h:61
int(* prepare)(NSinkInterface *iface, NRequest *request)
Prepare function.
Definition sinkinterface.h:68
void(* stop)(NSinkInterface *iface, NRequest *request)
Stop function.
Definition sinkinterface.h:89
int(* play)(NSinkInterface *iface, NRequest *request)
Play function.
Definition sinkinterface.h:75
const char * type
Type of the interface.
Definition sinkinterface.h:43