-
Notifications
You must be signed in to change notification settings - Fork 215
Expand file tree
/
Copy pathoutput_module.h
More file actions
54 lines (47 loc) · 1.6 KB
/
output_module.h
File metadata and controls
54 lines (47 loc) · 1.6 KB
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
48
49
50
51
52
53
54
/* output_module.h - Output module interface definition
*
* Copyright (C) 2007 Ivo Clarysse
*
* This file is part of GMediaRender.
*
* GMediaRender is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GMediaRender is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GMediaRender; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*/
#ifndef _OUTPUT_MODULE_H
#define _OUTPUT_MODULE_H
#include "output.h"
struct output_module {
const char *shortname;
const char *description;
int (*add_options)(GOptionContext *ctx);
// Commands.
int (*init)(void);
const char *(*version)(char *buffer, size_t len);
void (*set_uri)(const char *uri, output_update_meta_cb_t meta_info);
void (*set_next_uri)(const char *uri);
int (*play)(output_transition_cb_t transition_callback);
int (*stop)(void);
int (*pause)(void);
int (*seek)(gint64 position_nanos);
// parameters
int (*get_position)(gint64 *track_duration, gint64 *track_pos);
int (*get_volume)(float *);
int (*set_volume)(float);
int (*get_mute)(int *);
int (*set_mute)(int);
struct output_module *next;
};
#endif