Mercurial > audlegacy
annotate src/audacious/auddrct.h @ 2785:182aa34ae6c4 trunk
[svn] - implement some audacious-remote functions.
- implement some audacious-drct functions.
- make some command line options work. (this may incur very slow startup.)
- suppress warnings.
author | yaz |
---|---|
date | Tue, 22 May 2007 15:17:15 -0700 |
parents | 7adb736cb824 |
children | 2d915b3e3e52 |
rev | line source |
---|---|
2739
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
1 /* |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
2 * Audacious: A cross-platform multimedia player |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
3 * Copyright (c) 2007 Giacomo Lozito |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
4 * |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
5 * This program is free software; you can redistribute it and/or modify |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
6 * it under the terms of the GNU General Public License as published by |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
7 * the Free Software Foundation; under version 2 of the License. |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
8 * |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
9 * This program is distributed in the hope that it will be useful, |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
12 * GNU General Public License for more details. |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
13 * |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
14 * You should have received a copy of the GNU General Public License |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
15 * along with this program; if not, write to the Free Software |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
17 * 02110-1301, USA. |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
18 */ |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
19 |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
20 /* audacious_drct_* provides a handy interface for player |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
21 plugins, originally intended for migration from xmms_remote_* calls */ |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
22 |
2775 | 23 #ifndef AUDDRCT_H |
24 #define AUDDRCT_H | |
25 | |
2739
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
26 #include <glib.h> |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
27 |
2742 | 28 /* player */ |
29 void audacious_drct_quit ( void ); | |
30 void audacious_drct_eject ( void ); | |
2745 | 31 void audacious_drct_jtf_show ( void ); |
2742 | 32 gboolean audacious_drct_main_win_is_visible ( void ); |
2744 | 33 void audacious_drct_main_win_toggle ( gboolean ); |
34 gboolean audacious_drct_eq_win_is_visible ( void ); | |
35 void audacious_drct_eq_win_toggle ( gboolean ); | |
36 gboolean audacious_drct_pl_win_is_visible ( void ); | |
37 void audacious_drct_pl_win_toggle ( gboolean ); | |
2785 | 38 void audacious_drct_set_skin(gchar *skinfile); |
39 void audacious_drct_show_jtf_box(void); | |
40 void audacious_drct_activate(void); | |
2739
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
41 |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
42 /* playback */ |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
43 void audacious_drct_play ( void ); |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
44 void audacious_drct_pause ( void ); |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
45 void audacious_drct_stop ( void ); |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
46 gboolean audacious_drct_get_playing ( void ); |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
47 gboolean audacious_drct_get_paused ( void ); |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
48 gboolean audacious_drct_get_stopped ( void ); |
2748 | 49 void audacious_drct_get_info( gint *rate, gint *freq, gint *nch); |
2739
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
50 gint audacious_drct_get_time ( void ); |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
51 void audacious_drct_seek ( guint pos ); |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
52 void audacious_drct_get_volume( gint *vl, gint *vr ); |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
53 void audacious_drct_set_volume( gint vl, gint vr ); |
2760 | 54 void audacious_drct_get_volume_main( gint *v ); |
55 void audacious_drct_set_volume_main( gint v ); | |
56 void audacious_drct_get_volume_balance( gint *b ); | |
57 void audacious_drct_set_volume_balance( gint b ); | |
2742 | 58 |
59 /* playlist */ | |
60 void audacious_drct_pl_next( void ); | |
61 void audacious_drct_pl_prev( void ); | |
2745 | 62 gboolean audacious_drct_pl_repeat_is_enabled ( void ); |
63 void audacious_drct_pl_repeat_toggle ( void ); | |
64 gboolean audacious_drct_pl_repeat_is_shuffled ( void ); | |
65 void audacious_drct_pl_shuffle_toggle ( void ); | |
2748 | 66 gchar *audacious_drct_pl_get_title( gint pos ); |
67 gint audacious_drct_pl_get_time( gint pos ); | |
68 gint audacious_drct_pl_get_pos( void ); | |
69 gchar *audacious_drct_pl_get_file( gint pos ); | |
2760 | 70 void audacious_drct_pl_add ( GList * list ); |
71 void audacious_drct_pl_clear ( void ); | |
2775 | 72 gint audacious_drct_pl_get_length( void ); |
73 void audacious_drct_pl_delete ( gint pos ); | |
74 void audacious_drct_pl_set_pos( gint pos ); | |
75 void audacious_drct_pl_ins_url_string( gchar * string, gint pos ); | |
76 void audacious_drct_pl_add_url_string( gchar * string ); | |
77 void audacious_drct_pl_enqueue_to_temp( gchar * string ); | |
78 | |
79 /* playqueue */ | |
80 gint audacious_drct_pq_get_length( void ); | |
81 void audacious_drct_pq_add( gint pos ); | |
82 void audacious_drct_pq_remove( gint pos ); | |
83 void audacious_drct_pq_clear( void ); | |
84 gboolean audacious_drct_pq_is_queued( gint pos ); | |
85 gint audacious_drct_pq_get_position( gint pos ); | |
86 gint audaciuos_drct_pq_get_queue_position( gint pos ); | |
87 | |
88 #endif |