annotate src/audacious/auddrct.h @ 3043:59452118044d

MacOS (and others): Relocate libintl to a location where audacious can link to it automatically.
author William Pitcock <nenolod@atheme-project.org>
date Thu, 12 Jul 2007 06:01:51 -0500
parents 2d915b3e3e52
children 06858ea4b9d0
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_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
40
953001c668ae [svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff changeset
41 /* playback */
953001c668ae [svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff changeset
42 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
43 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
44 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
45 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
46 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
47 gboolean audacious_drct_get_stopped ( void );
2748
4f2fd69771dc [svn] - auddrct: more calls implemented (part 5)
yaz
parents: 2745
diff changeset
48 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
49 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
50 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
51 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
52 void audacious_drct_set_volume( gint vl, gint vr );
2760
c2613269f913 [svn] - auddrct: more calls implemented (part 6)
giacomo
parents: 2748
diff changeset
53 void audacious_drct_get_volume_main( gint *v );
c2613269f913 [svn] - auddrct: more calls implemented (part 6)
giacomo
parents: 2748
diff changeset
54 void audacious_drct_set_volume_main( gint v );
c2613269f913 [svn] - auddrct: more calls implemented (part 6)
giacomo
parents: 2748
diff changeset
55 void audacious_drct_get_volume_balance( gint *b );
c2613269f913 [svn] - auddrct: more calls implemented (part 6)
giacomo
parents: 2748
diff changeset
56 void audacious_drct_set_volume_balance( gint b );
2742
1333d28e2c50 [svn] - auddrct: more calls implemented
giacomo
parents: 2739
diff changeset
57
1333d28e2c50 [svn] - auddrct: more calls implemented
giacomo
parents: 2739
diff changeset
58 /* playlist */
1333d28e2c50 [svn] - auddrct: more calls implemented
giacomo
parents: 2739
diff changeset
59 void audacious_drct_pl_next( void );
1333d28e2c50 [svn] - auddrct: more calls implemented
giacomo
parents: 2739
diff changeset
60 void audacious_drct_pl_prev( void );
2745
72781ef7ece3 [svn] - auddrct: more calls implemented (part 4)
giacomo
parents: 2744
diff changeset
61 gboolean audacious_drct_pl_repeat_is_enabled ( void );
72781ef7ece3 [svn] - auddrct: more calls implemented (part 4)
giacomo
parents: 2744
diff changeset
62 void audacious_drct_pl_repeat_toggle ( void );
72781ef7ece3 [svn] - auddrct: more calls implemented (part 4)
giacomo
parents: 2744
diff changeset
63 gboolean audacious_drct_pl_repeat_is_shuffled ( void );
72781ef7ece3 [svn] - auddrct: more calls implemented (part 4)
giacomo
parents: 2744
diff changeset
64 void audacious_drct_pl_shuffle_toggle ( void );
2748
4f2fd69771dc [svn] - auddrct: more calls implemented (part 5)
yaz
parents: 2745
diff changeset
65 gchar *audacious_drct_pl_get_title( gint pos );
4f2fd69771dc [svn] - auddrct: more calls implemented (part 5)
yaz
parents: 2745
diff changeset
66 gint audacious_drct_pl_get_time( gint pos );
4f2fd69771dc [svn] - auddrct: more calls implemented (part 5)
yaz
parents: 2745
diff changeset
67 gint audacious_drct_pl_get_pos( void );
4f2fd69771dc [svn] - auddrct: more calls implemented (part 5)
yaz
parents: 2745
diff changeset
68 gchar *audacious_drct_pl_get_file( gint pos );
2760
c2613269f913 [svn] - auddrct: more calls implemented (part 6)
giacomo
parents: 2748
diff changeset
69 void audacious_drct_pl_add ( GList * list );
c2613269f913 [svn] - auddrct: more calls implemented (part 6)
giacomo
parents: 2748
diff changeset
70 void audacious_drct_pl_clear ( void );
2775
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
71 gint audacious_drct_pl_get_length( void );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
72 void audacious_drct_pl_delete ( gint pos );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
73 void audacious_drct_pl_set_pos( gint pos );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
74 void audacious_drct_pl_ins_url_string( gchar * string, gint pos );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
75 void audacious_drct_pl_add_url_string( gchar * string );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
76 void audacious_drct_pl_enqueue_to_temp( gchar * string );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
77
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
78 /* playqueue */
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
79 gint audacious_drct_pq_get_length( void );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
80 void audacious_drct_pq_add( gint pos );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
81 void audacious_drct_pq_remove( gint pos );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
82 void audacious_drct_pq_clear( void );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
83 gboolean audacious_drct_pq_is_queued( gint pos );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
84 gint audacious_drct_pq_get_position( gint pos );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
85 gint audaciuos_drct_pq_get_queue_position( gint pos );
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
86
2803
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
87 /* adjust naming scheme to audacious_remote_* functions */
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
88 #define audacious_drct_show_jtf_box audacious_drct_jtf_show
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
89 #define audacious_drct_is_eq_win audacious_drct_eq_win_is_visible
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
90 #define audacious_drct_is_pl_win audacious_drct_pl_win_is_visible
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
91 #define audacious_drct_is_playing audacious_drct_get_playing
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
92 #define audacious_drct_is_paused audacious_drct_get_paused
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
93 #define audacious_drct_get_output_time audacious_drct_get_time
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
94 #define audacious_drct_jump_to_time audacious_drct_seek
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
95 #define audacious_drct_get_main_volume audacious_drct_get_volume_main
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
96 #define audacious_drct_set_main_volume audacious_drct_set_volume_main
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
97 #define audacious_drct_get__balance audacious_drct_get_volume_balance
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
98 #define audacious_drct_set_balance audacious_drct_set_volume_balance
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
99 #define audacious_drct_playlist_next audacious_drct_pl_next
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
100 #define audacious_drct_playlist_prev audacious_drct_pl_prev
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
101 #define audacious_drct_is_repeat audacious_drct_pl_repeat_is_enabled
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
102
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
103 #define audacious_drct_toggle_repeat audacious_drct_pl_repeat_toggle
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
104 #define audacious_drct_is_shuffle audacious_drct_pl_repeat_is_shuffled
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
105 #define audacious_drct_toggle_shuffle audacious_drct_pl_shuffle_toggle
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
106 #define audacious_drct_get_playlist_title audacious_drct_pl_get_title
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
107 #define audacious_drct_get_playlist_time audacious_drct_pl_get_time
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
108 #define audacious_drct_get_playlist_pos audacious_drct_pl_get_pos
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
109 #define audacious_drct_get_playlist_file audacious_drct_pl_get_file
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
110 #define audacious_drct_playlist_add audacious_drct_pl_add
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
111 #define audacious_drct_playlist_clear audacious_drct_pl_clear
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
112 #define audacious_drct_get_playlist_length audacious_drct_pl_get_length
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
113 #define audacious_drct_playlist_delete audacious_drct_pl_delete
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
114 #define audacious_drct_set_playlist_pos audacious_drct_pl_set_pos
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
115 #define audacious_drct_playlist_ins_url_string audacious_drct_pl_ins_url_string
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
116 #define audacious_drct_playlist_add_url_string audacious_drct_pl_add_url_string
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
117 #define audacious_drct_playlist_enqueue_to_temp audacious_drct_pl_enqueue_to_temp
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
118
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
119 #define audacious_drct_get_playqueue_length audacious_drct_pq_get_length
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
120 #define audacious_drct_playqueue_add audacious_drct_pq_add
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
121 #define audacious_drct_playqueue_remove audacious_drct_pq_remove
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
122 #define audacious_drct_playqueue_clear audacious_drct_pq_clear
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
123 #define audacious_drct_playqueue_is_queued audacious_drct_pq_is_queued
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
124 #define audacious_drct_get_playqueue_position audacious_drct_pq_get_position
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
125 #define audacious_drct_get_playqueue_queue_position audaciuos_drct_pq_get_queue_position
2d915b3e3e52 [svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents: 2785
diff changeset
126
2775
7adb736cb824 [svn] - auddrct: more calls implemented (part 7)
yaz
parents: 2760
diff changeset
127 #endif