Mercurial > audlegacy
annotate src/audacious/auddrct.h @ 4270:a3d30a174720
Automated merge with ssh://hg.atheme.org//hg/audacious
author | Eugene Zagidullin <e.asphyx@gmail.com> |
---|---|
date | Sun, 10 Feb 2008 16:03:55 +0300 |
parents | 22d71f986b86 |
children | de1f750f6152 |
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 /* |
2892
2f5e02538dfa
Backed out changeset 06858ea4b9d01dab0ce54891221bd1534a9c5ade
William Pitcock <nenolod@atheme.org>
parents:
2863
diff
changeset
|
2 * Audacious: A cross-platform multimedia player |
2739
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 * |
2892
2f5e02538dfa
Backed out changeset 06858ea4b9d01dab0ce54891221bd1534a9c5ade
William Pitcock <nenolod@atheme.org>
parents:
2863
diff
changeset
|
5 * This program is free software; you can redistribute it and/or modify |
2f5e02538dfa
Backed out changeset 06858ea4b9d01dab0ce54891221bd1534a9c5ade
William Pitcock <nenolod@atheme.org>
parents:
2863
diff
changeset
|
6 * it under the terms of the GNU General Public License as published by |
3121
3b6d316f8b09
GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents:
2892
diff
changeset
|
7 * the Free Software Foundation; under version 3 of the License. |
2739
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
8 * |
2892
2f5e02538dfa
Backed out changeset 06858ea4b9d01dab0ce54891221bd1534a9c5ade
William Pitcock <nenolod@atheme.org>
parents:
2863
diff
changeset
|
9 * This program is distributed in the hope that it will be useful, |
2f5e02538dfa
Backed out changeset 06858ea4b9d01dab0ce54891221bd1534a9c5ade
William Pitcock <nenolod@atheme.org>
parents:
2863
diff
changeset
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
2f5e02538dfa
Backed out changeset 06858ea4b9d01dab0ce54891221bd1534a9c5ade
William Pitcock <nenolod@atheme.org>
parents:
2863
diff
changeset
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
2f5e02538dfa
Backed out changeset 06858ea4b9d01dab0ce54891221bd1534a9c5ade
William Pitcock <nenolod@atheme.org>
parents:
2863
diff
changeset
|
12 * GNU General Public License for more details. |
2739
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
13 * |
2892
2f5e02538dfa
Backed out changeset 06858ea4b9d01dab0ce54891221bd1534a9c5ade
William Pitcock <nenolod@atheme.org>
parents:
2863
diff
changeset
|
14 * You should have received a copy of the GNU General Public License |
3121
3b6d316f8b09
GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents:
2892
diff
changeset
|
15 * along with this program. If not, see <http://www.gnu.org/licenses>. |
3123
f1c756f39e6c
Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents:
3121
diff
changeset
|
16 * |
f1c756f39e6c
Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents:
3121
diff
changeset
|
17 * The Audacious team does not consider modular code linking to |
f1c756f39e6c
Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents:
3121
diff
changeset
|
18 * Audacious or using our public API to be a derived work. |
2739
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 |
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
21 /* 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
|
22 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
|
23 |
2775 | 24 #ifndef AUDDRCT_H |
25 #define AUDDRCT_H | |
26 | |
2739
953001c668ae
[svn] - added auddrct.c/h, a migration api for plugins that once used xmms_remote; to be completed
giacomo
parents:
diff
changeset
|
27 #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
|
28 |
2742 | 29 /* player */ |
3753 | 30 void drct_quit ( void ); |
31 void drct_eject ( void ); | |
32 void drct_jtf_show ( void ); | |
33 gboolean drct_main_win_is_visible ( void ); | |
34 void drct_main_win_toggle ( gboolean ); | |
35 gboolean drct_eq_win_is_visible ( void ); | |
36 void drct_eq_win_toggle ( gboolean ); | |
37 gboolean drct_pl_win_is_visible ( void ); | |
38 void drct_pl_win_toggle ( gboolean ); | |
39 void drct_set_skin(gchar *skinfile); | |
40 void 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 */ |
3753 | 43 void drct_play ( void ); |
44 void drct_pause ( void ); | |
45 void drct_stop ( void ); | |
46 gboolean drct_get_playing ( void ); | |
47 gboolean drct_get_paused ( void ); | |
48 gboolean drct_get_stopped ( void ); | |
49 void drct_get_info( gint *rate, gint *freq, gint *nch); | |
50 gint drct_get_time ( void ); | |
51 void drct_seek ( guint pos ); | |
52 void drct_get_volume( gint *vl, gint *vr ); | |
53 void drct_set_volume( gint vl, gint vr ); | |
54 void drct_get_volume_main( gint *v ); | |
55 void drct_set_volume_main( gint v ); | |
56 void drct_get_volume_balance( gint *b ); | |
57 void drct_set_volume_balance( gint b ); | |
2742 | 58 |
59 /* playlist */ | |
3753 | 60 void drct_pl_next( void ); |
61 void drct_pl_prev( void ); | |
62 gboolean drct_pl_repeat_is_enabled ( void ); | |
63 void drct_pl_repeat_toggle ( void ); | |
64 gboolean drct_pl_repeat_is_shuffled ( void ); | |
65 void drct_pl_shuffle_toggle ( void ); | |
66 gchar *drct_pl_get_title( gint pos ); | |
67 gint drct_pl_get_time( gint pos ); | |
68 gint drct_pl_get_pos( void ); | |
69 gchar *drct_pl_get_file( gint pos ); | |
70 void drct_pl_add ( GList * list ); | |
71 void drct_pl_clear ( void ); | |
72 gint drct_pl_get_length( void ); | |
73 void drct_pl_delete ( gint pos ); | |
74 void drct_pl_set_pos( gint pos ); | |
75 void drct_pl_ins_url_string( gchar * string, gint pos ); | |
76 void drct_pl_add_url_string( gchar * string ); | |
77 void drct_pl_enqueue_to_temp( gchar * string ); | |
2775 | 78 |
79 /* playqueue */ | |
3753 | 80 gint drct_pq_get_length( void ); |
81 void drct_pq_add( gint pos ); | |
82 void drct_pq_remove( gint pos ); | |
83 void drct_pq_clear( void ); | |
84 gboolean drct_pq_is_queued( gint pos ); | |
85 gint drct_pq_get_position( gint pos ); | |
86 gint drct_pq_get_queue_position( gint pos ); | |
2775 | 87 |
2803
2d915b3e3e52
[svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents:
2785
diff
changeset
|
88 /* 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
|
89 #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
|
90 #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
|
91 #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
|
92 #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
|
93 #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
|
94 #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
|
95 #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
|
96 #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
|
97 #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
|
98 #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
|
99 #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
|
100 #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
|
101 #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
|
102 #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
|
103 |
2d915b3e3e52
[svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents:
2785
diff
changeset
|
104 #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
|
105 #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
|
106 #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
|
107 #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
|
108 #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
|
109 #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
|
110 #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
|
111 #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
|
112 #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
|
113 #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
|
114 #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
|
115 #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
|
116 #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
|
117 #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
|
118 #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
|
119 |
2d915b3e3e52
[svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents:
2785
diff
changeset
|
120 #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
|
121 #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
|
122 #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
|
123 #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
|
124 #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
|
125 #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
|
126 #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
|
127 |
2775 | 128 #endif |