Mercurial > audlegacy
comparison src/libaudclient/audctrl.c @ 4834:38b491487bd8
renamed dbus symbol to audlegacy
| author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
|---|---|
| date | Thu, 21 May 2009 19:17:02 +0900 |
| parents | 7bf7f83a217e |
| children |
comparison
equal
deleted
inserted
replaced
| 4833:34d54dc5576d | 4834:38b491487bd8 |
|---|---|
| 52 while(data) { | 52 while(data) { |
| 53 glist = g_list_append(glist, (gpointer)data); | 53 glist = g_list_append(glist, (gpointer)data); |
| 54 data++; | 54 data++; |
| 55 } | 55 } |
| 56 | 56 |
| 57 org_atheme_audacious_playlist_add(proxy, (gpointer)glist, &error); | 57 org_atheme_audlegacy_playlist_add(proxy, (gpointer)glist, &error); |
| 58 | 58 |
| 59 g_list_free(glist); | 59 g_list_free(glist); |
| 60 glist = NULL; | 60 glist = NULL; |
| 61 | 61 |
| 62 if (!enqueue) | 62 if (!enqueue) |
| 71 * | 71 * |
| 72 * Return value: The version of Audacious. | 72 * Return value: The version of Audacious. |
| 73 **/ | 73 **/ |
| 74 gchar *audacious_remote_get_version(DBusGProxy *proxy) { | 74 gchar *audacious_remote_get_version(DBusGProxy *proxy) { |
| 75 char *string = NULL; | 75 char *string = NULL; |
| 76 org_atheme_audacious_version(proxy, &string, &error); | 76 org_atheme_audlegacy_version(proxy, &string, &error); |
| 77 g_clear_error(&error); | 77 g_clear_error(&error); |
| 78 | 78 |
| 79 return (string ? string : NULL); | 79 return (string ? string : NULL); |
| 80 } | 80 } |
| 81 | 81 |
| 87 * Sends a list of URIs to Audacious to add to the playlist. | 87 * Sends a list of URIs to Audacious to add to the playlist. |
| 88 **/ | 88 **/ |
| 89 void audacious_remote_playlist_add(DBusGProxy *proxy, GList *list) { | 89 void audacious_remote_playlist_add(DBusGProxy *proxy, GList *list) { |
| 90 GList *iter; | 90 GList *iter; |
| 91 for (iter = list; iter != NULL; iter = g_list_next(iter)) | 91 for (iter = list; iter != NULL; iter = g_list_next(iter)) |
| 92 org_atheme_audacious_playlist_add(proxy, iter->data, &error); | 92 org_atheme_audlegacy_playlist_add(proxy, iter->data, &error); |
| 93 g_clear_error(&error); | 93 g_clear_error(&error); |
| 94 } | 94 } |
| 95 | 95 |
| 96 /** | 96 /** |
| 97 * audacious_remote_playlist_delete: | 97 * audacious_remote_playlist_delete: |
| 99 * @pos: The playlist position to delete. | 99 * @pos: The playlist position to delete. |
| 100 * | 100 * |
| 101 * Deletes a playlist entry. | 101 * Deletes a playlist entry. |
| 102 **/ | 102 **/ |
| 103 void audacious_remote_playlist_delete(DBusGProxy *proxy, guint pos) { | 103 void audacious_remote_playlist_delete(DBusGProxy *proxy, guint pos) { |
| 104 org_atheme_audacious_delete(proxy, pos, &error); | 104 org_atheme_audlegacy_delete(proxy, pos, &error); |
| 105 g_clear_error(&error); | 105 g_clear_error(&error); |
| 106 } | 106 } |
| 107 | 107 |
| 108 /** | 108 /** |
| 109 * audacious_remote_play: | 109 * audacious_remote_play: |
| 110 * @proxy: DBus proxy for audacious | 110 * @proxy: DBus proxy for audacious |
| 111 * | 111 * |
| 112 * Tells audacious to begin playback. | 112 * Tells audacious to begin playback. |
| 113 **/ | 113 **/ |
| 114 void audacious_remote_play(DBusGProxy *proxy) { | 114 void audacious_remote_play(DBusGProxy *proxy) { |
| 115 org_atheme_audacious_play(proxy, &error); | 115 org_atheme_audlegacy_play(proxy, &error); |
| 116 g_clear_error(&error); | 116 g_clear_error(&error); |
| 117 } | 117 } |
| 118 | 118 |
| 119 /** | 119 /** |
| 120 * audacious_remote_pause: | 120 * audacious_remote_pause: |
| 121 * @proxy: DBus proxy for audacious | 121 * @proxy: DBus proxy for audacious |
| 122 * | 122 * |
| 123 * Tells audacious to pause. | 123 * Tells audacious to pause. |
| 124 **/ | 124 **/ |
| 125 void audacious_remote_pause(DBusGProxy *proxy) { | 125 void audacious_remote_pause(DBusGProxy *proxy) { |
| 126 org_atheme_audacious_pause(proxy, &error); | 126 org_atheme_audlegacy_pause(proxy, &error); |
| 127 g_clear_error(&error); | 127 g_clear_error(&error); |
| 128 } | 128 } |
| 129 | 129 |
| 130 /** | 130 /** |
| 131 * audacious_remote_stop: | 131 * audacious_remote_stop: |
| 132 * @proxy: DBus proxy for audacious | 132 * @proxy: DBus proxy for audacious |
| 133 * | 133 * |
| 134 * Tells audacious to stop. | 134 * Tells audacious to stop. |
| 135 **/ | 135 **/ |
| 136 void audacious_remote_stop(DBusGProxy *proxy) { | 136 void audacious_remote_stop(DBusGProxy *proxy) { |
| 137 org_atheme_audacious_stop(proxy, &error); | 137 org_atheme_audlegacy_stop(proxy, &error); |
| 138 g_clear_error(&error); | 138 g_clear_error(&error); |
| 139 } | 139 } |
| 140 | 140 |
| 141 /** | 141 /** |
| 142 * audacious_remote_is_playing: | 142 * audacious_remote_is_playing: |
| 146 * | 146 * |
| 147 * Return value: TRUE if playing, FALSE otherwise. | 147 * Return value: TRUE if playing, FALSE otherwise. |
| 148 **/ | 148 **/ |
| 149 gboolean audacious_remote_is_playing(DBusGProxy *proxy) { | 149 gboolean audacious_remote_is_playing(DBusGProxy *proxy) { |
| 150 gboolean is_playing = FALSE; | 150 gboolean is_playing = FALSE; |
| 151 org_atheme_audacious_playing(proxy, &is_playing, &error); | 151 org_atheme_audlegacy_playing(proxy, &is_playing, &error); |
| 152 g_clear_error(&error); | 152 g_clear_error(&error); |
| 153 return is_playing; | 153 return is_playing; |
| 154 } | 154 } |
| 155 | 155 |
| 156 /** | 156 /** |
| 161 * | 161 * |
| 162 * Return value: TRUE if playing, FALSE otherwise. | 162 * Return value: TRUE if playing, FALSE otherwise. |
| 163 **/ | 163 **/ |
| 164 gboolean audacious_remote_is_paused(DBusGProxy *proxy) { | 164 gboolean audacious_remote_is_paused(DBusGProxy *proxy) { |
| 165 gboolean is_paused = FALSE; | 165 gboolean is_paused = FALSE; |
| 166 org_atheme_audacious_paused(proxy, &is_paused, &error); | 166 org_atheme_audlegacy_paused(proxy, &is_paused, &error); |
| 167 g_clear_error(&error); | 167 g_clear_error(&error); |
| 168 return is_paused; | 168 return is_paused; |
| 169 } | 169 } |
| 170 | 170 |
| 171 /** | 171 /** |
| 176 * | 176 * |
| 177 * Return value: The current playlist position. | 177 * Return value: The current playlist position. |
| 178 **/ | 178 **/ |
| 179 gint audacious_remote_get_playlist_pos(DBusGProxy *proxy) { | 179 gint audacious_remote_get_playlist_pos(DBusGProxy *proxy) { |
| 180 guint pos = 0; | 180 guint pos = 0; |
| 181 org_atheme_audacious_position(proxy, &pos, &error); | 181 org_atheme_audlegacy_position(proxy, &pos, &error); |
| 182 g_clear_error(&error); | 182 g_clear_error(&error); |
| 183 return pos; | 183 return pos; |
| 184 } | 184 } |
| 185 | 185 |
| 186 /** | 186 /** |
| 189 * @pos: Playlist position to jump to. | 189 * @pos: Playlist position to jump to. |
| 190 * | 190 * |
| 191 * Tells audacious to jump to a different playlist position. | 191 * Tells audacious to jump to a different playlist position. |
| 192 **/ | 192 **/ |
| 193 void audacious_remote_set_playlist_pos(DBusGProxy *proxy, guint pos) { | 193 void audacious_remote_set_playlist_pos(DBusGProxy *proxy, guint pos) { |
| 194 org_atheme_audacious_jump (proxy, pos, &error); | 194 org_atheme_audlegacy_jump (proxy, pos, &error); |
| 195 g_clear_error(&error); | 195 g_clear_error(&error); |
| 196 } | 196 } |
| 197 | 197 |
| 198 /** | 198 /** |
| 199 * audacious_remote_get_playlist_length: | 199 * audacious_remote_get_playlist_length: |
| 203 * | 203 * |
| 204 * Return value: The amount of entries in the playlist. | 204 * Return value: The amount of entries in the playlist. |
| 205 **/ | 205 **/ |
| 206 gint audacious_remote_get_playlist_length(DBusGProxy *proxy) { | 206 gint audacious_remote_get_playlist_length(DBusGProxy *proxy) { |
| 207 gint len = 0; | 207 gint len = 0; |
| 208 org_atheme_audacious_length(proxy, &len, &error); | 208 org_atheme_audlegacy_length(proxy, &len, &error); |
| 209 g_clear_error(&error); | 209 g_clear_error(&error); |
| 210 return len; | 210 return len; |
| 211 } | 211 } |
| 212 | 212 |
| 213 /** | 213 /** |
| 215 * @proxy: DBus proxy for audacious | 215 * @proxy: DBus proxy for audacious |
| 216 * | 216 * |
| 217 * Clears the playlist. | 217 * Clears the playlist. |
| 218 **/ | 218 **/ |
| 219 void audacious_remote_playlist_clear(DBusGProxy *proxy) { | 219 void audacious_remote_playlist_clear(DBusGProxy *proxy) { |
| 220 org_atheme_audacious_clear(proxy, &error); | 220 org_atheme_audlegacy_clear(proxy, &error); |
| 221 g_clear_error(&error); | 221 g_clear_error(&error); |
| 222 } | 222 } |
| 223 | 223 |
| 224 /** | 224 /** |
| 225 * audacious_remote_get_output_time: | 225 * audacious_remote_get_output_time: |
| 229 * | 229 * |
| 230 * Return value: The current output position. | 230 * Return value: The current output position. |
| 231 **/ | 231 **/ |
| 232 gint audacious_remote_get_output_time(DBusGProxy *proxy) { | 232 gint audacious_remote_get_output_time(DBusGProxy *proxy) { |
| 233 guint time = 0; | 233 guint time = 0; |
| 234 org_atheme_audacious_time(proxy, &time, &error); | 234 org_atheme_audlegacy_time(proxy, &time, &error); |
| 235 g_clear_error(&error); | 235 g_clear_error(&error); |
| 236 return time; | 236 return time; |
| 237 } | 237 } |
| 238 | 238 |
| 239 /** | 239 /** |
| 242 * @pos: The time (in milliseconds) to jump to. | 242 * @pos: The time (in milliseconds) to jump to. |
| 243 * | 243 * |
| 244 * Tells audacious to seek to a new time position. | 244 * Tells audacious to seek to a new time position. |
| 245 **/ | 245 **/ |
| 246 void audacious_remote_jump_to_time(DBusGProxy *proxy, guint pos) { | 246 void audacious_remote_jump_to_time(DBusGProxy *proxy, guint pos) { |
| 247 org_atheme_audacious_seek (proxy, pos, &error); | 247 org_atheme_audlegacy_seek (proxy, pos, &error); |
| 248 g_clear_error(&error); | 248 g_clear_error(&error); |
| 249 } | 249 } |
| 250 | 250 |
| 251 /** | 251 /** |
| 252 * audacious_remote_get_volume: | 252 * audacious_remote_get_volume: |
| 255 * @vr: Pointer to integer containing the right channel's volume. | 255 * @vr: Pointer to integer containing the right channel's volume. |
| 256 * | 256 * |
| 257 * Queries audacious about the current volume. | 257 * Queries audacious about the current volume. |
| 258 **/ | 258 **/ |
| 259 void audacious_remote_get_volume(DBusGProxy *proxy, gint * vl, gint * vr) { | 259 void audacious_remote_get_volume(DBusGProxy *proxy, gint * vl, gint * vr) { |
| 260 org_atheme_audacious_volume(proxy, vl, vr, &error); | 260 org_atheme_audlegacy_volume(proxy, vl, vr, &error); |
| 261 g_clear_error(&error); | 261 g_clear_error(&error); |
| 262 } | 262 } |
| 263 | 263 |
| 264 /** | 264 /** |
| 265 * audacious_remote_get_main_volume: | 265 * audacious_remote_get_main_volume: |
| 285 * | 285 * |
| 286 * Return value: The current balance. | 286 * Return value: The current balance. |
| 287 **/ | 287 **/ |
| 288 gint audacious_remote_get_balance(DBusGProxy *proxy) { | 288 gint audacious_remote_get_balance(DBusGProxy *proxy) { |
| 289 gint balance = 50; | 289 gint balance = 50; |
| 290 org_atheme_audacious_balance(proxy, &balance, &error); | 290 org_atheme_audlegacy_balance(proxy, &balance, &error); |
| 291 g_clear_error(&error); | 291 g_clear_error(&error); |
| 292 return balance; | 292 return balance; |
| 293 } | 293 } |
| 294 | 294 |
| 295 /** | 295 /** |
| 299 * @vr: The volume for the right channel. | 299 * @vr: The volume for the right channel. |
| 300 * | 300 * |
| 301 * Sets the volume for the left and right channels in Audacious. | 301 * Sets the volume for the left and right channels in Audacious. |
| 302 **/ | 302 **/ |
| 303 void audacious_remote_set_volume(DBusGProxy *proxy, gint vl, gint vr) { | 303 void audacious_remote_set_volume(DBusGProxy *proxy, gint vl, gint vr) { |
| 304 org_atheme_audacious_set_volume(proxy, vl, vr, &error); | 304 org_atheme_audlegacy_set_volume(proxy, vl, vr, &error); |
| 305 g_clear_error(&error); | 305 g_clear_error(&error); |
| 306 } | 306 } |
| 307 | 307 |
| 308 | 308 |
| 309 /** | 309 /** |
| 366 * | 366 * |
| 367 * Return value: A path to the file in the playlist at %pos position. | 367 * Return value: A path to the file in the playlist at %pos position. |
| 368 **/ | 368 **/ |
| 369 gchar *audacious_remote_get_playlist_file(DBusGProxy *proxy, guint pos) { | 369 gchar *audacious_remote_get_playlist_file(DBusGProxy *proxy, guint pos) { |
| 370 gchar *out = NULL; | 370 gchar *out = NULL; |
| 371 org_atheme_audacious_song_filename(proxy, pos, &out, &error); | 371 org_atheme_audlegacy_song_filename(proxy, pos, &out, &error); |
| 372 g_clear_error(&error); | 372 g_clear_error(&error); |
| 373 return out; | 373 return out; |
| 374 } | 374 } |
| 375 | 375 |
| 376 /** | 376 /** |
| 382 * | 382 * |
| 383 * Return value: The title for the entry in the playlist at %pos position. | 383 * Return value: The title for the entry in the playlist at %pos position. |
| 384 **/ | 384 **/ |
| 385 gchar *audacious_remote_get_playlist_title(DBusGProxy *proxy, guint pos) { | 385 gchar *audacious_remote_get_playlist_title(DBusGProxy *proxy, guint pos) { |
| 386 gchar *out = NULL; | 386 gchar *out = NULL; |
| 387 org_atheme_audacious_song_title(proxy, pos, &out, &error); | 387 org_atheme_audlegacy_song_title(proxy, pos, &out, &error); |
| 388 g_clear_error(&error); | 388 g_clear_error(&error); |
| 389 return out; | 389 return out; |
| 390 } | 390 } |
| 391 | 391 |
| 392 /** | 392 /** |
| 398 * | 398 * |
| 399 * Return value: The length of the entry in the playlist at %pos position. | 399 * Return value: The length of the entry in the playlist at %pos position. |
| 400 **/ | 400 **/ |
| 401 gint audacious_remote_get_playlist_time(DBusGProxy *proxy, guint pos) { | 401 gint audacious_remote_get_playlist_time(DBusGProxy *proxy, guint pos) { |
| 402 gint out = 0; | 402 gint out = 0; |
| 403 org_atheme_audacious_song_frames(proxy, pos, &out, &error); | 403 org_atheme_audlegacy_song_frames(proxy, pos, &out, &error); |
| 404 g_clear_error(&error); | 404 g_clear_error(&error); |
| 405 return out; | 405 return out; |
| 406 } | 406 } |
| 407 | 407 |
| 408 /** | 408 /** |
| 414 * | 414 * |
| 415 * Queries Audacious about the current audio format. | 415 * Queries Audacious about the current audio format. |
| 416 **/ | 416 **/ |
| 417 void audacious_remote_get_info(DBusGProxy *proxy, gint *rate, gint *freq, | 417 void audacious_remote_get_info(DBusGProxy *proxy, gint *rate, gint *freq, |
| 418 gint *nch) { | 418 gint *nch) { |
| 419 org_atheme_audacious_info(proxy, rate, freq, nch, &error); | 419 org_atheme_audlegacy_info(proxy, rate, freq, nch, &error); |
| 420 g_clear_error(&error); | 420 g_clear_error(&error); |
| 421 } | 421 } |
| 422 | 422 |
| 423 /** | 423 /** |
| 424 * audacious_remote_main_win_toggle: | 424 * audacious_remote_main_win_toggle: |
| 426 * @show: Whether or not to show the main window. | 426 * @show: Whether or not to show the main window. |
| 427 * | 427 * |
| 428 * Toggles the main window's visibility. | 428 * Toggles the main window's visibility. |
| 429 **/ | 429 **/ |
| 430 void audacious_remote_main_win_toggle(DBusGProxy *proxy, gboolean show) { | 430 void audacious_remote_main_win_toggle(DBusGProxy *proxy, gboolean show) { |
| 431 org_atheme_audacious_show_main_win(proxy, show, &error); | 431 org_atheme_audlegacy_show_main_win(proxy, show, &error); |
| 432 g_clear_error(&error); | 432 g_clear_error(&error); |
| 433 } | 433 } |
| 434 | 434 |
| 435 /** | 435 /** |
| 436 * audacious_remote_pl_win_toggle: | 436 * audacious_remote_pl_win_toggle: |
| 438 * @show: Whether or not to show the playlist window. | 438 * @show: Whether or not to show the playlist window. |
| 439 * | 439 * |
| 440 * Toggles the playlist window's visibility. | 440 * Toggles the playlist window's visibility. |
| 441 **/ | 441 **/ |
| 442 void audacious_remote_pl_win_toggle(DBusGProxy *proxy, gboolean show) { | 442 void audacious_remote_pl_win_toggle(DBusGProxy *proxy, gboolean show) { |
| 443 org_atheme_audacious_show_playlist(proxy, show, &error); | 443 org_atheme_audlegacy_show_playlist(proxy, show, &error); |
| 444 g_clear_error(&error); | 444 g_clear_error(&error); |
| 445 } | 445 } |
| 446 | 446 |
| 447 /** | 447 /** |
| 448 * audacious_remote_eq_win_toggle: | 448 * audacious_remote_eq_win_toggle: |
| 450 * @show: Whether or not to show the equalizer window. | 450 * @show: Whether or not to show the equalizer window. |
| 451 * | 451 * |
| 452 * Toggles the equalizer window's visibility. | 452 * Toggles the equalizer window's visibility. |
| 453 **/ | 453 **/ |
| 454 void audacious_remote_eq_win_toggle(DBusGProxy *proxy, gboolean show) { | 454 void audacious_remote_eq_win_toggle(DBusGProxy *proxy, gboolean show) { |
| 455 org_atheme_audacious_show_equalizer(proxy, show, &error); | 455 org_atheme_audlegacy_show_equalizer(proxy, show, &error); |
| 456 g_clear_error(&error); | 456 g_clear_error(&error); |
| 457 } | 457 } |
| 458 | 458 |
| 459 /** | 459 /** |
| 460 * audacious_remote_is_main_win: | 460 * audacious_remote_is_main_win: |
| 464 * | 464 * |
| 465 * Return value: TRUE if visible, FALSE otherwise. | 465 * Return value: TRUE if visible, FALSE otherwise. |
| 466 **/ | 466 **/ |
| 467 gboolean audacious_remote_is_main_win(DBusGProxy *proxy) { | 467 gboolean audacious_remote_is_main_win(DBusGProxy *proxy) { |
| 468 gboolean visible = TRUE; | 468 gboolean visible = TRUE; |
| 469 org_atheme_audacious_main_win_visible(proxy, &visible, &error); | 469 org_atheme_audlegacy_main_win_visible(proxy, &visible, &error); |
| 470 g_clear_error(&error); | 470 g_clear_error(&error); |
| 471 return visible; | 471 return visible; |
| 472 } | 472 } |
| 473 | 473 |
| 474 /** | 474 /** |
| 479 * | 479 * |
| 480 * Return value: TRUE if visible, FALSE otherwise. | 480 * Return value: TRUE if visible, FALSE otherwise. |
| 481 **/ | 481 **/ |
| 482 gboolean audacious_remote_is_pl_win(DBusGProxy *proxy) { | 482 gboolean audacious_remote_is_pl_win(DBusGProxy *proxy) { |
| 483 gboolean visible = TRUE; | 483 gboolean visible = TRUE; |
| 484 org_atheme_audacious_playlist_visible(proxy, &visible, &error); | 484 org_atheme_audlegacy_playlist_visible(proxy, &visible, &error); |
| 485 g_clear_error(&error); | 485 g_clear_error(&error); |
| 486 return visible; | 486 return visible; |
| 487 } | 487 } |
| 488 | 488 |
| 489 /** | 489 /** |
| 494 * | 494 * |
| 495 * Return value: TRUE if visible, FALSE otherwise. | 495 * Return value: TRUE if visible, FALSE otherwise. |
| 496 **/ | 496 **/ |
| 497 gboolean audacious_remote_is_eq_win(DBusGProxy *proxy) { | 497 gboolean audacious_remote_is_eq_win(DBusGProxy *proxy) { |
| 498 gboolean visible = FALSE; | 498 gboolean visible = FALSE; |
| 499 org_atheme_audacious_equalizer_visible(proxy, &visible, &error); | 499 org_atheme_audlegacy_equalizer_visible(proxy, &visible, &error); |
| 500 g_clear_error(&error); | 500 g_clear_error(&error); |
| 501 return visible; | 501 return visible; |
| 502 } | 502 } |
| 503 | 503 |
| 504 /** | 504 /** |
| 517 * @show: shows/hides | 517 * @show: shows/hides |
| 518 * | 518 * |
| 519 * Tells audacious to show/hide the preferences pane. | 519 * Tells audacious to show/hide the preferences pane. |
| 520 **/ | 520 **/ |
| 521 void audacious_remote_toggle_prefs_box(DBusGProxy *proxy, gboolean show) { | 521 void audacious_remote_toggle_prefs_box(DBusGProxy *proxy, gboolean show) { |
| 522 org_atheme_audacious_show_prefs_box(proxy, show, &error); | 522 org_atheme_audlegacy_show_prefs_box(proxy, show, &error); |
| 523 g_clear_error(&error); | 523 g_clear_error(&error); |
| 524 } | 524 } |
| 525 | 525 |
| 526 /** | 526 /** |
| 527 * audacious_remote_show_about_box: | 527 * audacious_remote_show_about_box: |
| 539 * @show: shows/hides | 539 * @show: shows/hides |
| 540 * | 540 * |
| 541 * Tells audacious to show/hide the about box. | 541 * Tells audacious to show/hide the about box. |
| 542 **/ | 542 **/ |
| 543 void audacious_remote_toggle_about_box(DBusGProxy *proxy, gboolean show) { | 543 void audacious_remote_toggle_about_box(DBusGProxy *proxy, gboolean show) { |
| 544 org_atheme_audacious_show_about_box(proxy, show, &error); | 544 org_atheme_audlegacy_show_about_box(proxy, show, &error); |
| 545 g_clear_error(&error); | 545 g_clear_error(&error); |
| 546 } | 546 } |
| 547 | 547 |
| 548 /** | 548 /** |
| 549 * audacious_remote_toggle_aot: | 549 * audacious_remote_toggle_aot: |
| 551 * @ontop: Whether or not Audacious should be always-on-top. | 551 * @ontop: Whether or not Audacious should be always-on-top. |
| 552 * | 552 * |
| 553 * Tells audacious to toggle the always-on-top feature. | 553 * Tells audacious to toggle the always-on-top feature. |
| 554 **/ | 554 **/ |
| 555 void audacious_remote_toggle_aot(DBusGProxy *proxy, gboolean ontop) { | 555 void audacious_remote_toggle_aot(DBusGProxy *proxy, gboolean ontop) { |
| 556 org_atheme_audacious_toggle_aot(proxy, ontop, &error); | 556 org_atheme_audlegacy_toggle_aot(proxy, ontop, &error); |
| 557 g_clear_error(&error); | 557 g_clear_error(&error); |
| 558 } | 558 } |
| 559 | 559 |
| 560 /** | 560 /** |
| 561 * audacious_remote_eject: | 561 * audacious_remote_eject: |
| 562 * @proxy: DBus proxy for audacious | 562 * @proxy: DBus proxy for audacious |
| 563 * | 563 * |
| 564 * Tells audacious to display the open files pane. | 564 * Tells audacious to display the open files pane. |
| 565 **/ | 565 **/ |
| 566 void audacious_remote_eject(DBusGProxy *proxy) { | 566 void audacious_remote_eject(DBusGProxy *proxy) { |
| 567 org_atheme_audacious_eject(proxy, &error); | 567 org_atheme_audlegacy_eject(proxy, &error); |
| 568 g_clear_error(&error); | 568 g_clear_error(&error); |
| 569 } | 569 } |
| 570 | 570 |
| 571 /** | 571 /** |
| 572 * audacious_remote_playlist_prev: | 572 * audacious_remote_playlist_prev: |
| 573 * @proxy: DBus proxy for audacious | 573 * @proxy: DBus proxy for audacious |
| 574 * | 574 * |
| 575 * Tells audacious to move backwards in the playlist. | 575 * Tells audacious to move backwards in the playlist. |
| 576 **/ | 576 **/ |
| 577 void audacious_remote_playlist_prev(DBusGProxy *proxy) { | 577 void audacious_remote_playlist_prev(DBusGProxy *proxy) { |
| 578 org_atheme_audacious_reverse(proxy, &error); | 578 org_atheme_audlegacy_reverse(proxy, &error); |
| 579 g_clear_error(&error); | 579 g_clear_error(&error); |
| 580 } | 580 } |
| 581 | 581 |
| 582 /** | 582 /** |
| 583 * audacious_remote_playlist_next: | 583 * audacious_remote_playlist_next: |
| 584 * @proxy: DBus proxy for audacious | 584 * @proxy: DBus proxy for audacious |
| 585 * | 585 * |
| 586 * Tells audacious to move forward in the playlist. | 586 * Tells audacious to move forward in the playlist. |
| 587 **/ | 587 **/ |
| 588 void audacious_remote_playlist_next(DBusGProxy *proxy) { | 588 void audacious_remote_playlist_next(DBusGProxy *proxy) { |
| 589 org_atheme_audacious_advance(proxy, &error); | 589 org_atheme_audlegacy_advance(proxy, &error); |
| 590 g_clear_error(&error); | 590 g_clear_error(&error); |
| 591 } | 591 } |
| 592 | 592 |
| 593 /** | 593 /** |
| 594 * audacious_remote_playlist_add_url_string: | 594 * audacious_remote_playlist_add_url_string: |
| 597 * | 597 * |
| 598 * Tells audacious to add an URI to the playlist. | 598 * Tells audacious to add an URI to the playlist. |
| 599 **/ | 599 **/ |
| 600 void audacious_remote_playlist_add_url_string(DBusGProxy *proxy, | 600 void audacious_remote_playlist_add_url_string(DBusGProxy *proxy, |
| 601 gchar *string) { | 601 gchar *string) { |
| 602 org_atheme_audacious_add_url(proxy, string, &error); | 602 org_atheme_audlegacy_add_url(proxy, string, &error); |
| 603 g_clear_error(&error); | 603 g_clear_error(&error); |
| 604 } | 604 } |
| 605 | 605 |
| 606 /** | 606 /** |
| 607 * audacious_remote_is_running: | 607 * audacious_remote_is_running: |
| 611 * | 611 * |
| 612 * Return value: TRUE if yes, otherwise FALSE. | 612 * Return value: TRUE if yes, otherwise FALSE. |
| 613 **/ | 613 **/ |
| 614 gboolean audacious_remote_is_running(DBusGProxy *proxy) { | 614 gboolean audacious_remote_is_running(DBusGProxy *proxy) { |
| 615 char *string = NULL; | 615 char *string = NULL; |
| 616 org_atheme_audacious_version(proxy, &string, &error); | 616 org_atheme_audlegacy_version(proxy, &string, &error); |
| 617 g_clear_error(&error); | 617 g_clear_error(&error); |
| 618 if(string) { | 618 if(string) { |
| 619 g_free(string); | 619 g_free(string); |
| 620 return TRUE; | 620 return TRUE; |
| 621 } | 621 } |
| 628 * @proxy: DBus proxy for audacious | 628 * @proxy: DBus proxy for audacious |
| 629 * | 629 * |
| 630 * Tells audacious to toggle the repeat feature. | 630 * Tells audacious to toggle the repeat feature. |
| 631 **/ | 631 **/ |
| 632 void audacious_remote_toggle_repeat(DBusGProxy *proxy) { | 632 void audacious_remote_toggle_repeat(DBusGProxy *proxy) { |
| 633 org_atheme_audacious_toggle_repeat(proxy, &error); | 633 org_atheme_audlegacy_toggle_repeat(proxy, &error); |
| 634 g_clear_error(&error); | 634 g_clear_error(&error); |
| 635 } | 635 } |
| 636 | 636 |
| 637 /** | 637 /** |
| 638 * audacious_remote_toggle_shuffle: | 638 * audacious_remote_toggle_shuffle: |
| 639 * @proxy: DBus proxy for audacious | 639 * @proxy: DBus proxy for audacious |
| 640 * | 640 * |
| 641 * Tells audacious to toggle the shuffle feature. | 641 * Tells audacious to toggle the shuffle feature. |
| 642 **/ | 642 **/ |
| 643 void audacious_remote_toggle_shuffle(DBusGProxy *proxy) { | 643 void audacious_remote_toggle_shuffle(DBusGProxy *proxy) { |
| 644 org_atheme_audacious_toggle_shuffle (proxy, &error); | 644 org_atheme_audlegacy_toggle_shuffle (proxy, &error); |
| 645 g_clear_error(&error); | 645 g_clear_error(&error); |
| 646 } | 646 } |
| 647 | 647 |
| 648 /** | 648 /** |
| 649 * audacious_remote_is_repeat: | 649 * audacious_remote_is_repeat: |
| 653 * | 653 * |
| 654 * Return value: TRUE if yes, otherwise FALSE. | 654 * Return value: TRUE if yes, otherwise FALSE. |
| 655 **/ | 655 **/ |
| 656 gboolean audacious_remote_is_repeat(DBusGProxy *proxy) { | 656 gboolean audacious_remote_is_repeat(DBusGProxy *proxy) { |
| 657 gboolean is_repeat; | 657 gboolean is_repeat; |
| 658 org_atheme_audacious_repeat(proxy, &is_repeat, &error); | 658 org_atheme_audlegacy_repeat(proxy, &is_repeat, &error); |
| 659 g_clear_error(&error); | 659 g_clear_error(&error); |
| 660 return is_repeat; | 660 return is_repeat; |
| 661 } | 661 } |
| 662 | 662 |
| 663 /** | 663 /** |
| 668 * | 668 * |
| 669 * Return value: TRUE if yes, otherwise FALSE. | 669 * Return value: TRUE if yes, otherwise FALSE. |
| 670 **/ | 670 **/ |
| 671 gboolean audacious_remote_is_shuffle(DBusGProxy *proxy) { | 671 gboolean audacious_remote_is_shuffle(DBusGProxy *proxy) { |
| 672 gboolean is_shuffle; | 672 gboolean is_shuffle; |
| 673 org_atheme_audacious_shuffle(proxy, &is_shuffle, &error); | 673 org_atheme_audlegacy_shuffle(proxy, &is_shuffle, &error); |
| 674 g_clear_error(&error); | 674 g_clear_error(&error); |
| 675 return is_shuffle; | 675 return is_shuffle; |
| 676 } | 676 } |
| 677 | 677 |
| 678 /** | 678 /** |
| 682 * @bands: Pointer to array of band settings. | 682 * @bands: Pointer to array of band settings. |
| 683 * | 683 * |
| 684 * Queries audacious about the equalizer settings. | 684 * Queries audacious about the equalizer settings. |
| 685 **/ | 685 **/ |
| 686 void audacious_remote_get_eq(DBusGProxy *proxy, gdouble *preamp, GArray **bands) { | 686 void audacious_remote_get_eq(DBusGProxy *proxy, gdouble *preamp, GArray **bands) { |
| 687 org_atheme_audacious_get_eq(proxy, preamp, bands, &error); | 687 org_atheme_audlegacy_get_eq(proxy, preamp, bands, &error); |
| 688 g_clear_error(&error); | 688 g_clear_error(&error); |
| 689 } | 689 } |
| 690 | 690 |
| 691 /** | 691 /** |
| 692 * audacious_remote_get_eq_preamp: | 692 * audacious_remote_get_eq_preamp: |
| 697 * Return value: The equalizer preamp's setting. | 697 * Return value: The equalizer preamp's setting. |
| 698 **/ | 698 **/ |
| 699 gdouble audacious_remote_get_eq_preamp(DBusGProxy *proxy) { | 699 gdouble audacious_remote_get_eq_preamp(DBusGProxy *proxy) { |
| 700 gdouble preamp = 0.0; | 700 gdouble preamp = 0.0; |
| 701 | 701 |
| 702 org_atheme_audacious_get_eq_preamp(proxy, &preamp, &error); | 702 org_atheme_audlegacy_get_eq_preamp(proxy, &preamp, &error); |
| 703 g_clear_error(&error); | 703 g_clear_error(&error); |
| 704 | 704 |
| 705 return preamp; | 705 return preamp; |
| 706 } | 706 } |
| 707 | 707 |
| 715 * Return value: The equalizer band's value. | 715 * Return value: The equalizer band's value. |
| 716 **/ | 716 **/ |
| 717 gdouble audacious_remote_get_eq_band(DBusGProxy *proxy, gint band) { | 717 gdouble audacious_remote_get_eq_band(DBusGProxy *proxy, gint band) { |
| 718 gdouble value = 0.0; | 718 gdouble value = 0.0; |
| 719 | 719 |
| 720 org_atheme_audacious_get_eq_band(proxy, band, &value, &error); | 720 org_atheme_audlegacy_get_eq_band(proxy, band, &value, &error); |
| 721 g_clear_error(&error); | 721 g_clear_error(&error); |
| 722 | 722 |
| 723 return value; | 723 return value; |
| 724 } | 724 } |
| 725 | 725 |
| 730 * @bands: Array of band settings. | 730 * @bands: Array of band settings. |
| 731 * | 731 * |
| 732 * Tells audacious to set the equalizer up using the provided values. | 732 * Tells audacious to set the equalizer up using the provided values. |
| 733 **/ | 733 **/ |
| 734 void audacious_remote_set_eq(DBusGProxy *proxy, gdouble preamp, GArray *bands) { | 734 void audacious_remote_set_eq(DBusGProxy *proxy, gdouble preamp, GArray *bands) { |
| 735 org_atheme_audacious_set_eq(proxy, preamp, bands, &error); | 735 org_atheme_audlegacy_set_eq(proxy, preamp, bands, &error); |
| 736 g_clear_error(&error); | 736 g_clear_error(&error); |
| 737 } | 737 } |
| 738 | 738 |
| 739 /** | 739 /** |
| 740 * audacious_remote_set_eq_preamp: | 740 * audacious_remote_set_eq_preamp: |
| 742 * @preamp: Value for preamp setting. | 742 * @preamp: Value for preamp setting. |
| 743 * | 743 * |
| 744 * Tells audacious to set the equalizer's preamp setting. | 744 * Tells audacious to set the equalizer's preamp setting. |
| 745 **/ | 745 **/ |
| 746 void audacious_remote_set_eq_preamp(DBusGProxy *proxy, gdouble preamp) { | 746 void audacious_remote_set_eq_preamp(DBusGProxy *proxy, gdouble preamp) { |
| 747 org_atheme_audacious_set_eq_preamp(proxy, preamp, &error); | 747 org_atheme_audlegacy_set_eq_preamp(proxy, preamp, &error); |
| 748 g_clear_error(&error); | 748 g_clear_error(&error); |
| 749 } | 749 } |
| 750 | 750 |
| 751 /** | 751 /** |
| 752 * audacious_remote_set_eq_band: | 752 * audacious_remote_set_eq_band: |
| 755 * @value: The value to set that band to. | 755 * @value: The value to set that band to. |
| 756 * | 756 * |
| 757 * Tells audacious to set an equalizer band's setting. | 757 * Tells audacious to set an equalizer band's setting. |
| 758 **/ | 758 **/ |
| 759 void audacious_remote_set_eq_band(DBusGProxy *proxy, gint band, gdouble value) { | 759 void audacious_remote_set_eq_band(DBusGProxy *proxy, gint band, gdouble value) { |
| 760 org_atheme_audacious_set_eq_band(proxy, band, value, &error); | 760 org_atheme_audlegacy_set_eq_band(proxy, band, value, &error); |
| 761 g_clear_error(&error); | 761 g_clear_error(&error); |
| 762 } | 762 } |
| 763 | 763 |
| 764 /** | 764 /** |
| 765 * audacious_remote_quit: | 765 * audacious_remote_quit: |
| 766 * @proxy: DBus proxy for audacious | 766 * @proxy: DBus proxy for audacious |
| 767 * | 767 * |
| 768 * Tells audacious to quit. | 768 * Tells audacious to quit. |
| 769 **/ | 769 **/ |
| 770 void audacious_remote_quit(DBusGProxy *proxy) { | 770 void audacious_remote_quit(DBusGProxy *proxy) { |
| 771 org_atheme_audacious_quit(proxy, &error); | 771 org_atheme_audlegacy_quit(proxy, &error); |
| 772 g_clear_error(&error); | 772 g_clear_error(&error); |
| 773 } | 773 } |
| 774 | 774 |
| 775 /** | 775 /** |
| 776 * audacious_remote_play_pause: | 776 * audacious_remote_play_pause: |
| 777 * @proxy: DBus proxy for audacious | 777 * @proxy: DBus proxy for audacious |
| 778 * | 778 * |
| 779 * Tells audacious to either play or pause. | 779 * Tells audacious to either play or pause. |
| 780 **/ | 780 **/ |
| 781 void audacious_remote_play_pause(DBusGProxy *proxy) { | 781 void audacious_remote_play_pause(DBusGProxy *proxy) { |
| 782 org_atheme_audacious_play_pause(proxy, &error); | 782 org_atheme_audlegacy_play_pause(proxy, &error); |
| 783 } | 783 } |
| 784 | 784 |
| 785 /** | 785 /** |
| 786 * audacious_remote_playlist_ins_url_string: | 786 * audacious_remote_playlist_ins_url_string: |
| 787 * @proxy: DBus proxy for audacious | 787 * @proxy: DBus proxy for audacious |
| 790 * | 790 * |
| 791 * Tells audacious to add an URI to the playlist at a specific position. | 791 * Tells audacious to add an URI to the playlist at a specific position. |
| 792 **/ | 792 **/ |
| 793 void audacious_remote_playlist_ins_url_string(DBusGProxy *proxy, | 793 void audacious_remote_playlist_ins_url_string(DBusGProxy *proxy, |
| 794 gchar *string, guint pos) { | 794 gchar *string, guint pos) { |
| 795 org_atheme_audacious_playlist_ins_url_string (proxy, string, pos, &error); | 795 org_atheme_audlegacy_playlist_ins_url_string (proxy, string, pos, &error); |
| 796 g_clear_error(&error); | 796 g_clear_error(&error); |
| 797 } | 797 } |
| 798 | 798 |
| 799 /** | 799 /** |
| 800 * audacious_remote_playqueue_add: | 800 * audacious_remote_playqueue_add: |
| 802 * @pos: The playlist position to add to the queue. | 802 * @pos: The playlist position to add to the queue. |
| 803 * | 803 * |
| 804 * Tells audacious to add a playlist entry to the playqueue. | 804 * Tells audacious to add a playlist entry to the playqueue. |
| 805 **/ | 805 **/ |
| 806 void audacious_remote_playqueue_add(DBusGProxy *proxy, guint pos) { | 806 void audacious_remote_playqueue_add(DBusGProxy *proxy, guint pos) { |
| 807 org_atheme_audacious_playqueue_add (proxy, pos, &error); | 807 org_atheme_audlegacy_playqueue_add (proxy, pos, &error); |
| 808 g_clear_error(&error); | 808 g_clear_error(&error); |
| 809 } | 809 } |
| 810 | 810 |
| 811 /** | 811 /** |
| 812 * audacious_remote_playqueue_remove: | 812 * audacious_remote_playqueue_remove: |
| 814 * @pos: The playlist position to remove from the queue. | 814 * @pos: The playlist position to remove from the queue. |
| 815 * | 815 * |
| 816 * Tells audacious to remove a playlist entry from the playqueue. | 816 * Tells audacious to remove a playlist entry from the playqueue. |
| 817 **/ | 817 **/ |
| 818 void audacious_remote_playqueue_remove(DBusGProxy *proxy, guint pos) { | 818 void audacious_remote_playqueue_remove(DBusGProxy *proxy, guint pos) { |
| 819 org_atheme_audacious_playqueue_remove (proxy, pos, &error); | 819 org_atheme_audlegacy_playqueue_remove (proxy, pos, &error); |
| 820 g_clear_error(&error); | 820 g_clear_error(&error); |
| 821 } | 821 } |
| 822 | 822 |
| 823 /** | 823 /** |
| 824 * audacious_remote_get_playqueue_length: | 824 * audacious_remote_get_playqueue_length: |
| 829 * Return value: The number of entries in the playqueue. | 829 * Return value: The number of entries in the playqueue. |
| 830 **/ | 830 **/ |
| 831 gint audacious_remote_get_playqueue_length(DBusGProxy *proxy) { | 831 gint audacious_remote_get_playqueue_length(DBusGProxy *proxy) { |
| 832 gint len = 0; | 832 gint len = 0; |
| 833 // this returns the lenght of the playlist, NOT the length of the playqueue | 833 // this returns the lenght of the playlist, NOT the length of the playqueue |
| 834 org_atheme_audacious_length(proxy, &len, &error); | 834 org_atheme_audlegacy_length(proxy, &len, &error); |
| 835 g_clear_error(&error); | 835 g_clear_error(&error); |
| 836 return len; | 836 return len; |
| 837 } | 837 } |
| 838 | 838 |
| 839 /** | 839 /** |
| 841 * @proxy: DBus proxy for audacious | 841 * @proxy: DBus proxy for audacious |
| 842 * | 842 * |
| 843 * Tells audacious to toggle the no-playlist-advance feature. | 843 * Tells audacious to toggle the no-playlist-advance feature. |
| 844 **/ | 844 **/ |
| 845 void audacious_remote_toggle_advance(DBusGProxy *proxy) { | 845 void audacious_remote_toggle_advance(DBusGProxy *proxy) { |
| 846 org_atheme_audacious_toggle_auto_advance(proxy, &error); | 846 org_atheme_audlegacy_toggle_auto_advance(proxy, &error); |
| 847 g_clear_error(&error); | 847 g_clear_error(&error); |
| 848 } | 848 } |
| 849 | 849 |
| 850 /** | 850 /** |
| 851 * audacious_remote_is_advance: | 851 * audacious_remote_is_advance: |
| 855 * | 855 * |
| 856 * Return value: TRUE if yes, otherwise FALSE. | 856 * Return value: TRUE if yes, otherwise FALSE. |
| 857 **/ | 857 **/ |
| 858 gboolean audacious_remote_is_advance(DBusGProxy *proxy) { | 858 gboolean audacious_remote_is_advance(DBusGProxy *proxy) { |
| 859 gboolean is_advance = FALSE; | 859 gboolean is_advance = FALSE; |
| 860 org_atheme_audacious_auto_advance(proxy, &is_advance, &error); | 860 org_atheme_audlegacy_auto_advance(proxy, &is_advance, &error); |
| 861 g_clear_error(&error); | 861 g_clear_error(&error); |
| 862 return is_advance; | 862 return is_advance; |
| 863 } | 863 } |
| 864 | 864 |
| 865 /** | 865 /** |
| 867 * @proxy: DBus proxy for audacious | 867 * @proxy: DBus proxy for audacious |
| 868 * | 868 * |
| 869 * Tells audacious to display the main window and become the selected window. | 869 * Tells audacious to display the main window and become the selected window. |
| 870 **/ | 870 **/ |
| 871 void audacious_remote_activate(DBusGProxy *proxy) { | 871 void audacious_remote_activate(DBusGProxy *proxy) { |
| 872 org_atheme_audacious_activate(proxy, &error); | 872 org_atheme_audlegacy_activate(proxy, &error); |
| 873 g_clear_error(&error); | 873 g_clear_error(&error); |
| 874 } | 874 } |
| 875 | 875 |
| 876 /** | 876 /** |
| 877 * audacious_remote_show_jtf_box: | 877 * audacious_remote_show_jtf_box: |
| 889 * @show: shows/hides jtf pane | 889 * @show: shows/hides jtf pane |
| 890 * | 890 * |
| 891 * Tells audacious to show/hide the Jump-to-File pane. | 891 * Tells audacious to show/hide the Jump-to-File pane. |
| 892 **/ | 892 **/ |
| 893 void audacious_remote_toggle_jtf_box(DBusGProxy *proxy, gboolean show) { | 893 void audacious_remote_toggle_jtf_box(DBusGProxy *proxy, gboolean show) { |
| 894 org_atheme_audacious_show_jtf_box(proxy, show, &error); | 894 org_atheme_audlegacy_show_jtf_box(proxy, show, &error); |
| 895 g_clear_error(&error); | 895 g_clear_error(&error); |
| 896 } | 896 } |
| 897 | 897 |
| 898 /** | 898 /** |
| 899 * audacious_remote_toggle_filebrowser: | 899 * audacious_remote_toggle_filebrowser: |
| 901 * @show: shows/hides filebrowser | 901 * @show: shows/hides filebrowser |
| 902 * | 902 * |
| 903 * Tells audacious to show the filebrowser dialog. | 903 * Tells audacious to show the filebrowser dialog. |
| 904 **/ | 904 **/ |
| 905 void audacious_remote_toggle_filebrowser(DBusGProxy *proxy, gboolean show) { | 905 void audacious_remote_toggle_filebrowser(DBusGProxy *proxy, gboolean show) { |
| 906 org_atheme_audacious_show_filebrowser(proxy, show, &error); | 906 org_atheme_audlegacy_show_filebrowser(proxy, show, &error); |
| 907 g_clear_error(&error); | 907 g_clear_error(&error); |
| 908 } | 908 } |
| 909 | 909 |
| 910 /** | 910 /** |
| 911 * audacious_remote_playqueue_clear: | 911 * audacious_remote_playqueue_clear: |
| 912 * @proxy: DBus proxy for audacious | 912 * @proxy: DBus proxy for audacious |
| 913 * | 913 * |
| 914 * Tells audacious to clear the playqueue. | 914 * Tells audacious to clear the playqueue. |
| 915 **/ | 915 **/ |
| 916 void audacious_remote_playqueue_clear(DBusGProxy *proxy) { | 916 void audacious_remote_playqueue_clear(DBusGProxy *proxy) { |
| 917 org_atheme_audacious_playqueue_clear(proxy, &error); | 917 org_atheme_audlegacy_playqueue_clear(proxy, &error); |
| 918 g_clear_error(&error); | 918 g_clear_error(&error); |
| 919 } | 919 } |
| 920 | 920 |
| 921 /** | 921 /** |
| 922 * audacious_remote_playqueue_is_queued: | 922 * audacious_remote_playqueue_is_queued: |
| 927 * | 927 * |
| 928 * Return value: TRUE if yes, FALSE otherwise. | 928 * Return value: TRUE if yes, FALSE otherwise. |
| 929 **/ | 929 **/ |
| 930 gboolean audacious_remote_playqueue_is_queued(DBusGProxy *proxy, guint pos) { | 930 gboolean audacious_remote_playqueue_is_queued(DBusGProxy *proxy, guint pos) { |
| 931 gboolean is_queued; | 931 gboolean is_queued; |
| 932 org_atheme_audacious_playqueue_is_queued (proxy, pos, &is_queued, &error); | 932 org_atheme_audlegacy_playqueue_is_queued (proxy, pos, &is_queued, &error); |
| 933 g_clear_error(&error); | 933 g_clear_error(&error); |
| 934 return is_queued; | 934 return is_queued; |
| 935 } | 935 } |
| 936 | 936 |
| 937 /** | 937 /** |
| 943 * | 943 * |
| 944 * Return value: the playqueue position for a playlist entry | 944 * Return value: the playqueue position for a playlist entry |
| 945 **/ | 945 **/ |
| 946 gint audacious_remote_get_playqueue_queue_position(DBusGProxy *proxy, guint pos) { | 946 gint audacious_remote_get_playqueue_queue_position(DBusGProxy *proxy, guint pos) { |
| 947 guint qpos = 0; | 947 guint qpos = 0; |
| 948 org_atheme_audacious_queue_get_queue_pos (proxy, pos, &qpos, &error); | 948 org_atheme_audlegacy_queue_get_queue_pos (proxy, pos, &qpos, &error); |
| 949 g_clear_error(&error); | 949 g_clear_error(&error); |
| 950 return qpos; | 950 return qpos; |
| 951 } | 951 } |
| 952 | 952 |
| 953 /** | 953 /** |
| 959 * | 959 * |
| 960 * Return value: the playlist position for a playqueue entry | 960 * Return value: the playlist position for a playqueue entry |
| 961 **/ | 961 **/ |
| 962 gint audacious_remote_get_playqueue_list_position(DBusGProxy *proxy, guint qpos) { | 962 gint audacious_remote_get_playqueue_list_position(DBusGProxy *proxy, guint qpos) { |
| 963 guint pos = 0; | 963 guint pos = 0; |
| 964 org_atheme_audacious_queue_get_list_pos (proxy, qpos, &pos, &error); | 964 org_atheme_audlegacy_queue_get_list_pos (proxy, qpos, &pos, &error); |
| 965 g_clear_error(&error); | 965 g_clear_error(&error); |
| 966 return pos; | 966 return pos; |
| 967 } | 967 } |
| 968 | 968 |
| 969 /** | 969 /** |
| 973 * | 973 * |
| 974 * Tells audacious to add an URI to a temporary playlist. | 974 * Tells audacious to add an URI to a temporary playlist. |
| 975 **/ | 975 **/ |
| 976 void audacious_remote_playlist_enqueue_to_temp(DBusGProxy *proxy, | 976 void audacious_remote_playlist_enqueue_to_temp(DBusGProxy *proxy, |
| 977 gchar *string) { | 977 gchar *string) { |
| 978 org_atheme_audacious_playlist_enqueue_to_temp(proxy, string, &error); | 978 org_atheme_audlegacy_playlist_enqueue_to_temp(proxy, string, &error); |
| 979 g_clear_error(&error); | 979 g_clear_error(&error); |
| 980 } | 980 } |
| 981 | 981 |
| 982 /** | 982 /** |
| 983 * audacious_get_tuple_field_data: | 983 * audacious_get_tuple_field_data: |
| 992 gchar *audacious_get_tuple_field_data(DBusGProxy *proxy, gchar *field, | 992 gchar *audacious_get_tuple_field_data(DBusGProxy *proxy, gchar *field, |
| 993 guint pos) { | 993 guint pos) { |
| 994 GValue value = {}; | 994 GValue value = {}; |
| 995 gchar *s = NULL; | 995 gchar *s = NULL; |
| 996 | 996 |
| 997 org_atheme_audacious_song_tuple(proxy, pos, field, &value, &error); | 997 org_atheme_audlegacy_song_tuple(proxy, pos, field, &value, &error); |
| 998 | 998 |
| 999 g_clear_error(&error); | 999 g_clear_error(&error); |
| 1000 | 1000 |
| 1001 if (G_IS_VALUE(&value) == FALSE) | 1001 if (G_IS_VALUE(&value) == FALSE) |
| 1002 return NULL; | 1002 return NULL; |
| 1034 * @active: Whether or not to activate the equalizer. | 1034 * @active: Whether or not to activate the equalizer. |
| 1035 * | 1035 * |
| 1036 * Toggles the equalizer. | 1036 * Toggles the equalizer. |
| 1037 **/ | 1037 **/ |
| 1038 void audacious_remote_eq_activate(DBusGProxy *proxy, gboolean active) { | 1038 void audacious_remote_eq_activate(DBusGProxy *proxy, gboolean active) { |
| 1039 org_atheme_audacious_equalizer_activate (proxy, active, &error); | 1039 org_atheme_audlegacy_equalizer_activate (proxy, active, &error); |
| 1040 g_clear_error(&error); | 1040 g_clear_error(&error); |
| 1041 } | 1041 } |
| 1042 | 1042 |
| 1043 /** | 1043 /** |
| 1044 * audacious_remote_get_tuple_fields: | 1044 * audacious_remote_get_tuple_fields: |
| 1048 * | 1048 * |
| 1049 * Return value: Array of strings. | 1049 * Return value: Array of strings. |
| 1050 **/ | 1050 **/ |
| 1051 gchar **audacious_remote_get_tuple_fields(DBusGProxy *proxy) { | 1051 gchar **audacious_remote_get_tuple_fields(DBusGProxy *proxy) { |
| 1052 gchar **res = NULL; | 1052 gchar **res = NULL; |
| 1053 org_atheme_audacious_get_tuple_fields (proxy, &res, &error); | 1053 org_atheme_audlegacy_get_tuple_fields (proxy, &res, &error); |
| 1054 g_clear_error(&error); | 1054 g_clear_error(&error); |
| 1055 return res; | 1055 return res; |
| 1056 } | 1056 } |
