-
Notifications
You must be signed in to change notification settings - Fork 0
/
tascam_protocol.h
47 lines (37 loc) · 1.61 KB
/
tascam_protocol.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef __HITAKI_TASCAM_PROTOCOL_H__
#define __HITAKI_TASCAM_PROTOCOL_H__
#include <hitaki.h>
G_BEGIN_DECLS
#define HITAKI_TYPE_TASCAM_PROTOCOL (hitaki_tascam_protocol_get_type())
G_DECLARE_INTERFACE(HitakiTascamProtocol, hitaki_tascam_protocol, HITAKI, TASCAM_PROTOCOL, GObject);
struct _HitakiTascamProtocolInterface {
GTypeInterface iface;
/**
* HitakiTascamProtocolInterface::read_state:
* @self: A [iface@TascamProtocol].
* @state: (array length=count) (inout): The image of state.
* @count: (inout): The length of image for state.
* @error: A [struct@GLib.Error] with Hitaki.AlsaFirewireError domain.
*
* Virtual function to read the latest image of device state.
*
* Returns: TRUE if the overall operation finished successfully, else FALSE.
*/
gboolean (*read_state)(HitakiTascamProtocol *self, guint32 *const *state, gsize *count,
GError **error);
/**
* HitakiTascamProtocolInterface::changed:
* @self: A [iface@TascamProtocol]
* @index: the numeric index on image for status and control information.
* @before: the value of information before changed.
* @after: the value of information after changed.
*
* Class closure for the [signal@TascamProtocol::changed] signal.
*/
void (*changed)(HitakiTascamProtocol *self, guint index, guint before, guint after);
};
gboolean hitaki_tascam_protocol_read_state(HitakiTascamProtocol *self, guint32 *const *state,
gsize *count, GError **error);
G_END_DECLS
#endif