1;; -*- scheme -*-
2; object definitions ...
3(define-object Plugin
4  (in-module "Ario")
5  (parent "GObject")
6  (c-name "ArioPlugin")
7  (gtype-id "ARIO_TYPE_PLUGIN")
8)
9
10(define-object Server
11  (in-module "Ario")
12  (parent "GObject")
13  (c-name "ArioServer")
14  (gtype-id "ARIO_TYPE_SERVER")
15)
16
17(define-object Shell
18  (in-module "Ario")
19  (parent "GtkWindow")
20  (c-name "ArioShell")
21  (gtype-id "ARIO_TYPE_SHELL")
22)
23
24(define-object Source
25  (in-module "Ario")
26  (parent "GtkHBox")
27  (c-name "ArioSource")
28  (gtype-id "ARIO_TYPE_SOURCE")
29)
30
31(define-object SourceManager
32  (in-module "Ario")
33  (parent "GtkNotebook")
34  (c-name "ArioSourceManager")
35  (gtype-id "ARIO_TYPE_SOURCE_MANAGER")
36)
37
38;; Enumerations and flags ...
39
40(define-enum ServerType
41  (in-module "Ario")
42  (c-name "ArioServerType")
43  (gtype-id "ARIO_TYPE_SERVER_TYPE")
44  (values
45    '("mpd" "ArioServerMpd")
46    '("xmms" "ArioServerXmms")
47  )
48)
49
50(define-enum ServerActionType
51  (in-module "Ario")
52  (c-name "ArioServerActionType")
53  (gtype-id "ARIO_TYPE_SERVER_ACTION_TYPE")
54  (values
55    '("add" "ARIO_SERVER_ACTION_ADD")
56    '("delete-id" "ARIO_SERVER_ACTION_DELETE_ID")
57    '("delete-pos" "ARIO_SERVER_ACTION_DELETE_POS")
58    '("move" "ARIO_SERVER_ACTION_MOVE")
59    '("moveid" "ARIO_SERVER_ACTION_MOVEID")
60  )
61)
62
63(define-enum Visibility
64  (in-module "Ario")
65  (c-name "ArioVisibility")
66  (gtype-id "ARIO_TYPE_VISIBILITY")
67  (values
68    '("hidden" "VISIBILITY_HIDDEN")
69    '("visible" "VISIBILITY_VISIBLE")
70    '("toggle" "VISIBILITY_TOGGLE")
71  )
72)
73
74(define-enum SourceType
75  (in-module "Ario")
76  (c-name "ArioSourceType")
77  (gtype-id "ARIO_TYPE_SOURCE_TYPE")
78  (values
79    '("browser" "ARIO_SOURCE_BROWSER")
80    '("radio" "ARIO_SOURCE_RADIO")
81    '("search" "ARIO_SOURCE_SEARCH")
82    '("playlists" "ARIO_SOURCE_PLAYLISTS")
83    '("filesystem" "ARIO_SOURCE_FILESYSTEM")
84  )
85)
86
87
88;; From ario-plugin.h
89
90(define-function ario_plugin_get_type
91  (c-name "ario_plugin_get_type")
92  (return-type "GType")
93)
94
95(define-method activate
96  (of-object "ArioPlugin")
97  (c-name "ario_plugin_activate")
98  (return-type "none")
99  (parameters
100    '("ArioShell*" "shell")
101  )
102)
103
104(define-method deactivate
105  (of-object "ArioPlugin")
106  (c-name "ario_plugin_deactivate")
107  (return-type "none")
108  (parameters
109    '("ArioShell*" "shell")
110  )
111)
112
113(define-method is_configurable
114  (of-object "ArioPlugin")
115  (c-name "ario_plugin_is_configurable")
116  (return-type "gboolean")
117)
118
119(define-method create_configure_dialog
120  (of-object "ArioPlugin")
121  (c-name "ario_plugin_create_configure_dialog")
122  (return-type "GtkWidget*")
123)
124
125(define-function ario_plugin_get_plugin_paths
126  (c-name "ario_plugin_get_plugin_paths")
127  (return-type "GSList*")
128)
129
130(define-function ario_plugin_get_plugin_data_paths
131  (c-name "ario_plugin_get_plugin_data_paths")
132  (return-type "GSList*")
133)
134
135(define-function ario_plugin_find_file
136  (c-name "ario_plugin_find_file")
137  (return-type "char*")
138  (parameters
139    '("const-char*" "file")
140  )
141)
142
143
144
145;; From ario-server.h
146
147(define-function ario_server_get_type
148  (c-name "ario_server_get_type")
149  (return-type "GType")
150)
151
152(define-function ario_server_get_instance
153  (c-name "ario_server_get_instance")
154  (return-type "ArioServer*")
155)
156
157(define-function ario_server_connect
158  (c-name "ario_server_connect")
159  (return-type "gboolean")
160)
161
162(define-function ario_server_disconnect
163  (c-name "ario_server_disconnect")
164  (return-type "none")
165)
166
167(define-function ario_server_reconnect
168  (c-name "ario_server_reconnect")
169  (return-type "none")
170)
171
172(define-function ario_server_shutdown
173  (c-name "ario_server_shutdown")
174  (return-type "none")
175)
176
177(define-function ario_server_is_connected
178  (c-name "ario_server_is_connected")
179  (return-type "gboolean")
180)
181
182(define-function ario_server_update_status
183  (c-name "ario_server_update_status")
184  (return-type "gboolean")
185)
186
187(define-function ario_server_update_db
188  (c-name "ario_server_update_db")
189  (return-type "none")
190  (parameters
191    '("const-gchar*" "path")
192  )
193)
194
195(define-function ario_server_list_tags
196  (c-name "ario_server_list_tags")
197  (return-type "GSList*")
198  (parameters
199    '("const-ArioServerTag" "tag")
200    '("const-ArioServerCriteria*" "criteria")
201  )
202)
203
204(define-function ario_server_get_albums
205  (c-name "ario_server_get_albums")
206  (return-type "GSList*")
207  (parameters
208    '("const-ArioServerCriteria*" "criteria")
209  )
210)
211
212(define-function ario_server_get_songs
213  (c-name "ario_server_get_songs")
214  (return-type "GSList*")
215  (parameters
216    '("const-ArioServerCriteria*" "criteria")
217    '("const-gboolean" "exact")
218  )
219)
220
221(define-function ario_server_get_songs_from_playlist
222  (c-name "ario_server_get_songs_from_playlist")
223  (return-type "GSList*")
224  (parameters
225    '("char*" "playlist")
226  )
227)
228
229(define-function ario_server_get_playlists
230  (c-name "ario_server_get_playlists")
231  (return-type "GSList*")
232)
233
234(define-function ario_server_get_playlist_changes
235  (c-name "ario_server_get_playlist_changes")
236  (return-type "GSList*")
237  (parameters
238    '("gint64" "playlist_id")
239  )
240)
241
242(define-function ario_server_get_current_song_on_server
243  (c-name "ario_server_get_current_song_on_server")
244  (return-type "ArioServerSong*")
245)
246
247(define-function ario_server_get_current_song
248  (c-name "ario_server_get_current_song")
249  (return-type "ArioServerSong*")
250)
251
252(define-function ario_server_get_current_artist
253  (c-name "ario_server_get_current_artist")
254  (return-type "char*")
255)
256
257(define-function ario_server_get_current_album
258  (c-name "ario_server_get_current_album")
259  (return-type "char*")
260)
261
262(define-function ario_server_get_current_song_path
263  (c-name "ario_server_get_current_song_path")
264  (return-type "char*")
265)
266
267(define-function ario_server_get_current_song_id
268  (c-name "ario_server_get_current_song_id")
269  (return-type "int")
270)
271
272(define-function ario_server_get_current_state
273  (c-name "ario_server_get_current_state")
274  (return-type "int")
275)
276
277(define-function ario_server_get_current_elapsed
278  (c-name "ario_server_get_current_elapsed")
279  (return-type "int")
280)
281
282(define-function ario_server_get_current_volume
283  (c-name "ario_server_get_current_volume")
284  (return-type "int")
285)
286
287(define-function ario_server_get_current_total_time
288  (c-name "ario_server_get_current_total_time")
289  (return-type "int")
290)
291
292(define-function ario_server_get_current_playlist_id
293  (c-name "ario_server_get_current_playlist_id")
294  (return-type "gint64")
295)
296
297(define-function ario_server_get_current_playlist_length
298  (c-name "ario_server_get_current_playlist_length")
299  (return-type "int")
300)
301
302(define-function ario_server_get_current_playlist_total_time
303  (c-name "ario_server_get_current_playlist_total_time")
304  (return-type "int")
305)
306
307(define-function ario_server_get_crossfadetime
308  (c-name "ario_server_get_crossfadetime")
309  (return-type "int")
310)
311
312(define-function ario_server_get_current_random
313  (c-name "ario_server_get_current_random")
314  (return-type "gboolean")
315)
316
317(define-function ario_server_get_current_repeat
318  (c-name "ario_server_get_current_repeat")
319  (return-type "gboolean")
320)
321
322(define-function ario_server_get_updating
323  (c-name "ario_server_get_updating")
324  (return-type "gboolean")
325)
326
327(define-function ario_server_set_current_elapsed
328  (c-name "ario_server_set_current_elapsed")
329  (return-type "none")
330  (parameters
331    '("const-gint" "elapsed")
332  )
333)
334
335(define-function ario_server_set_current_volume
336  (c-name "ario_server_set_current_volume")
337  (return-type "none")
338  (parameters
339    '("const-gint" "volume")
340  )
341)
342
343(define-function ario_server_get_outputs
344  (c-name "ario_server_get_outputs")
345  (return-type "GSList*")
346)
347
348(define-function ario_server_set_current_random
349  (c-name "ario_server_set_current_random")
350  (return-type "none")
351  (parameters
352    '("const-gboolean" "random")
353  )
354)
355
356(define-function ario_server_set_current_repeat
357  (c-name "ario_server_set_current_repeat")
358  (return-type "none")
359  (parameters
360    '("const-gboolean" "repeat")
361  )
362)
363
364(define-function ario_server_set_crossfadetime
365  (c-name "ario_server_set_crossfadetime")
366  (return-type "none")
367  (parameters
368    '("const-int" "crossfadetime")
369  )
370)
371
372(define-function ario_server_is_paused
373  (c-name "ario_server_is_paused")
374  (return-type "gboolean")
375)
376
377(define-function ario_server_do_next
378  (c-name "ario_server_do_next")
379  (return-type "none")
380)
381
382(define-function ario_server_do_prev
383  (c-name "ario_server_do_prev")
384  (return-type "none")
385)
386
387(define-function ario_server_do_play
388  (c-name "ario_server_do_play")
389  (return-type "none")
390)
391
392(define-function ario_server_do_play_pos
393  (c-name "ario_server_do_play_pos")
394  (return-type "none")
395  (parameters
396    '("gint" "id")
397  )
398)
399
400(define-function ario_server_do_pause
401  (c-name "ario_server_do_pause")
402  (return-type "none")
403)
404
405(define-function ario_server_do_stop
406  (c-name "ario_server_do_stop")
407  (return-type "none")
408)
409
410(define-function ario_server_free_album
411  (c-name "ario_server_free_album")
412  (return-type "none")
413  (parameters
414    '("ArioServerAlbum*" "server_album")
415  )
416)
417
418(define-function ario_server_copy_album
419  (c-name "ario_server_copy_album")
420  (return-type "ArioServerAlbum*")
421  (parameters
422    '("const-ArioServerAlbum*" "server_album")
423  )
424)
425
426(define-function ario_server_clear
427  (c-name "ario_server_clear")
428  (return-type "none")
429)
430
431(define-function ario_server_shuffle
432  (c-name "ario_server_shuffle")
433  (return-type "none")
434)
435
436(define-function ario_server_queue_add
437  (c-name "ario_server_queue_add")
438  (return-type "none")
439  (parameters
440    '("const-char*" "path")
441  )
442)
443
444(define-function ario_server_queue_delete_id
445  (c-name "ario_server_queue_delete_id")
446  (return-type "none")
447  (parameters
448    '("const-int" "id")
449  )
450)
451
452(define-function ario_server_queue_delete_pos
453  (c-name "ario_server_queue_delete_pos")
454  (return-type "none")
455  (parameters
456    '("const-int" "pos")
457  )
458)
459
460(define-function ario_server_queue_move
461  (c-name "ario_server_queue_move")
462  (return-type "none")
463  (parameters
464    '("const-int" "old_pos")
465    '("const-int" "new_pos")
466  )
467)
468
469(define-function ario_server_queue_moveid
470  (c-name "ario_server_queue_moveid")
471  (return-type "none")
472  (parameters
473    '("const-int" "id")
474    '("const-int" "pos")
475  )
476)
477
478(define-function ario_server_queue_commit
479  (c-name "ario_server_queue_commit")
480  (return-type "none")
481)
482
483(define-function ario_server_insert_at
484  (c-name "ario_server_insert_at")
485  (return-type "none")
486  (parameters
487    '("const-GSList*" "songs")
488    '("const-gint" "pos")
489  )
490)
491
492(define-function ario_server_delete_playlist
493  (c-name "ario_server_delete_playlist")
494  (return-type "none")
495  (parameters
496    '("const-char*" "name")
497  )
498)
499
500(define-function ario_server_get_outputs
501  (c-name "ario_server_get_outputs")
502  (return-type "GSList*")
503)
504
505(define-function ario_server_enable_output
506  (c-name "ario_server_enable_output")
507  (return-type "none")
508  (parameters
509    '("const-int" "id")
510    '("const-gboolean" "enabled")
511  )
512)
513
514(define-function ario_server_get_stats
515  (c-name "ario_server_get_stats")
516  (return-type "ArioServerStats*")
517)
518
519(define-function ario_server_get_songs_info
520  (c-name "ario_server_get_songs_info")
521  (return-type "GList*")
522  (parameters
523    '("GSList*" "paths")
524  )
525)
526
527(define-function ario_server_list_files
528  (c-name "ario_server_list_files")
529  (return-type "ArioServerFileList*")
530  (parameters
531    '("const-char*" "path")
532    '("const-gboolean" "recursive")
533  )
534)
535
536(define-function ario_server_free_file_list
537  (c-name "ario_server_free_file_list")
538  (return-type "none")
539  (parameters
540    '("ArioServerFileList*" "files")
541  )
542)
543
544(define-method copy
545  (of-object "ArioServerCriteria")
546  (c-name "ario_server_criteria_copy")
547  (return-type "ArioServerCriteria*")
548)
549
550(define-method free
551  (of-object "ArioServerCriteria")
552  (c-name "ario_server_criteria_free")
553  (return-type "none")
554)
555
556(define-function ario_server_get_items_names
557  (c-name "ario_server_get_items_names")
558  (return-type "gchar**")
559)
560
561(define-method get_tag
562  (of-object "ArioServerSong")
563  (c-name "ario_server_song_get_tag")
564  (return-type "const-gchar*")
565  (parameters
566    '("ArioServerTag" "tag")
567  )
568)
569
570(define-function ario_server_playlist_add_songs
571  (c-name "ario_server_playlist_add_songs")
572  (return-type "none")
573  (parameters
574    '("const-GSList*" "songs")
575    '("const-gint" "pos")
576    '("const-gboolean" "play")
577  )
578)
579
580(define-function ario_server_playlist_add_dir
581  (c-name "ario_server_playlist_add_dir")
582  (return-type "none")
583  (parameters
584    '("const-gchar*" "dir")
585    '("const-gint" "pos")
586    '("const-gboolean" "play")
587  )
588)
589
590(define-function ario_server_playlist_add_criterias
591  (c-name "ario_server_playlist_add_criterias")
592  (return-type "none")
593  (parameters
594    '("const-GSList*" "criterias")
595    '("const-gint" "pos")
596    '("const-gboolean" "play")
597    '("const-gint" "nb_entries")
598  )
599)
600
601(define-function ario_server_playlist_append_artists
602  (c-name "ario_server_playlist_append_artists")
603  (return-type "none")
604  (parameters
605    '("const-GSList*" "artists")
606    '("const-gboolean" "play")
607    '("const-gint" "nb_entries")
608  )
609)
610
611(define-function ario_server_playlist_append_songs
612  (c-name "ario_server_playlist_append_songs")
613  (return-type "none")
614  (parameters
615    '("const-GSList*" "songs")
616    '("const-gboolean" "play")
617  )
618)
619
620(define-function ario_server_playlist_append_server_songs
621  (c-name "ario_server_playlist_append_server_songs")
622  (return-type "none")
623  (parameters
624    '("const-GSList*" "songs")
625    '("const-gboolean" "play")
626  )
627)
628
629(define-function ario_server_playlist_append_dir
630  (c-name "ario_server_playlist_append_dir")
631  (return-type "none")
632  (parameters
633    '("const-gchar*" "dir")
634    '("const-gboolean" "play")
635  )
636)
637
638(define-function ario_server_playlist_append_criterias
639  (c-name "ario_server_playlist_append_criterias")
640  (return-type "none")
641  (parameters
642    '("const-GSList*" "criterias")
643    '("const-gboolean" "play")
644    '("const-gint" "nb_entries")
645  )
646)
647
648
649
650;; From ario-shell.h
651
652(define-function ario_shell_get_type
653  (c-name "ario_shell_get_type")
654  (return-type "GType")
655)
656
657(define-function ario_shell_new
658  (c-name "ario_shell_new")
659  (is-constructor-of "ArioShell")
660  (return-type "ArioShell*")
661)
662
663(define-method construct
664  (of-object "ArioShell")
665  (c-name "ario_shell_construct")
666  (return-type "none")
667  (parameters
668    '("gboolean" "minimized")
669  )
670)
671
672(define-method shutdown
673  (of-object "ArioShell")
674  (c-name "ario_shell_shutdown")
675  (return-type "none")
676)
677
678(define-method present
679  (of-object "ArioShell")
680  (c-name "ario_shell_present")
681  (return-type "none")
682)
683
684(define-method set_visibility
685  (of-object "ArioShell")
686  (c-name "ario_shell_set_visibility")
687  (return-type "none")
688  (parameters
689    '("ArioVisibility" "state")
690  )
691)
692
693
694
695;; From ario-source-manager.h
696
697(define-function ario_source_manager_get_type
698  (c-name "ario_source_manager_get_type")
699  (return-type "GType")
700)
701
702(define-function ario_source_manager_get_instance
703  (c-name "ario_source_manager_get_instance")
704  (return-type "GtkWidget*")
705  (parameters
706    '("GtkUIManager*" "mgr")
707    '("GtkActionGroup*" "group")
708  )
709)
710
711(define-method manager_append
712  (of-object "ArioSource")
713  (c-name "ario_source_manager_append")
714  (return-type "none")
715)
716
717(define-method manager_remove
718  (of-object "ArioSource")
719  (c-name "ario_source_manager_remove")
720  (return-type "none")
721)
722
723(define-function ario_source_manager_reorder
724  (c-name "ario_source_manager_reorder")
725  (return-type "none")
726)
727
728(define-function ario_source_manager_shutdown
729  (c-name "ario_source_manager_shutdown")
730  (return-type "none")
731)
732
733(define-function ario_source_manager_goto_playling_song
734  (c-name "ario_source_manager_goto_playling_song")
735  (return-type "none")
736)
737
738
739
740;; From ario-source.h
741
742(define-function ario_source_get_type
743  (c-name "ario_source_get_type")
744  (return-type "GType")
745)
746
747(define-method get_id
748  (of-object "ArioSource")
749  (c-name "ario_source_get_id")
750  (return-type "gchar*")
751)
752
753(define-method get_name
754  (of-object "ArioSource")
755  (c-name "ario_source_get_name")
756  (return-type "gchar*")
757)
758
759(define-method get_icon
760  (of-object "ArioSource")
761  (c-name "ario_source_get_icon")
762  (return-type "gchar*")
763)
764
765(define-method shutdown
766  (of-object "ArioSource")
767  (c-name "ario_source_shutdown")
768  (return-type "none")
769)
770
771(define-method select
772  (of-object "ArioSource")
773  (c-name "ario_source_select")
774  (return-type "none")
775)
776
777(define-method unselect
778  (of-object "ArioSource")
779  (c-name "ario_source_unselect")
780  (return-type "none")
781)
782
783(define-method goto_playling_song
784  (of-object "ArioSource")
785  (c-name "ario_source_goto_playling_song")
786  (return-type "none")
787)
788
789
790