2006-05-13 James Livingston <doclivingston@gmail.com>
[rhythmbox.git] / bindings / python / rhythmdb.defs
blob416bf26de951b8f86f318955d74a355d3fcb3d50
1 ;; -*- scheme -*-
2 ; object definitions ...
4 (define-interface QueryResults
5   (in-module "RhythmDB")
6   (c-name "RhythmDBQueryResults")
7   (gtype-id "RHYTHMDB_TYPE_QUERY_RESULTS")
10 (define-object RhythmDB
11   (in-module "RhythmDB")
12   (parent "GObject")
13   (c-name "RhythmDB")
14   (gtype-id "RHYTHMDB_TYPE_RHYTHMDB")
17 (define-pointer Entry
18   (in-module "RhythmDB")
19   (c-name "RhythmDBEntry")
20   (gtype-id "RHYTHMDB_TYPE_ENTRY")
23 (define-pointer EntryType
24   (in-module "RhythmDB")
25   (c-name "RhythmDBEntryType_")
26   (gtype-id "RHYTHMDB_TYPE_ENTRY_TYPE")
29 (define-boxed Query
30   (in-module "RhythmDB")
31   (c-name "RhythmDBQuery")
32   (gtype-id "RHYTHMDB_TYPE_QUERY")
35 (define-object PropertyModel
36   (in-module "RhythmDB")
37   (parent "GObject")
38   (interface "GtkTreeModel")
39   (c-name "RhythmDBPropertyModel")
40   (gtype-id "RHYTHMDB_TYPE_PROPERTY_MODEL")
43 (define-object QueryModel
44   (in-module "RhythmDB")
45   (parent "GObject")
46   (interface "GtkTreeModel")
47   (interface "RhythmDBQueryResults")
48   (c-name "RhythmDBQueryModel")
49   (gtype-id "RHYTHMDB_TYPE_QUERY_MODEL")
53 ;; Enumerations and flags ...
55 (define-enum QueryType
56   (in-module "RhythmDB")
57   (c-name "RhythmDBQueryType")
58   (gtype-id "RHYTHMDB_TYPE_QUERY_TYPE")
59   (values
60     '("end" "RHYTHMDB_QUERY_END")
61     '("disjunction" "RHYTHMDB_QUERY_DISJUNCTION")
62     '("subquery" "RHYTHMDB_QUERY_SUBQUERY")
63     '("prop-equals" "RHYTHMDB_QUERY_PROP_EQUALS")
64     '("prop-like" "RHYTHMDB_QUERY_PROP_LIKE")
65     '("prop-not-like" "RHYTHMDB_QUERY_PROP_NOT_LIKE")
66     '("prop-prefix" "RHYTHMDB_QUERY_PROP_PREFIX")
67     '("prop-suffix" "RHYTHMDB_QUERY_PROP_SUFFIX")
68     '("prop-greater" "RHYTHMDB_QUERY_PROP_GREATER")
69     '("prop-less" "RHYTHMDB_QUERY_PROP_LESS")
70     '("prop-current-time-within" "RHYTHMDB_QUERY_PROP_CURRENT_TIME_WITHIN")
71     '("prop-current-time-not-within" "RHYTHMDB_QUERY_PROP_CURRENT_TIME_NOT_WITHIN")
72     '("prop-year-equals" "RHYTHMDB_QUERY_PROP_YEAR_EQUALS")
73     '("prop-year-greater" "RHYTHMDB_QUERY_PROP_YEAR_GREATER")
74     '("prop-year-less" "RHYTHMDB_QUERY_PROP_YEAR_LESS")
75   )
79 (define-enum PropType
80   (in-module "RhythmDB")
81   (c-name "RhythmDBPropType")
82   (gtype-id "RHYTHMDB_TYPE_PROP_TYPE")
83   (values
84     '("prop-type" "RHYTHMDB_PROP_TYPE")
85     '("prop-title" "RHYTHMDB_PROP_TITLE")
86     '("prop-genre" "RHYTHMDB_PROP_GENRE")
87     '("prop-artist" "RHYTHMDB_PROP_ARTIST")
88     '("prop-album" "RHYTHMDB_PROP_ALBUM")
89     '("prop-track-number" "RHYTHMDB_PROP_TRACK_NUMBER")
90     '("prop-disc-number" "RHYTHMDB_PROP_DISC_NUMBER")
91     '("prop-duration" "RHYTHMDB_PROP_DURATION")
92     '("prop-file-size" "RHYTHMDB_PROP_FILE_SIZE")
93     '("prop-location" "RHYTHMDB_PROP_LOCATION")
94     '("prop-mountpoint" "RHYTHMDB_PROP_MOUNTPOINT")
95     '("prop-mtime" "RHYTHMDB_PROP_MTIME")
96     '("prop-first-seen" "RHYTHMDB_PROP_FIRST_SEEN")
97     '("prop-last-seen" "RHYTHMDB_PROP_LAST_SEEN")
98     '("prop-rating" "RHYTHMDB_PROP_RATING")
99     '("prop-play-count" "RHYTHMDB_PROP_PLAY_COUNT")
100     '("prop-last-played" "RHYTHMDB_PROP_LAST_PLAYED")
101     '("prop-bitrate" "RHYTHMDB_PROP_BITRATE")
102     '("prop-date" "RHYTHMDB_PROP_DATE")
103     '("prop-track-gain" "RHYTHMDB_PROP_TRACK_GAIN")
104     '("prop-track-peak" "RHYTHMDB_PROP_TRACK_PEAK")
105     '("prop-album-gain" "RHYTHMDB_PROP_ALBUM_GAIN")
106     '("prop-album-peak" "RHYTHMDB_PROP_ALBUM_PEAK")
107     '("prop-mimetype" "RHYTHMDB_PROP_MIMETYPE")
108     '("prop-title-sort-key" "RHYTHMDB_PROP_TITLE_SORT_KEY")
109     '("prop-genre-sort-key" "RHYTHMDB_PROP_GENRE_SORT_KEY")
110     '("prop-artist-sort-key" "RHYTHMDB_PROP_ARTIST_SORT_KEY")
111     '("prop-album-sort-key" "RHYTHMDB_PROP_ALBUM_SORT_KEY")
112     '("prop-title-folded" "RHYTHMDB_PROP_TITLE_FOLDED")
113     '("prop-genre-folded" "RHYTHMDB_PROP_GENRE_FOLDED")
114     '("prop-artist-folded" "RHYTHMDB_PROP_ARTIST_FOLDED")
115     '("prop-album-folded" "RHYTHMDB_PROP_ALBUM_FOLDED")
116     '("prop-last-played-str" "RHYTHMDB_PROP_LAST_PLAYED_STR")
117     '("prop-hidden" "RHYTHMDB_PROP_HIDDEN")
118     '("prop-playback-error" "RHYTHMDB_PROP_PLAYBACK_ERROR")
119     '("prop-first-seen-str" "RHYTHMDB_PROP_FIRST_SEEN_STR")
120     '("prop-last-seen-str" "RHYTHMDB_PROP_LAST_SEEN_STR")
121     '("prop-search-match" "RHYTHMDB_PROP_SEARCH_MATCH")
122     '("prop-year" "RHYTHMDB_PROP_YEAR")
123     '("prop-status" "RHYTHMDB_PROP_STATUS")
124     '("prop-description" "RHYTHMDB_PROP_DESCRIPTION")
125     '("prop-subtitle" "RHYTHMDB_PROP_SUBTITLE")
126     '("prop-summary" "RHYTHMDB_PROP_SUMMARY")
127     '("prop-lang" "RHYTHMDB_PROP_LANG")
128     '("prop-copyright" "RHYTHMDB_PROP_COPYRIGHT")
129     '("prop-image" "RHYTHMDB_PROP_IMAGE")
130     '("prop-post-time" "RHYTHMDB_PROP_POST_TIME")
131     '("num-properties" "RHYTHMDB_NUM_PROPERTIES")
132   )
135 (define-enum PropertyModelColumn
136   (in-module "RhythmDB")
137   (c-name "RhythmDBPropertyModelColumn")
138   (gtype-id "RHYTHMDB_TYPE_PROPERTY_MODEL_COLUMN")
139   (values
140     '("title" "RHYTHMDB_PROPERTY_MODEL_COLUMN_TITLE")
141     '("priority" "RHYTHMDB_PROPERTY_MODEL_COLUMN_PRIORITY")
142     '("number" "RHYTHMDB_PROPERTY_MODEL_COLUMN_NUMBER")
143     '("last" "RHYTHMDB_PROPERTY_MODEL_COLUMN_LAST")
144   )
148 ;; From ../../rhythmdb/rhythmdb-query-results.h
150 (define-function rhythmdb_query_results_get_type
151   (c-name "rhythmdb_query_results_get_type")
152   (return-type "GType")
155 (define-method set_query
156   (of-object "RhythmDBQueryResults")
157   (c-name "rhythmdb_query_results_set_query")
158   (return-type "none")
159   (parameters
160     '("RhythmDBQuery*" "query")
161   )
164 (define-method add_results
165   (of-object "RhythmDBQueryResults")
166   (c-name "rhythmdb_query_results_add_results")
167   (return-type "none")
168   (parameters
169     '("GPtrArray*" "entries")
170   )
173 (define-method query_complete
174   (of-object "RhythmDBQueryResults")
175   (c-name "rhythmdb_query_results_query_complete")
176   (return-type "none")
180 ;; From ../../rhythmdb/rhythmdb.h
182 (define-function rhythmdb_query_get_type
183   (c-name "rhythmdb_query_get_type")
184   (return-type "GType")
187 (define-function rhythmdb_prop_get_type
188   (c-name "rhythmdb_prop_get_type")
189   (return-type "GType")
192 (define-method get_entry_type
193   (of-object "RhythmDBEntry")
194   (c-name "rhythmdb_entry_get_entry_type")
195   (return-type "RhythmDBEntryType_*")
198 (define-method shutdown
199   (of-object "RhythmDB")
200   (c-name "rhythmdb_shutdown")
201   (return-type "none")
204 (define-method load
205   (of-object "RhythmDB")
206   (c-name "rhythmdb_load")
207   (return-type "none")
210 (define-method save
211   (of-object "RhythmDB")
212   (c-name "rhythmdb_save")
213   (return-type "none")
216 (define-method save_async
217   (of-object "RhythmDB")
218   (c-name "rhythmdb_save_async")
219   (return-type "none")
222 (define-method start_action_thread
223   (of-object "RhythmDB")
224   (c-name "rhythmdb_start_action_thread")
225   (return-type "none")
228 (define-method query_preprocess
229   (of-object "RhythmDB")
230   (c-name "rhythmdb_query_preprocess")
231   (return-type "none")
232   (parameters
233     '("RhythmDBQuery*" "query")
234   )
237 (define-method query_serialize
238   (of-object "RhythmDB")
239   (c-name "rhythmdb_query_serialize")
240   (return-type "none")
241   (parameters
242     '("RhythmDBQuery*" "query")
243     '("xmlNodePtr" "node")
244   )
247 (define-method query_deserialize
248   (of-object "RhythmDB")
249   (c-name "rhythmdb_query_deserialize")
250   (return-type "RhythmDBQuery*")
251   (parameters
252     '("xmlNodePtr" "node")
253   )
256 (define-method entry_get
257   (of-object "RhythmDB")
258   (c-name "rhythmdb_entry_get")
259   (return-type "none")
260   (parameters
261     '("RhythmDBEntry*" "entry")
262     '("RhythmDBPropType" "propid")
263     '("GValue*" "val")
264   )
267 (define-method get_string
268   (of-object "RhythmDBEntry")
269   (c-name "rhythmdb_entry_get_string")
270   (return-type "const-char*")
271   (parameters
272     '("RhythmDBPropType" "propid")
273   )
276 (define-method get_pointer
277   (of-object "RhythmDBEntry")
278   (c-name "rhythmdb_entry_get_pointer")
279   (return-type "gpointer")
280   (parameters
281     '("RhythmDBPropType" "propid")
282   )
285 (define-method get_boolean
286   (of-object "RhythmDBEntry")
287   (c-name "rhythmdb_entry_get_boolean")
288   (return-type "gboolean")
289   (parameters
290     '("RhythmDBPropType" "propid")
291   )
294 (define-method get_uint64
295   (of-object "RhythmDBEntry")
296   (c-name "rhythmdb_entry_get_uint64")
297   (return-type "guint64")
298   (parameters
299     '("RhythmDBPropType" "propid")
300   )
303 (define-method get_ulong
304   (of-object "RhythmDBEntry")
305   (c-name "rhythmdb_entry_get_ulong")
306   (return-type "gulong")
307   (parameters
308     '("RhythmDBPropType" "propid")
309   )
312 (define-method get_double
313   (of-object "RhythmDBEntry")
314   (c-name "rhythmdb_entry_get_double")
315   (return-type "double")
316   (parameters
317     '("RhythmDBPropType" "propid")
318   )
321 (define-function rhythmdb_get_type
322   (c-name "rhythmdb_get_type")
323   (return-type "GType")
326 (define-method commit
327   (of-object "RhythmDB")
328   (c-name "rhythmdb_commit")
329   (return-type "none")
332 (define-method entry_is_editable
333   (of-object "RhythmDB")
334   (c-name "rhythmdb_entry_is_editable")
335   (return-type "gboolean")
336   (parameters
337     '("RhythmDBEntry*" "entry")
338   )
341 (define-method entry_new
342   (of-object "RhythmDB")
343   (c-name "rhythmdb_entry_new")
344   (return-type "RhythmDBEntry*")
345   (parameters
346     '("RhythmDBEntryType_*" "type")
347     '("const-char*" "uri")
348   )
351 (define-method add_uri
352   (of-object "RhythmDB")
353   (c-name "rhythmdb_add_uri")
354   (return-type "none")
355   (parameters
356     '("const-char*" "uri")
357   )
360 (define-method add_uri_with_type
361   (of-object "RhythmDB")
362   (c-name "rhythmdb_add_uri_with_type")
363   (return-type "none")
364   (parameters
365     '("const-char*" "uri")
366     '("RhythmDBEntryType_*" "type")
367   )
370 (define-method set
371   (of-object "RhythmDB")
372   (c-name "rhythmdb_entry_set")
373   (return-type "none")
374   (parameters
375     '("RhythmDBEntry*" "entry")
376     '("RhythmDBPropType" "propid")
377     '("const-GValue*" "value")
378   )
381 (define-method entry_set_nonotify
382   (of-object "RhythmDB")
383   (c-name "rhythmdb_entry_set_nonotify")
384   (return-type "none")
385   (parameters
386     '("RhythmDBEntry*" "entry")
387     '("RhythmDBPropType" "propid")
388     '("const-GValue*" "value")
389   )
392 (define-method entry_set_uninserted
393   (of-object "RhythmDB")
394   (c-name "rhythmdb_entry_set_uninserted")
395   (return-type "none")
396   (parameters
397     '("RhythmDBEntry*" "entry")
398     '("RhythmDBPropType" "propid")
399     '("const-GValue*" "value")
400   )
403 (define-method entry_delete
404   (of-object "RhythmDB")
405   (c-name "rhythmdb_entry_delete")
406   (return-type "none")
407   (parameters
408     '("RhythmDBEntry*" "entry")
409   )
412 (define-method entry_delete_by_type
413   (of-object "RhythmDB")
414   (c-name "rhythmdb_entry_delete_by_type")
415   (return-type "none")
416   (parameters
417     '("RhythmDBEntryType_*" "type")
418   )
421 (define-method entry_move_to_trash
422   (of-object "RhythmDB")
423   (c-name "rhythmdb_entry_move_to_trash")
424   (return-type "none")
425   (parameters
426     '("RhythmDBEntry*" "entry")
427   )
430 (define-method entry_lookup_by_location
431   (of-object "RhythmDB")
432   (c-name "rhythmdb_entry_lookup_by_location")
433   (return-type "RhythmDBEntry*")
434   (parameters
435     '("const-char*" "uri")
436   )
439 (define-method evaluate_query
440   (of-object "RhythmDB")
441   (c-name "rhythmdb_evaluate_query")
442   (return-type "gboolean")
443   (parameters
444     '("RhythmDBQuery*" "query")
445     '("RhythmDBEntry*" "entry")
446   )
449 (define-method entry_foreach
450   (of-object "RhythmDB")
451   (c-name "rhythmdb_entry_foreach")
452   (return-type "none")
453   (parameters
454     '("GFunc" "func")
455     '("gpointer" "data")
456   )
459 (define-method do_full_query_parsed
460   (of-object "RhythmDB")
461   (c-name "rhythmdb_do_full_query_parsed")
462   (return-type "none")
463   (parameters
464     '("RhythmDBQueryResults*" "results")
465     '("RhythmDBQuery*" "query")
466   )
469 (define-method do_full_query_async_parsed
470   (of-object "RhythmDB")
471   (c-name "rhythmdb_do_full_query_async_parsed")
472   (return-type "none")
473   (parameters
474     '("RhythmDBQueryResults*" "results")
475     '("RhythmDBQuery*" "query")
476   )
479 (define-method query_parse
480   (of-object "RhythmDB")
481   (c-name "rhythmdb_query_parse")
482   (return-type "RhythmDBQuery*")
483   (parameters
484   )
485   (varargs #t)
488 (define-method append
489   (of-object "RhythmDBQuery")
490   (c-name "rhythmdb_query_append")
491   (return-type "none")
492   (varargs #t)
495 (define-method append_prop_multiple
496   (of-object "RhythmDBQuery")
497   (c-name "rhythmdb_query_append_prop_multiple")
498   (return-type "none")
499   (parameters
500     '("RhythmDBPropType" "propid")
501     '("GList*" "items")
502   )
505 (define-method concatenate
506   (of-object "RhythmDBQuery")
507   (c-name "rhythmdb_query_concatenate")
508   (return-type "none")
509   (parameters
510     '("RhythmDBQuery*" "query2")
511   )
514 (define-method is_busy
515   (of-object "RhythmDB")
516   (c-name "rhythmdb_is_busy")
517   (return-type "gboolean")
520 (define-function rhythmdb_compute_status_normal
521   (c-name "rhythmdb_compute_status_normal")
522   (return-type "char*")
523   (parameters
524     '("gint" "n_songs")
525     '("glong" "duration")
526     '("guint64" "size")
527   )
530 (define-method get_property_type
531   (of-object "RhythmDB")
532   (c-name "rhythmdb_get_property_type")
533   (return-type "GType")
534   (parameters
535     '("RhythmDBPropType" "property_id")
536   )
539 (define-method entry_ref
540   (of-object "RhythmDB")
541   (c-name "rhythmdb_entry_ref")
542   (return-type "none")
543   (parameters
544     '("RhythmDBEntry*" "entry")
545   )
548 (define-method entry_unref
549   (of-object "RhythmDB")
550   (c-name "rhythmdb_entry_unref")
551   (return-type "none")
552   (parameters
553     '("RhythmDBEntry*" "entry")
554   )
557 (define-function rhythmdb_entry_register_type
558   (c-name "rhythmdb_entry_register_type")
559   (return-type "RhythmDBEntryType_*")
562 (define-function rhythmdb_entry_song_get_type
563   (c-name "rhythmdb_entry_song_get_type")
564   (return-type "RhythmDBEntryType_*")
567 (define-function rhythmdb_entry_iradio_get_type
568   (c-name "rhythmdb_entry_iradio_get_type")
569   (return-type "RhythmDBEntryType_*")
572 (define-function rhythmdb_entry_podcast_post_get_type
573   (c-name "rhythmdb_entry_podcast_post_get_type")
574   (return-type "RhythmDBEntryType_*")
577 (define-function rhythmdb_entry_podcast_feed_get_type
578   (c-name "rhythmdb_entry_podcast_feed_get_type")
579   (return-type "RhythmDBEntryType_*")
582 (define-function rhythmdb_entry_import_error_get_type
583   (c-name "rhythmdb_entry_import_error_get_type")
584   (return-type "RhythmDBEntryType_*")
587 (define-function rhythmdb_entry_ignore_get_type
588   (c-name "rhythmdb_entry_ignore_get_type")
589   (return-type "RhythmDBEntryType_*")
593 ;; From ../../rhythmdb/rhythmdb-property-model.h
595 (define-function rhythmdb_property_model_get_type
596   (c-name "rhythmdb_property_model_get_type")
597   (return-type "GType")
600 (define-method property_model_new
601   (of-object "RhythmDB")
602   (c-name "rhythmdb_property_model_new")
603   (return-type "RhythmDBPropertyModel*")
604   (parameters
605     '("RhythmDBPropType" "propid")
606   )
609 (define-method iter_from_string
610   (of-object "RhythmDBPropertyModel")
611   (c-name "rhythmdb_property_model_iter_from_string")
612   (return-type "gboolean")
613   (parameters
614     '("const-char*" "name")
615     '("GtkTreeIter*" "iter")
616   )
619 (define-method enable_drag
620   (of-object "RhythmDBPropertyModel")
621   (c-name "rhythmdb_property_model_enable_drag")
622   (return-type "none")
623   (parameters
624     '("GtkTreeView*" "view")
625   )
628 ;; From ../../rhythmdb/rhythmdb-query-model.h
630 (define-function rhythmdb_query_model_get_type
631   (c-name "rhythmdb_query_model_get_type")
632   (return-type "GType")
635 (define-method query_model_new
636   (of-object "RhythmDB")
637   (c-name "rhythmdb_query_model_new")
638   (return-type "RhythmDBQueryModel*")
639   (parameters
640     '("RhythmDBQuery*" "query")
641     '("GCompareDataFunc" "sort_func")
642     '("gpointer" "sort_data")
643     '("gboolean" "sort_reverse")
644   )
647 (define-method query_model_new_empty
648   (of-object "RhythmDB")
649   (c-name "rhythmdb_query_model_new_empty")
650   (return-type "RhythmDBQueryModel*")
653 (define-method add_entry
654   (of-object "RhythmDBQueryModel")
655   (c-name "rhythmdb_query_model_add_entry")
656   (return-type "none")
657   (parameters
658     '("RhythmDBEntry*" "entry")
659     '("gint" "index")
660   )
663 (define-method remove_entry
664   (of-object "RhythmDBQueryModel")
665   (c-name "rhythmdb_query_model_remove_entry")
666   (return-type "gboolean")
667   (parameters
668     '("RhythmDBEntry*" "entry")
669   )
672 (define-method move_entry
673   (of-object "RhythmDBQueryModel")
674   (c-name "rhythmdb_query_model_move_entry")
675   (return-type "none")
676   (parameters
677     '("RhythmDBEntry*" "entry")
678     '("gint" "index")
679   )
682 (define-method get_size
683   (of-object "RhythmDBQueryModel")
684   (c-name "rhythmdb_query_model_get_size")
685   (return-type "guint64")
688 (define-method get_duration
689   (of-object "RhythmDBQueryModel")
690   (c-name "rhythmdb_query_model_get_duration")
691   (return-type "long")
694 (define-method entry_to_iter
695   (of-object "RhythmDBQueryModel")
696   (c-name "rhythmdb_query_model_entry_to_iter")
697   (return-type "gboolean")
698   (parameters
699     '("RhythmDBEntry*" "entry")
700     '("GtkTreeIter*" "iter")
701   )
704 (define-method tree_path_to_entry
705   (of-object "RhythmDBQueryModel")
706   (c-name "rhythmdb_query_model_tree_path_to_entry")
707   (return-type "RhythmDBEntry*")
708   (parameters
709     '("GtkTreePath*" "path")
710   )
713 (define-method iter_to_entry
714   (of-object "RhythmDBQueryModel")
715   (c-name "rhythmdb_query_model_iter_to_entry")
716   (return-type "RhythmDBEntry*")
717   (parameters
718     '("GtkTreeIter*" "entry_iter")
719   )
722 (define-method has_pending_changes
723   (of-object "RhythmDBQueryModel")
724   (c-name "rhythmdb_query_model_has_pending_changes")
725   (return-type "gboolean")
728 (define-method iter_to_entry
729   (of-object "RhythmDBQueryModel")
730   (c-name "rhythmdb_query_model_iter_to_entry")
731   (return-type "RhythmDBEntry*")
732   (parameters
733     '("GtkTreeIter*" "entry_iter")
734   )
737 (define-method get_next_from_entry
738   (of-object "RhythmDBQueryModel")
739   (c-name "rhythmdb_query_model_get_next_from_entry")
740   (return-type "RhythmDBEntry*")
741   (parameters
742     '("RhythmDBEntry*" "entry")
743   )
746 (define-method get_previous_from_entry
747   (of-object "RhythmDBQueryModel")
748   (c-name "rhythmdb_query_model_get_previous_from_entry")
749   (return-type "RhythmDBEntry*")
750   (parameters
751     '("RhythmDBEntry*" "entry")
752   )
755 (define-method compute_status_normal
756   (of-object "RhythmDBQueryModel")
757   (c-name "rhythmdb_query_model_compute_status_normal")
758   (return-type "char*")
761 (define-method set_sort_order
762   (of-object "RhythmDBQueryModel")
763   (c-name "rhythmdb_query_model_set_sort_order")
764   (return-type "none")
765   (parameters
766     '("GCompareDataFunc" "sort_func")
767     '("gpointer" "sort_data")
768     '("gboolean" "sort_reverse")
769   )
772 (define-method reapply_query
773   (of-object "RhythmDBQueryModel")
774   (c-name "rhythmdb_query_model_reapply_query")
775   (return-type "none")
776   (parameters
777     '("gboolean" "filter")
778   )
781 (define-function rhythmdb_query_model_location_sort_func
782   (c-name "rhythmdb_query_model_location_sort_func")
783   (return-type "gint")
784   (parameters
785     '("RhythmDBEntry*" "a")
786     '("RhythmDBEntry*" "b")
787     '("RhythmDBQueryModel*" "model")
788   )
791 (define-function rhythmdb_query_model_string_sort_func
792   (c-name "rhythmdb_query_model_string_sort_func")
793   (return-type "gint")
794   (parameters
795     '("RhythmDBEntry*" "a")
796     '("RhythmDBEntry*" "b")
797     '("RhythmDBQueryModel*" "model")
798   )
801 (define-function rhythmdb_query_model_title_sort_func
802   (c-name "rhythmdb_query_model_title_sort_func")
803   (return-type "gint")
804   (parameters
805     '("RhythmDBEntry*" "a")
806     '("RhythmDBEntry*" "b")
807     '("RhythmDBQueryModel*" "model")
808   )
811 (define-function rhythmdb_query_model_album_sort_func
812   (c-name "rhythmdb_query_model_album_sort_func")
813   (return-type "gint")
814   (parameters
815     '("RhythmDBEntry*" "a")
816     '("RhythmDBEntry*" "b")
817     '("RhythmDBQueryModel*" "model")
818   )
821 (define-function rhythmdb_query_model_artist_sort_func
822   (c-name "rhythmdb_query_model_artist_sort_func")
823   (return-type "gint")
824   (parameters
825     '("RhythmDBEntry*" "a")
826     '("RhythmDBEntry*" "b")
827     '("RhythmDBQueryModel*" "model")
828   )
831 (define-function rhythmdb_query_model_genre_sort_func
832   (c-name "rhythmdb_query_model_genre_sort_func")
833   (return-type "gint")
834   (parameters
835     '("RhythmDBEntry*" "a")
836     '("RhythmDBEntry*" "b")
837     '("RhythmDBQueryModel*" "model")
838   )
841 (define-function rhythmdb_query_model_track_sort_func
842   (c-name "rhythmdb_query_model_track_sort_func")
843   (return-type "gint")
844   (parameters
845     '("RhythmDBEntry*" "a")
846     '("RhythmDBEntry*" "b")
847     '("RhythmDBQueryModel*" "model")
848   )
851 (define-function rhythmdb_query_model_double_ceiling_sort_func
852   (c-name "rhythmdb_query_model_double_ceiling_sort_func")
853   (return-type "gint")
854   (parameters
855     '("RhythmDBEntry*" "a")
856     '("RhythmDBEntry*" "b")
857     '("RhythmDBQueryModel*" "model")
858   )
861 (define-function rhythmdb_query_model_ulong_sort_func
862   (c-name "rhythmdb_query_model_ulong_sort_func")
863   (return-type "gint")
864   (parameters
865     '("RhythmDBEntry*" "a")
866     '("RhythmDBEntry*" "b")
867     '("RhythmDBQueryModel*" "model")
868   )
871 (define-function rhythmdb_query_model_date_sort_func
872   (c-name "rhythmdb_query_model_date_sort_func")
873   (return-type "gint")
874   (parameters
875     '("RhythmDBEntry*" "a")
876     '("RhythmDBEntry*" "b")
877     '("RhythmDBQueryModel*" "model")
878   )