1 /*
2  * Copyright (c) 2017-2019 gnome-mpv
3  *
4  * This file is part of Celluloid.
5  *
6  * Celluloid is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * Celluloid is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with Celluloid.  If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef PLAYER_H
21 #define PLAYER_H
22 
23 #include <glib-object.h>
24 
25 #include "celluloid-mpv.h"
26 
27 G_BEGIN_DECLS
28 
29 #define CELLULOID_TYPE_PLAYER (celluloid_player_get_type())
30 
31 G_DECLARE_DERIVABLE_TYPE(CelluloidPlayer, celluloid_player, CELLULOID, PLAYER, CelluloidMpv)
32 
33 struct _CelluloidPlayerClass
34 {
35 	CelluloidMpvClass parent_class;
36 	void (*autofit)(CelluloidPlayer *player);
37 	void (*metadata_update)(CelluloidPlayer *player, gint64 pos);
38 };
39 
40 CelluloidPlayer *
41 celluloid_player_new(gint64 wid);
42 
43 void
44 celluloid_player_set_playlist_position(CelluloidPlayer *player, gint64 position);
45 
46 void
47 celluloid_player_remove_playlist_entry(CelluloidPlayer *player, gint64 position);
48 
49 void
50 celluloid_player_move_playlist_entry(	CelluloidPlayer *player,
51 					gint64 src,
52 					gint64 dst );
53 
54 void
55 celluloid_player_set_log_level(	CelluloidPlayer *player,
56 				const gchar *prefix,
57 				const gchar *level );
58 
59 G_END_DECLS
60 
61 #endif
62