Mercurial > audlegacy
changeset 2762:c89362b15525 trunk
[svn] Added lots of comments (styled after beepctrl).
author | magma |
---|---|
date | Sat, 12 May 2007 14:35:30 -0700 |
parents | 7ddfc7b76b90 |
children | 637359219e10 |
files | ChangeLog src/audacious/build_stamp.c src/libaudclient/audctrl.c |
diffstat | 3 files changed, 456 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sat May 12 11:44:30 2007 -0700 +++ b/ChangeLog Sat May 12 14:35:30 2007 -0700 @@ -1,3 +1,12 @@ +2007-05-12 18:44:30 +0000 Ralf Ertzinger <ralf@skytale.net> + revision [4548] + + - Change reference to user specific skin directory to ~/.local/share/audacious/Skins + + trunk/man/audacious.1.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + + 2007-05-12 12:20:40 +0000 Giacomo Lozito <james@develia.org> revision [4546] - auddrct: more calls implemented (part 6)
--- a/src/audacious/build_stamp.c Sat May 12 11:44:30 2007 -0700 +++ b/src/audacious/build_stamp.c Sat May 12 14:35:30 2007 -0700 @@ -1,2 +1,2 @@ #include <glib.h> -const gchar *svn_stamp = "20070512-4546"; +const gchar *svn_stamp = "20070512-4548";
--- a/src/libaudclient/audctrl.c Sat May 12 11:44:30 2007 -0700 +++ b/src/libaudclient/audctrl.c Sat May 12 14:35:30 2007 -0700 @@ -30,35 +30,92 @@ GError *error = NULL; +/** + * audacious_remote_playlist: + * @proxy: DBus proxy for audacious + * @list: A list of URIs to play. + * @num: Number of URIs to play. + * @enqueue: Whether or not the new playlist should be added on, or replace the current playlist. + * + * Sends a playlist to audacious. + **/ void audacious_remote_playlist(DBusGProxy *proxy, gchar **list, gint num, gboolean enqueue) { } +/** + * audacious_remote_get_version: + * @proxy: DBus proxy for audacious + * + * Queries audacious for it's protocol version. + * + * Return value: The protocol version used by Audacious. + **/ gint audacious_remote_get_version(DBusGProxy *proxy) { return 0; } +/** + * audacious_remote_playlist_add: + * @proxy: DBus proxy for audacious + * @list: A GList of URIs to add to the playlist. + * + * Sends a list of URIs to Audacious to add to the playlist. + **/ void audacious_remote_playlist_add(DBusGProxy *proxy, GList *list) { } +/** + * audacious_remote_playlist_delete: + * @proxy: DBus proxy for audacious + * @pos: The playlist position to delete. + * + * Deletes a playlist entry. + **/ void audacious_remote_playlist_delete(DBusGProxy *proxy, gint pos) { } +/** + * audacious_remote_play: + * @proxy: DBus proxy for audacious + * + * Tells audacious to begin playback. + **/ void audacious_remote_play(DBusGProxy *proxy) { org_atheme_audacious_play(proxy, &error); g_clear_error(&error); } +/** + * audacious_remote_pause: + * @proxy: DBus proxy for audacious + * + * Tells audacious to pause. + **/ void audacious_remote_pause(DBusGProxy *proxy) { org_atheme_audacious_pause(proxy, &error); g_clear_error(&error); } +/** + * audacious_remote_stop: + * @proxy: DBus proxy for audacious + * + * Tells audacious to stop. + **/ void audacious_remote_stop(DBusGProxy *proxy) { org_atheme_audacious_stop(proxy, &error); g_clear_error(&error); } +/** + * audacious_remote_is_playing: + * @proxy: DBus proxy for audacious + * + * Queries audacious about whether it is playing or not. + * + * Return value: TRUE if playing, FALSE otherwise. + **/ gboolean audacious_remote_is_playing(DBusGProxy *proxy) { gboolean is_playing; org_atheme_audacious_playing(proxy, &is_playing, &error); @@ -66,6 +123,14 @@ return is_playing; } +/** + * audacious_remote_is_paused: + * @proxy: DBus proxy for audacious + * + * Queries audacious about whether it is paused or not. + * + * Return value: TRUE if playing, FALSE otherwise. + **/ gboolean audacious_remote_is_paused(DBusGProxy *proxy) { gboolean is_paused; org_atheme_audacious_paused(proxy, &is_paused, &error); @@ -73,6 +138,14 @@ return is_paused; } +/** + * audacious_remote_get_playlist_pos: + * @proxy: DBus proxy for audacious + * + * Queries audacious about the current playlist position. + * + * Return value: The current playlist position. + **/ gint audacious_remote_get_playlist_pos(DBusGProxy *proxy) { gint pos; org_atheme_audacious_position(proxy, &pos, &error); @@ -80,9 +153,24 @@ return pos; } +/** + * audacious_remote_set_playlist_pos: + * @proxy: DBus proxy for audacious + * @pos: Playlist position to jump to. + * + * Tells audacious to jump to a different playlist position. + **/ void audacious_remote_set_playlist_pos(DBusGProxy *proxy, gint pos) { } +/** + * audacious_remote_get_playlist_length: + * @proxy: DBus proxy for audacious + * + * Queries audacious about the current playlist length. + * + * Return value: The amount of entries in the playlist. + **/ gint audacious_remote_get_playlist_length(DBusGProxy *proxy) { gint len; org_atheme_audacious_length(proxy, &len, &error); @@ -90,11 +178,25 @@ return len; } +/** + * audacious_remote_playlist_clear: + * @proxy: DBus proxy for audacious + * + * Clears the playlist. + **/ void audacious_remote_playlist_clear(DBusGProxy *proxy) { org_atheme_audacious_clear(proxy, &error); g_clear_error(&error); } +/** + * audacious_remote_get_output_time: + * @proxy: DBus proxy for audacious + * + * Queries audacious about the current output position. + * + * Return value: The current output position. + **/ gint audacious_remote_get_output_time(DBusGProxy *proxy) { gint time; org_atheme_audacious_time(proxy, &time, &error); @@ -102,6 +204,13 @@ return time; } +/** + * audacious_remote_jump_to_time: + * @proxy: DBus proxy for audacious + * @pos: The time (in milliseconds) to jump to. + * + * Tells audacious to seek to a new time position. + **/ void audacious_remote_jump_to_time(DBusGProxy *proxy, gint pos) { } @@ -186,6 +295,13 @@ audacious_remote_set_volume(proxy, vl, vr); } +/** + * audacious_remote_set_balance: + * @proxy: DBus proxy for audacious + * @b: The balance to set. + * + * Sets the balance in Audacious. + **/ void audacious_remote_set_balance(DBusGProxy *proxy, gint b) { gint v, vl, vr; @@ -207,12 +323,36 @@ audacious_remote_set_volume(proxy, vl, vr); } +/** + * audacious_remote_get_skin: + * @proxy: DBus proxy for audacious + * + * Queries Audacious about it's skin. + * + * Return value: A path to the currently selected skin. + **/ gchar *audacious_remote_get_skin(DBusGProxy *proxy) { } +/** + * audacious_remote_set_skin: + * @proxy: DBus proxy for audacious + * @skinfile: Path to a skinfile to use with Audacious. + * + * Tells audacious to start using the skinfile provided. + **/ void audacious_remote_set_skin(DBusGProxy *proxy, gchar *skinfile) { } +/** + * audacious_remote_get_playlist_file: + * @proxy: DBus proxy for audacious + * @pos: The playlist position to query for. + * + * Queries Audacious about a playlist entry's file. + * + * Return value: A path to the file in the playlist at %pos position. + **/ gchar *audacious_remote_get_playlist_file(DBusGProxy *proxy, gint pos) { gchar *out; org_atheme_audacious_song_filename(proxy, pos, &out, &error); @@ -220,6 +360,15 @@ return out; } +/** + * audacious_remote_get_playlist_title: + * @proxy: DBus proxy for audacious + * @pos: The playlist position to query for. + * + * Queries Audacious about a playlist entry's title. + * + * Return value: The title for the entry in the playlist at %pos position. + **/ gchar *audacious_remote_get_playlist_title(DBusGProxy *proxy, gint pos) { gchar *out; org_atheme_audacious_song_title(proxy, pos, &out, &error); @@ -227,6 +376,15 @@ return out; } +/** + * audacious_remote_get_playlist_time: + * @proxy: DBus proxy for audacious + * @pos: The playlist position to query for. + * + * Queries Audacious about a playlist entry's length. + * + * Return value: The length of the entry in the playlist at %pos position. + **/ gint audacious_remote_get_playlist_time(DBusGProxy *proxy, gint pos) { gint out; org_atheme_audacious_song_frames(proxy, pos, &out, &error); @@ -234,10 +392,26 @@ return out; } +/** + * audacious_remote_get_info: + * @proxy: DBus proxy for audacious + * @rate: Pointer to an integer containing the bitrate. + * @freq: Pointer to an integer containing the frequency. + * @nch: Pointer to an integer containing the number of channels. + * + * Queries Audacious about the current audio format. + **/ void audacious_remote_get_info(DBusGProxy *proxy, gint *rate, gint *freq, gint *nch) { } +/** + * audacious_remote_main_win_toggle: + * @proxy: DBus proxy for audacious + * @show: Whether or not to show the main window. + * + * Toggles the main window's visibility. + **/ void audacious_remote_main_win_toggle(DBusGProxy *proxy, gboolean show) { const char* path = dbus_g_proxy_get_path(proxy); g_print("path: %s\n", path); @@ -245,19 +419,33 @@ g_clear_error(&error); } +/** + * audacious_remote_pl_win_toggle: + * @proxy: DBus proxy for audacious + * @show: Whether or not to show the playlist window. + * + * Toggles the playlist window's visibility. + **/ void audacious_remote_pl_win_toggle(DBusGProxy *proxy, gboolean show) { org_atheme_audacious_show_playlist(proxy, show, &error); g_clear_error(&error); } +/** + * audacious_remote_eq_win_toggle: + * @proxy: DBus proxy for audacious + * @show: Whether or not to show the equalizer window. + * + * Toggles the equalizer window's visibility. + **/ void audacious_remote_eq_win_toggle(DBusGProxy *proxy, gboolean show) { org_atheme_audacious_show_equalizer(proxy, show, &error); g_clear_error(&error); } /** - * xmms_remote_is_main_win: - * @session: Legacy XMMS-style session identifier. + * audacious_remote_is_main_win: + * @proxy: DBus proxy for audacious * * Queries Audacious about the main window's visibility. * @@ -270,6 +458,14 @@ return visible; } +/** + * audacious_remote_is_pl_win: + * @proxy: DBus proxy for audacious + * + * Queries Audacious about the playlist window's visibility. + * + * Return value: TRUE if visible, FALSE otherwise. + **/ gboolean audacious_remote_is_pl_win(DBusGProxy *proxy) { gboolean visible; org_atheme_audacious_playlist_visible(proxy, &visible, &error); @@ -277,6 +473,14 @@ return visible; } +/** + * audacious_remote_is_eq_win: + * @proxy: DBus proxy for audacious + * + * Queries Audacious about the equalizer window's visibility. + * + * Return value: TRUE if visible, FALSE otherwise. + **/ gboolean audacious_remote_is_eq_win(DBusGProxy *proxy) { gboolean visible; org_atheme_audacious_equalizer_visible(proxy, &visible, &error); @@ -284,116 +488,355 @@ return visible; } +/** + * audacious_remote_show_prefs_box: + * @proxy: DBus proxy for audacious + * + * Tells audacious to show the preferences pane. + **/ void audacious_remote_show_prefs_box(DBusGProxy *proxy) { } +/** + * audacious_remote_toggle_aot: + * @proxy: DBus proxy for audacious + * @ontop: Whether or not Audacious should be always-on-top. + * + * Tells audacious to toggle the always-on-top feature. + **/ void audacious_remote_toggle_aot(DBusGProxy *proxy, gboolean ontop) { } +/** + * audacious_remote_eject: + * @proxy: DBus proxy for audacious + * + * Tells audacious to display the open files pane. + **/ void audacious_remote_eject(DBusGProxy *proxy) { org_atheme_audacious_eject(proxy, &error); g_clear_error(&error); } +/** + * audacious_remote_playlist_prev: + * @proxy: DBus proxy for audacious + * + * Tells audacious to move backwards in the playlist. + **/ void audacious_remote_playlist_prev(DBusGProxy *proxy) { } +/** + * audacious_remote_playlist_next: + * @proxy: DBus proxy for audacious + * + * Tells audacious to move forward in the playlist. + **/ void audacious_remote_playlist_next(DBusGProxy *proxy) { } - +/** + * audacious_remote_playlist_add_url_string: + * @proxy: DBus proxy for audacious + * @string: The URI to add. + * + * Tells audacious to add an URI to the playlist. + **/ void audacious_remote_playlist_add_url_string(DBusGProxy *proxy, gchar *string) { org_atheme_audacious_add_url(proxy, string, &error); g_clear_error(&error); } +/** + * audacious_remote_is_running: + * @proxy: DBus proxy for audacious + * + * Checks to see if an Audacious server is running. + * + * Return value: TRUE if yes, otherwise FALSE. + **/ gboolean audacious_remote_is_running(DBusGProxy *proxy) { } +/** + * audacious_remote_toggle_repeat: + * @proxy: DBus proxy for audacious + * + * Tells audacious to toggle the repeat feature. + **/ void audacious_remote_toggle_repeat(DBusGProxy *proxy) { } +/** + * audacious_remote_toggle_shuffle: + * @proxy: DBus proxy for audacious + * + * Tells audacious to toggle the shuffle feature. + **/ void audacious_remote_toggle_shuffle(DBusGProxy *proxy) { } +/** + * audacious_remote_is_repeat: + * @proxy: DBus proxy for audacious + * + * Queries audacious about whether or not the repeat feature is active. + * + * Return value: TRUE if yes, otherwise FALSE. + **/ gboolean audacious_remote_is_repeat(DBusGProxy *proxy) { } +/** + * audacious_remote_is_shuffle: + * @proxy: DBus proxy for audacious + * + * Queries audacious about whether or not the shuffle feature is active. + * + * Return value: TRUE if yes, otherwise FALSE. + **/ gboolean audacious_remote_is_shuffle(DBusGProxy *proxy) { } +/** + * audacious_remote_get_eq: + * @proxy: DBus proxy for audacious + * @preamp: Pointer to value for preamp setting. + * @bands: Pointer to array of band settings. + * + * Queries audacious about the equalizer settings. + **/ void audacious_remote_get_eq(DBusGProxy *proxy, gfloat *preamp, gfloat **bands) { } +/** + * audacious_remote_get_eq_preamp: + * @proxy: DBus proxy for audacious + * + * Queries audacious about the equalizer preamp's setting. + * + * Return value: The equalizer preamp's setting. + **/ gfloat audacious_remote_get_eq_preamp(DBusGProxy *proxy) { } +/** + * audacious_remote_get_eq_band: + * @proxy: DBus proxy for audacious + * @band: Which band to lookup the value for. + * + * Queries audacious about an equalizer band's value. + * + * Return value: The equalizer band's value. + **/ gfloat audacious_remote_get_eq_band(DBusGProxy *proxy, gint band) { } +/** + * audacious_remote_set_eq: + * @proxy: DBus proxy for audacious + * @preamp: Value for preamp setting. + * @bands: Array of band settings. + * + * Tells audacious to set the equalizer up using the provided values. + **/ void audacious_remote_set_eq(DBusGProxy *proxy, gfloat preamp, gfloat *bands) { } +/** + * audacious_remote_set_eq_preamp: + * @proxy: DBus proxy for audacious + * @preamp: Value for preamp setting. + * + * Tells audacious to set the equalizer's preamp setting. + **/ void audacious_remote_set_eq_preamp(DBusGProxy *proxy, gfloat preamp) { } +/** + * audacious_remote_set_eq_band: + * @proxy: DBus proxy for audacious + * @band: The band to set the value for. + * @value: The value to set that band to. + * + * Tells audacious to set an equalizer band's setting. + **/ void audacious_remote_set_eq_band(DBusGProxy *proxy, gint band, gfloat value) { } +/** + * audacious_remote_quit: + * @proxy: DBus proxy for audacious + * + * Tells audacious to quit. + **/ void audacious_remote_quit(DBusGProxy *proxy) { org_atheme_audacious_quit(proxy, &error); g_clear_error(&error); } +/** + * audacious_remote_play_pause: + * @proxy: DBus proxy for audacious + * + * Tells audacious to either play or pause. + **/ void audacious_remote_play_pause(DBusGProxy *proxy) { } +/** + * audacious_remote_playlist_ins_url_string: + * @proxy: DBus proxy for audacious + * @string: The URI to add. + * @pos: The position to add the URI at. + * + * Tells audacious to add an URI to the playlist at a specific position. + **/ void audacious_remote_playlist_ins_url_string(DBusGProxy *proxy, gchar *string, gint pos) { } +/** + * audacious_remote_playqueue_add: + * @proxy: DBus proxy for audacious + * @pos: The playlist position to add to the queue. + * + * Tells audacious to add a playlist entry to the playqueue. + **/ void audacious_remote_playqueue_add(DBusGProxy *proxy, gint pos) { } +/** + * audacious_remote_playqueue_remove: + * @proxy: DBus proxy for audacious + * @pos: The playlist position to remove from the queue. + * + * Tells audacious to remove a playlist entry from the playqueue. + **/ void audacious_remote_playqueue_remove(DBusGProxy *proxy, gint pos) { } +/** + * audacious_remote_get_playqueue_length: + * @proxy: DBus proxy for audacious + * + * Queries audacious about the playqueue's length. + * + * Return value: The number of entries in the playqueue. + **/ gint audacious_remote_get_playqueue_length(DBusGProxy *proxy) { } +/** + * audacious_remote_toggle_advance: + * @proxy: DBus proxy for audacious + * + * Tells audacious to toggle the no-playlist-advance feature. + **/ void audacious_remote_toggle_advance(DBusGProxy *proxy) { } +/** + * audacious_remote_is_advance: + * @proxy: DBus proxy for audacious + * + * Queries audacious about whether or not the no-playlist-advance feature is active. + * + * Return value: TRUE if yes, otherwise FALSE. + **/ gboolean audacious_remote_is_advance(DBusGProxy *proxy) { } +/** + * audacious_remote_activate: + * @proxy: DBus proxy for audacious + * + * Tells audacious to display the main window and become the selected window. + **/ void audacious_remote_activate(DBusGProxy *proxy) { } +/** + * audacious_remote_show_jtf_box: + * @proxy: DBus proxy for audacious + * + * Tells audacious to show the Jump-to-File pane. + **/ void audacious_remote_show_jtf_box(DBusGProxy *proxy) { } +/** + * audacious_remote_playqueue_clear: + * @proxy: DBus proxy for audacious + * + * Tells audacious to clear the playqueue. + **/ void audacious_remote_playqueue_clear(DBusGProxy *proxy) { } +/** + * audacious_remote_playqueue_is_queued: + * @proxy: DBus proxy for audacious + * @pos: Position to check queue for. + * + * Queries audacious about whether or not a playlist entry is in the playqueue. + * + * Return value: TRUE if yes, FALSE otherwise. + **/ gboolean audacious_remote_playqueue_is_queued(DBusGProxy *proxy, gint pos) { } +/** + * audacious_remote_get_playqueue_position: + * @proxy: DBus proxy for audacious + * @pos: Position to check queue for. + * + * Queries audacious about what the playqueue position is for a playlist entry. + * + * Return value: TRUE if yes, FALSE otherwise. + **/ gint audacious_remote_get_playqueue_position(DBusGProxy *proxy, gint pos) { } +/** + * audacious_remote_get_playqueue_queue_position: + * @proxy: DBus proxy for audacious + * @pos: Position to check queue for. + * + * Queries audacious about what the playlist position is for a playqueue entry. + * + * Return value: TRUE if yes, FALSE otherwise. + **/ gint audacious_remote_get_playqueue_queue_position(DBusGProxy *proxy, gint pos) { } +/** + * audacious_remote_playlist_enqueue_to_temp: + * @proxy: DBus proxy for audacious + * @string: The URI to enqueue to a temporary playlist. + * + * Tells audacious to add an URI to a temporary playlist. + **/ void audacious_remote_playlist_enqueue_to_temp(DBusGProxy *proxy, gchar *string) { } +/** + * audacious_get_tuple_field_data: + * @proxy: DBus proxy for audacious + * @field: The name of the tuple field to retrieve. + * @pos: The playlist position to query for. + * + * Queries Audacious about a playlist entry's tuple information. + * + * Return value: The requested field's data for the entry in the playlist at %pos position. + **/ gchar *audacious_get_tuple_field_data(DBusGProxy *proxy, gchar *field, gint pos) { }