Mercurial > audlegacy
annotate src/audacious/auddrct.h @ 4702:1cdfff982241
temporary fix until we get rid of legacy directory
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Sun, 06 Jul 2008 18:46:11 +0200 |
parents | d27f00f6b568 |
children |
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 |
4557
2eee464379dc
Clean up header multiple inclusion guards (e.g. #ifndef FOO_H/#define FOO_H)
Matti Hamalainen <ccr@tnsp.org>
parents:
4509
diff
changeset
|
24 #ifndef AUDACIOUS_AUDDRCT_H |
2eee464379dc
Clean up header multiple inclusion guards (e.g. #ifndef FOO_H/#define FOO_H)
Matti Hamalainen <ccr@tnsp.org>
parents:
4509
diff
changeset
|
25 #define AUDACIOUS_AUDDRCT_H |
2775 | 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_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 */ |
4578
d27f00f6b568
add audacious_drct_initiate
Tomasz Mon <desowin@gmail.com>
parents:
4573
diff
changeset
|
42 void drct_initiate ( void ); |
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 ); | |
4573
11f7874f3a95
add audacious_drct_get_length
Tomasz Mon <desowin@gmail.com>
parents:
4557
diff
changeset
|
51 gint drct_get_length ( void ); |
3753 | 52 void drct_seek ( guint pos ); |
53 void drct_get_volume( gint *vl, gint *vr ); | |
54 void drct_set_volume( gint vl, gint vr ); | |
55 void drct_get_volume_main( gint *v ); | |
56 void drct_set_volume_main( gint v ); | |
57 void drct_get_volume_balance( gint *b ); | |
58 void drct_set_volume_balance( gint b ); | |
2742 | 59 |
60 /* playlist */ | |
3753 | 61 void drct_pl_next( void ); |
62 void drct_pl_prev( void ); | |
63 gboolean drct_pl_repeat_is_enabled ( void ); | |
64 void drct_pl_repeat_toggle ( void ); | |
65 gboolean drct_pl_repeat_is_shuffled ( void ); | |
66 void drct_pl_shuffle_toggle ( void ); | |
67 gchar *drct_pl_get_title( gint pos ); | |
68 gint drct_pl_get_time( gint pos ); | |
69 gint drct_pl_get_pos( void ); | |
70 gchar *drct_pl_get_file( gint pos ); | |
71 void drct_pl_add ( GList * list ); | |
72 void drct_pl_clear ( void ); | |
73 gint drct_pl_get_length( void ); | |
74 void drct_pl_delete ( gint pos ); | |
75 void drct_pl_set_pos( gint pos ); | |
76 void drct_pl_ins_url_string( gchar * string, gint pos ); | |
77 void drct_pl_add_url_string( gchar * string ); | |
78 void drct_pl_enqueue_to_temp( gchar * string ); | |
2775 | 79 |
80 /* playqueue */ | |
3753 | 81 gint drct_pq_get_length( void ); |
82 void drct_pq_add( gint pos ); | |
83 void drct_pq_remove( gint pos ); | |
84 void drct_pq_clear( void ); | |
85 gboolean drct_pq_is_queued( gint pos ); | |
86 gint drct_pq_get_position( gint pos ); | |
87 gint drct_pq_get_queue_position( gint pos ); | |
2775 | 88 |
2803
2d915b3e3e52
[svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents:
2785
diff
changeset
|
89 /* 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
|
90 #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
|
91 #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
|
92 #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
|
93 #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
|
94 #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
|
95 #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
|
96 #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
|
97 #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
|
98 #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
|
99 #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
|
100 #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
|
101 #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
|
102 #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
|
103 #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
|
104 |
2d915b3e3e52
[svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents:
2785
diff
changeset
|
105 #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
|
106 #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
|
107 #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
|
108 #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
|
109 #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
|
110 #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
|
111 #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
|
112 #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
|
113 #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
|
114 #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
|
115 #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
|
116 #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
|
117 #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
|
118 #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
|
119 #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
|
120 |
2d915b3e3e52
[svn] - adjust naming scheme of audacious_drct_* to audacious_remote_* by defining macros.
yaz
parents:
2785
diff
changeset
|
121 #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
|
122 #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
|
123 #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
|
124 #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
|
125 #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
|
126 #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
|
127 #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
|
128 |
4557
2eee464379dc
Clean up header multiple inclusion guards (e.g. #ifndef FOO_H/#define FOO_H)
Matti Hamalainen <ccr@tnsp.org>
parents:
4509
diff
changeset
|
129 #endif /* AUDACIOUS_AUDDRCT_H */ |