Mercurial > audlegacy
comparison src/libaudclient/audctrl.c @ 2733:cf080b11c3fa trunk
[svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
| author | magma |
|---|---|
| date | Fri, 11 May 2007 11:52:56 -0700 |
| parents | f4a5f8fa3836 |
| children | ccf3e141fb1e |
comparison
equal
deleted
inserted
replaced
| 2732:2227e8955391 | 2733:cf080b11c3fa |
|---|---|
| 225 void audacious_remote_get_info(DBusGProxy *proxy, gint *rate, gint *freq, | 225 void audacious_remote_get_info(DBusGProxy *proxy, gint *rate, gint *freq, |
| 226 gint *nch) { | 226 gint *nch) { |
| 227 } | 227 } |
| 228 | 228 |
| 229 void audacious_remote_main_win_toggle(DBusGProxy *proxy, gboolean show) { | 229 void audacious_remote_main_win_toggle(DBusGProxy *proxy, gboolean show) { |
| 230 const char* path = dbus_g_proxy_get_path(proxy); | |
| 231 g_print("path: %s\n", path); | |
| 232 org_atheme_audacious_show_main_win(proxy, show, &error); | |
| 233 g_clear_error(&error); | |
| 230 } | 234 } |
| 231 | 235 |
| 232 void audacious_remote_pl_win_toggle(DBusGProxy *proxy, gboolean show) { | 236 void audacious_remote_pl_win_toggle(DBusGProxy *proxy, gboolean show) { |
| 237 org_atheme_audacious_show_playlist(proxy, show, &error); | |
| 238 g_clear_error(&error); | |
| 233 } | 239 } |
| 234 | 240 |
| 235 void audacious_remote_eq_win_toggle(DBusGProxy *proxy, gboolean show) { | 241 void audacious_remote_eq_win_toggle(DBusGProxy *proxy, gboolean show) { |
| 236 } | 242 org_atheme_audacious_show_equalizer(proxy, show, &error); |
| 237 | 243 g_clear_error(&error); |
| 244 } | |
| 245 | |
| 246 /** | |
| 247 * xmms_remote_is_main_win: | |
| 248 * @session: Legacy XMMS-style session identifier. | |
| 249 * | |
| 250 * Queries Audacious about the main window's visibility. | |
| 251 * | |
| 252 * Return value: TRUE if visible, FALSE otherwise. | |
| 253 **/ | |
| 238 gboolean audacious_remote_is_main_win(DBusGProxy *proxy) { | 254 gboolean audacious_remote_is_main_win(DBusGProxy *proxy) { |
| 255 gboolean visible; | |
| 256 org_atheme_audacious_main_win_visible(proxy, &visible, &error); | |
| 257 g_clear_error(&error); | |
| 258 return visible; | |
| 239 } | 259 } |
| 240 | 260 |
| 241 gboolean audacious_remote_is_pl_win(DBusGProxy *proxy) { | 261 gboolean audacious_remote_is_pl_win(DBusGProxy *proxy) { |
| 262 gboolean visible; | |
| 263 org_atheme_audacious_playlist_visible(proxy, &visible, &error); | |
| 264 g_clear_error(&error); | |
| 265 return visible; | |
| 242 } | 266 } |
| 243 | 267 |
| 244 gboolean audacious_remote_is_eq_win(DBusGProxy *proxy) { | 268 gboolean audacious_remote_is_eq_win(DBusGProxy *proxy) { |
| 269 gboolean visible; | |
| 270 org_atheme_audacious_equalizer_visible(proxy, &visible, &error); | |
| 271 g_clear_error(&error); | |
| 272 return visible; | |
| 245 } | 273 } |
| 246 | 274 |
| 247 void audacious_remote_show_prefs_box(DBusGProxy *proxy) { | 275 void audacious_remote_show_prefs_box(DBusGProxy *proxy) { |
| 248 } | 276 } |
| 249 | 277 |
| 250 void audacious_remote_toggle_aot(DBusGProxy *proxy, gboolean ontop) { | 278 void audacious_remote_toggle_aot(DBusGProxy *proxy, gboolean ontop) { |
| 251 } | 279 } |
| 252 | 280 |
| 253 void audacious_remote_eject(DBusGProxy *proxy) { | 281 void audacious_remote_eject(DBusGProxy *proxy) { |
| 282 org_atheme_audacious_eject(proxy, &error); | |
| 283 g_clear_error(&error); | |
| 254 } | 284 } |
| 255 | 285 |
| 256 void audacious_remote_playlist_prev(DBusGProxy *proxy) { | 286 void audacious_remote_playlist_prev(DBusGProxy *proxy) { |
| 257 } | 287 } |
| 258 | 288 |
| 301 void audacious_remote_set_eq_band(DBusGProxy *proxy, gint band, | 331 void audacious_remote_set_eq_band(DBusGProxy *proxy, gint band, |
| 302 gfloat value) { | 332 gfloat value) { |
| 303 } | 333 } |
| 304 | 334 |
| 305 void audacious_remote_quit(DBusGProxy *proxy) { | 335 void audacious_remote_quit(DBusGProxy *proxy) { |
| 336 org_atheme_audacious_quit(proxy, &error); | |
| 337 g_clear_error(&error); | |
| 306 } | 338 } |
| 307 | 339 |
| 308 void audacious_remote_play_pause(DBusGProxy *proxy) { | 340 void audacious_remote_play_pause(DBusGProxy *proxy) { |
| 309 } | 341 } |
| 310 | 342 |
