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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
23 #ifndef AUDDRCT_H
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
24 #define AUDDRCT_H
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
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
1333d28e2c50 [svn] - auddrct: more calls implemented
giacomo
parents: 2739
diff changeset
28 /* player */
1333d28e2c50 [svn] - auddrct: more calls implemented
giacomo
parents: 2739
diff changeset
29 void audacious_drct_quit ( void );
1333d28e2c50 [svn] - auddrct: more calls implemented
giacomo
parents: 2739
diff changeset
30 void audacious_drct_eject ( void );
2745
72781ef7ece3 [svn] - auddrct: more calls implemented (part 4)
giacomo
parents: 2744
diff changeset
31 void audacious_drct_jtf_show ( void );
2742
1333d28e2c50 [svn] - auddrct: more calls implemented
giacomo
parents: 2739
diff changeset
32 gboolean audacious_drct_main_win_is_visible ( void );
2744
8ab4ef180201 [svn] - auddrct: more calls implemented (part 3)
giacomo
parents: 2743
diff changeset
33 void audacious_drct_main_win_toggle ( gboolean );
8ab4ef180201 [svn] - auddrct: more calls implemented (part 3)
giacomo
parents: 2743
diff changeset
34 gboolean audacious_drct_eq_win_is_visible ( void );
8ab4ef180201 [svn] - auddrct: more calls implemented (part 3)
giacomo
parents: 2743
diff changeset
35 void audacious_drct_eq_win_toggle ( gboolean );
8ab4ef180201 [svn] - auddrct: more calls implemented (part 3)
giacomo
parents: 2743
diff changeset
36 gboolean audacious_drct_pl_win_is_visible ( void );
8ab4ef180201 [svn] - auddrct: more calls implemented (part 3)
giacomo
parents: 2743
diff changeset
37 void audacious_drct_pl_win_toggle ( gboolean );
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2775
diff changeset
38 void audacious_drct_set_skin(gchar *skinfile);
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2775
diff changeset
39 void audacious_drct_show_jtf_box(void);
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2775
diff changeset
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
4f2fd69771dc [svn] - auddrct: more calls implemented (part 5)
yaz
parents: 2745
diff changeset
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
c2613269f913 [svn] - auddrct: more calls implemented (part 6)
giacomo
parents: 2748
diff changeset
54 void audacious_drct_get_volume_main( gint *v );
c2613269f913 [svn] - auddrct: more calls implemented (part 6)
giacomo
parents: 2748
diff changeset
55 void audacious_drct_set_volume_main( gint v );
c2613269f913 [svn] - auddrct: more calls implemented (part 6)
giacomo
parents: 2748
diff changeset
56 void audacious_drct_get_volume_balance( gint *b );
c2613269f913 [svn] - auddrct: more calls implemented (part 6)
giacomo
parents: 2748
diff changeset
57 void audacious_drct_set_volume_balance( gint b );
2742
1333d28e2c50 [svn] - auddrct: more calls implemented
giacomo
parents: 2739
diff changeset
58
1333d28e2c50 [svn] - auddrct: more calls implemented
giacomo
parents: 2739
diff changeset
59 /* playlist */
1333d28e2c50 [svn] - auddrct: more calls implemented
giacomo
parents: 2739
diff changeset
60 void audacious_drct_pl_next( void );
1333d28e2c50 [svn] - auddrct: more calls implemented
giacomo
parents: 2739
diff changeset
61 void audacious_drct_pl_prev( void );
2745
72781ef7ece3 [svn] - auddrct: more calls implemented (part 4)
giacomo
parents: 2744
diff changeset
62 gboolean audacious_drct_pl_repeat_is_enabled ( void );
72781ef7ece3 [svn] - auddrct: more calls implemented (part 4)
giacomo
parents: 2744
diff changeset
63 void audacious_drct_pl_repeat_toggle ( void );
72781ef7ece3 [svn] - auddrct: more calls implemented (part 4)
giacomo
parents: 2744
diff changeset
64 gboolean audacious_drct_pl_repeat_is_shuffled ( void );
72781ef7ece3 [svn] - auddrct: more calls implemented (part 4)
giacomo
parents: 2744
diff changeset
65 void audacious_drct_pl_shuffle_toggle ( void );
2748
4f2fd69771dc [svn] - auddrct: more calls implemented (part 5)
yaz
parents: 2745
diff changeset
66 gchar *audacious_drct_pl_get_title( gint pos );
4f2fd69771dc [svn] - auddrct: more calls implemented (part 5)
yaz
parents: 2745
diff changeset
67 gint audacious_drct_pl_get_time( gint pos );
4f2fd69771dc [svn] - auddrct: more calls implemented (part 5)
yaz
parents: 2745
diff changeset
68 gint audacious_drct_pl_get_pos( void );
4f2fd69771dc [svn] - auddrct: more calls implemented (part 5)
yaz
parents: 2745
diff changeset
69 gchar *audacious_drct_pl_get_file( gint pos );
2760
c2613269f913 [svn] - auddrct: more calls implemented (part 6)
giacomo
parents: 2748
diff changeset
70 void audacious_drct_pl_add ( GList * list );
c2613269f913 [svn] - auddrct: more calls implemented (part 6)
giacomo
parents: 2748
diff changeset
71 void audacious_drct_pl_clear ( void );
2775
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
72 gint audacious_drct_pl_get_length( void );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
73 void audacious_drct_pl_delete ( gint pos );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
74 void audacious_drct_pl_set_pos( gint pos );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
75 void audacious_drct_pl_ins_url_string( gchar * string, gint pos );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
76 void audacious_drct_pl_add_url_string( gchar * string );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
77 void audacious_drct_pl_enqueue_to_temp( gchar * string );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
78
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
79 /* playqueue */
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
80 gint audacious_drct_pq_get_length( void );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
81 void audacious_drct_pq_add( gint pos );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
82 void audacious_drct_pq_remove( gint pos );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
83 void audacious_drct_pq_clear( void );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
84 gboolean audacious_drct_pq_is_queued( gint pos );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
85 gint audacious_drct_pq_get_position( gint pos );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
86 gint audaciuos_drct_pq_get_queue_position( gint pos );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
87
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
88 #endif