GObject boilerplate
[gst-scaletempo-demo-rj.git] / src / demo-player.h
blobb329414b894ce3e1245f455775568f75e04a51e5
1 /* gui.h
2 * Copyright (C) 2008 Rov Juvano <rovjuvano@users.sourceforge.net>
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #ifndef __DEMO_PLAYER_H_INCLUDED_
19 #define __DEMO_PLAYER_H_INCLUDED_
21 #include <glib-object.h>
23 G_BEGIN_DECLS
25 #define DEMO_TYPE_PLAYER (demo_player_get_type())
26 #define DEMO_PLAYER(o) (G_TYPE_CHECK_INSTANCE_CAST((o), DEMO_TYPE_PLAYER, DemoPlayer))
27 #define DEMO_IS_PLAYER(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), DEMO_TYPE_PLAYER))
28 #define DEMO_PLAYER_TYPE(o) (G_TYPE_FROM_INSTANCE (o))
29 #define DEMO_PLAYER_TYPE_NAME(o) (g_type_name (DEMO_PLAYER__TYPE (o)))
31 #define DEMO_PLAYER_CLASS(c) (G_TYPE_CHECK_CLASS_CAST((c), DEMO_TYPE_PLAYER, DemoPlayerClass))
32 #define DEMO_IS_PLAYER_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE((c), DEMO_TYPE_PLAYER))
33 #define DEMO_PLAYER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), DEMO_TYPE_PLAYER, DemoPlayerClass))
35 typedef struct _DemoPlayer DemoPlayer;
36 typedef struct _DemoPlayerClass DemoPlayerClass;
38 struct _DemoPlayer
40 GObject parent;
41 gdouble rate;
42 gchar *filter;
45 struct _DemoPlayerClass
47 GObjectClass parent;
48 void (*play_uri) (DemoPlayer *player,
49 gchar *uri);
52 GType demo_player_get_type (void);
54 void demo_player_play_uri (DemoPlayer *player,
55 gchar *uri);
57 G_END_DECLS
59 #endif /* __DEMO_PLAYER_H_INCLUDED_ */