;; -*- scheme -*- ; object definitions ... (define-object Object (in-module "Lt") (parent "GObject") (c-name "LtObject") (gtype-id "LT_TYPE_OBJECT") ) (define-object Source (in-module "Lt") (parent "LtObject") (c-name "LtSource") (gtype-id "LT_TYPE_SOURCE") ) (define-object Tag (in-module "Lt") (parent "LtObject") (c-name "LtTag") (gtype-id "LT_TYPE_TAG") ) ;; Enumerations and flags ... ;; From /usr/include/libleaftag/db.h (define-function lt_db_set_filename (c-name "lt_db_set_filename") (return-type "none") (parameters '("const-char*" "filename") ) ) (define-function lt_db_init (c-name "lt_db_init") (return-type "none") ) (define-function lt_db_uninit (c-name "lt_db_uninit") (return-type "none") ) (define-function lt_db_is_initted (c-name "lt_db_is_initted") (return-type "gboolean") ) ;; From /usr/include/libleaftag/leaftag.h ;; From /usr/include/libleaftag/object.h (define-function lt_object_get_type (c-name "lt_object_get_type") (return-type "GType") ) (define-method get_id (of-object "LtObject") (c-name "lt_object_get_id") (return-type "guint") ) (define-method get_in_db (of-object "LtObject") (c-name "lt_object_get_in_db") (return-type "gboolean") ) (define-function lt_free_object_list (c-name "lt_free_object_list") (return-type "none") (parameters '("GList*" "list") ) ) ;; From /usr/include/libleaftag/source.h (define-function lt_source_get_type (c-name "lt_source_get_type") (return-type "GType") ) (define-function create_source (c-name "lt_create_source") (return-type "LtSource*") (parameters '("const-char*" "uri") ) ) (define-function source_lookup (c-name "lt_source_lookup") (return-type "LtSource*") (parameters '("const-char*" "uri") ) ) (define-function source_lookup_many (c-name "lt_source_lookup_many") (return-type "GList*") (parameters '("GList*" "uris") ) ) (define-method delete (of-object "LtSource") (c-name "lt_source_delete") (return-type "none") ) (define-method set_uri (of-object "LtSource") (c-name "lt_source_set_uri") (return-type "none") (parameters '("const-char*" "new_uri") ) ) (define-method get_uri (of-object "LtSource") (c-name "lt_source_get_uri") (return-type "const-char*") ) (define-method get_filename (of-object "LtSource") (c-name "lt_source_get_filename") (return-type "const-char*") ) (define-method get_schema (of-object "LtSource") (c-name "lt_source_get_schema") (return-type "const-char*") ) (define-method tag (of-object "LtSource") (c-name "lt_source_tag") (return-type "none") (parameters '("GList*" "tags") ) ) (define-method tag_with_names (of-object "LtSource") (c-name "lt_source_tag_with_names") (return-type "none") (parameters '("GList*" "tags") ) ) (define-method untag (of-object "LtSource") (c-name "lt_source_untag") (return-type "none") (parameters '("GList*" "tags") ) ) (define-method untag_with_names (of-object "LtSource") (c-name "lt_source_untag_with_names") (return-type "none") (parameters '("GList*" "tags") ) ) (define-method get_tags (of-object "LtSource") (c-name "lt_source_get_tags") (return-type "GList*") ) (define-function get_all_sources (c-name "lt_get_all_sources") (return-type "GList*") ) (define-function get_sources_with_schema (c-name "lt_get_sources_with_schema") (return-type "GList*") (parameters '("const-char*" "schema" (default NULL)) ) ) (define-function get_sources_with_tags (c-name "lt_get_sources_with_tags") (return-type "GList*") (parameters '("GList*" "tags") '("const-char*" "schema" (default NULL)) '("GList*" "mimetypes" (default NULL)) ) ) (define-function get_sources_with_mime_types (c-name "lt_get_sources_with_mime_types") (return-type "GList*") (parameters '("GList*" "mimetypes") ) ) (define-function get_sources_with_tag_names (c-name "lt_get_sources_with_tag_names") (return-type "GList*") (parameters '("GList*" "tags") '("const-char*" "schema" (default NULL)) '("GList*" "mimetypes" (default NULL)) ) ) ;; From /usr/include/libleaftag/tag.h (define-function lt_tag_get_type (c-name "lt_tag_get_type") (return-type "GType") ) (define-function create_tag (c-name "lt_create_tag") (return-type "LtTag*") (parameters '("const-char*" "tag_name") ) ) (define-function tag_lookup (c-name "lt_tag_lookup") (return-type "LtTag*") (parameters '("const-char*" "tag_name") ) ) (define-function tag_lookup_many (c-name "lt_tag_lookup_many") (return-type "GList*") (parameters '("GList*" "tags") ) ) (define-method delete (of-object "LtTag") (c-name "lt_tag_delete") (return-type "none") ) (define-method get_name (of-object "LtTag") (c-name "lt_tag_get_name") (return-type "const-char*") ) (define-method set_hidden (of-object "LtTag") (c-name "lt_tag_set_hidden") (return-type "none") (parameters '("gboolean" "hidden") ) ) (define-method get_hidden (of-object "LtTag") (c-name "lt_tag_get_hidden") (return-type "gboolean") ) (define-method set_description (of-object "LtTag") (c-name "lt_tag_set_description") (return-type "none") (parameters '("const-char*" "description") ) ) (define-method get_description (of-object "LtTag") (c-name "lt_tag_get_description") (return-type "const-char*") ) (define-method set_image (of-object "LtTag") (c-name "lt_tag_set_image") (return-type "none") (parameters '("const-char*" "image_path") ) ) (define-method get_image (of-object "LtTag") (c-name "lt_tag_get_image") (return-type "const-char*") ) (define-method get_sources (of-object "LtTag") (c-name "lt_tag_get_sources") (return-type "GList*") (parameters '("const-char*" "schema" (default NULL)) ) ) (define-function get_all_tags (c-name "lt_get_all_tags") (return-type "GList*") ) (define-function get_visible_tags (c-name "lt_get_visible_tags") (return-type "GList*") ) (define-function get_tag_name_valid (c-name "lt_get_tag_name_valid") (return-type "gboolean") (parameters '("const-char*" "tag_name") ) ) (define-function get_tag_names_valid (c-name "lt_get_tag_names_valid") (return-type "gboolean") (parameters '("GList*" "tag_names") ) )