mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
f6bd62ac46
Original commit message from CVS: * gst/Makefile.am: gst.pbutils also needs to handle miniobjects * gst/pbutils.defs: Add new InstallPluginsContext boxed definition. All the *_new() functions should be accessible (and not act as constructors). * gst/pbutils.override: Add override for install_plugins_sync(). * gst/pbutilsmodule.c: Add pygst_debug debug category in this module too. * testsuite/test_pbutils.py: Test existence of new API. Needs more tests.
274 lines
6.2 KiB
Scheme
274 lines
6.2 KiB
Scheme
;; -*- scheme -*-
|
|
; object definitions ...
|
|
;; Enumerations and flags ...
|
|
|
|
(define-boxed InstallPluginsContext
|
|
(in-module "Gst")
|
|
(c-name "GstInstallPluginsContext")
|
|
(gtype-id "GST_TYPE_INSTALL_PLUGINS_CONTEXT")
|
|
)
|
|
|
|
(define-enum InstallPluginsReturn
|
|
(in-module "Gst")
|
|
(c-name "GstInstallPluginsReturn")
|
|
(gtype-id "GST_TYPE_INSTALL_PLUGINS_RETURN")
|
|
(values
|
|
'("success" "GST_INSTALL_PLUGINS_SUCCESS")
|
|
'("not-found" "GST_INSTALL_PLUGINS_NOT_FOUND")
|
|
'("error" "GST_INSTALL_PLUGINS_ERROR")
|
|
'("partial-success" "GST_INSTALL_PLUGINS_PARTIAL_SUCCESS")
|
|
'("user-abort" "GST_INSTALL_PLUGINS_USER_ABORT")
|
|
'("crashed" "GST_INSTALL_PLUGINS_CRASHED")
|
|
'("invalid" "GST_INSTALL_PLUGINS_INVALID")
|
|
'("started-ok" "GST_INSTALL_PLUGINS_STARTED_OK")
|
|
'("internal-failure" "GST_INSTALL_PLUGINS_INTERNAL_FAILURE")
|
|
'("helper-missing" "GST_INSTALL_PLUGINS_HELPER_MISSING")
|
|
'("install-in-progress" "GST_INSTALL_PLUGINS_INSTALL_IN_PROGRESS")
|
|
)
|
|
)
|
|
|
|
|
|
;; From descriptions.h
|
|
|
|
(define-function add_codec_description_to_tag_list
|
|
(c-name "gst_pb_utils_add_codec_description_to_tag_list")
|
|
(return-type "gboolean")
|
|
(parameters
|
|
'("GstTagList*" "taglist")
|
|
'("const-gchar*" "codec_tag")
|
|
'("const-GstCaps*" "caps")
|
|
)
|
|
)
|
|
|
|
(define-function get_codec_description
|
|
(c-name "gst_pb_utils_get_codec_description")
|
|
(return-type "gchar*")
|
|
(parameters
|
|
'("const-GstCaps*" "caps")
|
|
)
|
|
)
|
|
|
|
(define-function get_source_description
|
|
(c-name "gst_pb_utils_get_source_description")
|
|
(return-type "gchar*")
|
|
(parameters
|
|
'("const-gchar*" "protocol")
|
|
)
|
|
)
|
|
|
|
(define-function get_sink_description
|
|
(c-name "gst_pb_utils_get_sink_description")
|
|
(return-type "gchar*")
|
|
(parameters
|
|
'("const-gchar*" "protocol")
|
|
)
|
|
)
|
|
|
|
(define-function get_decoder_description
|
|
(c-name "gst_pb_utils_get_decoder_description")
|
|
(return-type "gchar*")
|
|
(parameters
|
|
'("const-GstCaps*" "caps")
|
|
)
|
|
)
|
|
|
|
(define-function get_encoder_description
|
|
(c-name "gst_pb_utils_get_encoder_description")
|
|
(return-type "gchar*")
|
|
(parameters
|
|
'("const-GstCaps*" "caps")
|
|
)
|
|
)
|
|
|
|
(define-function get_element_description
|
|
(c-name "gst_pb_utils_get_element_description")
|
|
(return-type "gchar*")
|
|
(parameters
|
|
'("const-gchar*" "factory_name")
|
|
)
|
|
)
|
|
|
|
|
|
|
|
;; From install-plugins.h
|
|
|
|
(define-function install_plugins_context_new
|
|
(c-name "gst_install_plugins_context_new")
|
|
(is-constructor-of "GstInstallPluginsContext")
|
|
(return-type "GstInstallPluginsContext*")
|
|
)
|
|
|
|
(define-method free
|
|
(of-object "GstInstallPluginsContext")
|
|
(c-name "gst_install_plugins_context_free")
|
|
(return-type "none")
|
|
)
|
|
|
|
(define-method set_xid
|
|
(of-object "GstInstallPluginsContext")
|
|
(c-name "gst_install_plugins_context_set_xid")
|
|
(return-type "none")
|
|
(parameters
|
|
'("guint" "xid")
|
|
)
|
|
)
|
|
|
|
(define-function install_plugins_async
|
|
(c-name "gst_install_plugins_async")
|
|
(return-type "GstInstallPluginsReturn")
|
|
(parameters
|
|
'("gchar**" "details")
|
|
'("GstInstallPluginsContext*" "ctx")
|
|
'("GstInstallPluginsResultFunc" "func")
|
|
'("gpointer" "user_data")
|
|
)
|
|
)
|
|
|
|
(define-function install_plugins_sync
|
|
(c-name "gst_install_plugins_sync")
|
|
(return-type "GstInstallPluginsReturn")
|
|
(parameters
|
|
'("gchar**" "details")
|
|
'("GstInstallPluginsContext*" "ctx")
|
|
)
|
|
)
|
|
|
|
(define-method get_name
|
|
(of-object "GstInstallPluginsReturn")
|
|
(c-name "gst_install_plugins_return_get_name")
|
|
(return-type "const-gchar*")
|
|
)
|
|
|
|
(define-function install_plugins_installation_in_progress
|
|
(c-name "gst_install_plugins_installation_in_progress")
|
|
(return-type "gboolean")
|
|
)
|
|
|
|
(define-function install_plugins_supported
|
|
(c-name "gst_install_plugins_supported")
|
|
(return-type "gboolean")
|
|
)
|
|
|
|
|
|
|
|
;; From missing-plugins.h
|
|
|
|
(define-function missing_uri_source_message_new
|
|
(c-name "gst_missing_uri_source_message_new")
|
|
(return-type "GstMessage*")
|
|
(parameters
|
|
'("GstElement*" "element")
|
|
'("const-gchar*" "protocol")
|
|
)
|
|
)
|
|
|
|
(define-function missing_uri_sink_message_new
|
|
(c-name "gst_missing_uri_sink_message_new")
|
|
(return-type "GstMessage*")
|
|
(parameters
|
|
'("GstElement*" "element")
|
|
'("const-gchar*" "protocol")
|
|
)
|
|
)
|
|
|
|
(define-function missing_element_message_new
|
|
(c-name "gst_missing_element_message_new")
|
|
(return-type "GstMessage*")
|
|
(parameters
|
|
'("GstElement*" "element")
|
|
'("const-gchar*" "factory_name")
|
|
)
|
|
)
|
|
|
|
(define-function missing_decoder_message_new
|
|
(c-name "gst_missing_decoder_message_new")
|
|
(return-type "GstMessage*")
|
|
(parameters
|
|
'("GstElement*" "element")
|
|
'("const-GstCaps*" "decode_caps")
|
|
)
|
|
)
|
|
|
|
(define-function missing_encoder_message_new
|
|
(c-name "gst_missing_encoder_message_new")
|
|
(return-type "GstMessage*")
|
|
(parameters
|
|
'("GstElement*" "element")
|
|
'("const-GstCaps*" "encode_caps")
|
|
)
|
|
)
|
|
|
|
(define-function missing_plugin_message_get_installer_detail
|
|
(c-name "gst_missing_plugin_message_get_installer_detail")
|
|
(return-type "gchar*")
|
|
(parameters
|
|
'("GstMessage*" "msg")
|
|
)
|
|
)
|
|
|
|
(define-function missing_plugin_message_get_description
|
|
(c-name "gst_missing_plugin_message_get_description")
|
|
(return-type "gchar*")
|
|
(parameters
|
|
'("GstMessage*" "msg")
|
|
)
|
|
)
|
|
|
|
(define-function is_missing_plugin_message
|
|
(c-name "gst_is_missing_plugin_message")
|
|
(return-type "gboolean")
|
|
(parameters
|
|
'("GstMessage*" "msg")
|
|
)
|
|
)
|
|
|
|
(define-function missing_uri_source_installer_detail_new
|
|
(c-name "gst_missing_uri_source_installer_detail_new")
|
|
(return-type "gchar*")
|
|
(parameters
|
|
'("const-gchar*" "protocol")
|
|
)
|
|
)
|
|
|
|
(define-function missing_uri_sink_installer_detail_new
|
|
(c-name "gst_missing_uri_sink_installer_detail_new")
|
|
(return-type "gchar*")
|
|
(parameters
|
|
'("const-gchar*" "protocol")
|
|
)
|
|
)
|
|
|
|
(define-function missing_element_installer_detail_new
|
|
(c-name "gst_missing_element_installer_detail_new")
|
|
(return-type "gchar*")
|
|
(parameters
|
|
'("const-gchar*" "factory_name")
|
|
)
|
|
)
|
|
|
|
(define-function missing_decoder_installer_detail_new
|
|
(c-name "gst_missing_decoder_installer_detail_new")
|
|
(return-type "gchar*")
|
|
(parameters
|
|
'("const-GstCaps*" "decode_caps")
|
|
)
|
|
)
|
|
|
|
(define-function missing_encoder_installer_detail_new
|
|
(c-name "gst_missing_encoder_installer_detail_new")
|
|
(return-type "gchar*")
|
|
(parameters
|
|
'("const-GstCaps*" "encode_caps")
|
|
)
|
|
)
|
|
|
|
|
|
|
|
;; From pbutils.h
|
|
|
|
(define-function init
|
|
(c-name "gst_pb_utils_init")
|
|
(return-type "none")
|
|
)
|
|
|
|
|