blob: 19a479aec43d78d5aaa10b3c0f75f3d280f67cf4 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 | #ifndef _XAS_OBJECT_H
#define _XAS_OBJECT_H
typedef struct _xas_object xas_object;
typedef int (*xas_object_start_callback)(xas_object *object);
typedef int (*xas_object_stop_callback)(xas_object *object);
typedef int (*xas_object_set_gain_callback)(xas_object *object, float gain);
struct _xas_object {
    xas_object_start_callback    start;
    xas_object_stop_callback     stop;
    xas_object_set_gain_callback set_gain;
};
int xas_object_start(xas_object *object);
int xas_object_stop(xas_object *object);
int xas_object_set_gain(xas_object *object, float gain);
#endif /* _XAS_OBJECT_H */
 |