Mercurial > audlegacy
comparison src/libaudclient/audctrl.c @ 3873:f3341c2d6b9e
audacious remote functions:
- playlist_ins_url_string() and playlist_enqueue_to_temp() have been implemented.
- now get_version() returns audacious version instead of protocol version.
audtool:
- now argc check works properly.
- some cleanups.
| author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
|---|---|
| date | Tue, 30 Oct 2007 22:12:47 +0900 |
| parents | e48f2f4c116d |
| children | 44ab3d6057da |
comparison
equal
deleted
inserted
replaced
| 3872:b02853ac8466 | 3873:f3341c2d6b9e |
|---|---|
| 65 | 65 |
| 66 /** | 66 /** |
| 67 * audacious_remote_get_version: | 67 * audacious_remote_get_version: |
| 68 * @proxy: DBus proxy for audacious | 68 * @proxy: DBus proxy for audacious |
| 69 * | 69 * |
| 70 * Queries audacious for it's protocol version. | 70 * Queries audacious for it's version. |
| 71 * | 71 * |
| 72 * Return value: The protocol version used by Audacious. | 72 * Return value: The version of Audacious. |
| 73 **/ | 73 **/ |
| 74 gint audacious_remote_get_version(DBusGProxy *proxy) { | 74 gchar *audacious_remote_get_version(DBusGProxy *proxy) { |
| 75 return 0x09a3; // XXX should do actual dbus call. | 75 char *string = NULL; |
| 76 org_atheme_audacious_version(proxy, &string, &error); | |
| 77 g_clear_error(&error); | |
| 78 | |
| 79 return (string ? string : NULL); | |
| 76 } | 80 } |
| 77 | 81 |
| 78 /** | 82 /** |
| 79 * audacious_remote_playlist_add: | 83 * audacious_remote_playlist_add: |
| 80 * @proxy: DBus proxy for audacious | 84 * @proxy: DBus proxy for audacious |
