mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-05 18:22:23 +00:00
validate: Misc annotation and gi friendly cleanups
Differential Revision: https://phabricator.freedesktop.org/D703
This commit is contained in:
parent
c2a944965a
commit
62e5e5f2e3
12 changed files with 14 additions and 43 deletions
|
@ -165,7 +165,7 @@ gst_validate_bin_monitor_init (GstValidateBinMonitor * bin_monitor)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_validate_bin_monitor_new:
|
* gst_validate_bin_monitor_new:
|
||||||
* @bin: (transfer-none): a #GstBin to run Validate on
|
* @bin: (transfer none): a #GstBin to run Validate on
|
||||||
*/
|
*/
|
||||||
GstValidateBinMonitor *
|
GstValidateBinMonitor *
|
||||||
gst_validate_bin_monitor_new (GstBin * bin, GstValidateRunner * runner,
|
gst_validate_bin_monitor_new (GstBin * bin, GstValidateRunner * runner,
|
||||||
|
|
|
@ -139,7 +139,7 @@ gst_validate_element_monitor_init (GstValidateElementMonitor * element_monitor)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_validate_element_monitor_new:
|
* gst_validate_element_monitor_new:
|
||||||
* @element: (transfer-none): a #GstElement to run Validate on
|
* @element: (transfer none): a #GstElement to run Validate on
|
||||||
*/
|
*/
|
||||||
GstValidateElementMonitor *
|
GstValidateElementMonitor *
|
||||||
gst_validate_element_monitor_new (GstElement * element,
|
gst_validate_element_monitor_new (GstElement * element,
|
||||||
|
|
|
@ -175,29 +175,6 @@ gst_validate_monitor_init (GstValidateMonitor * monitor)
|
||||||
g_queue_init (&monitor->overrides);
|
g_queue_init (&monitor->overrides);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
/* This shouldn't be used. it's a base class */
|
|
||||||
/**
|
|
||||||
* gst_validate_monitor_new:
|
|
||||||
* @element: (transfer-none): a #GObject to run Validate on
|
|
||||||
*/
|
|
||||||
GstValidateMonitor *
|
|
||||||
gst_validate_monitor_new (GObject * object)
|
|
||||||
{
|
|
||||||
GstValidateMonitor *monitor =
|
|
||||||
g_object_new (GST_TYPE_VALIDATE_MONITOR, "object",
|
|
||||||
G_TYPE_OBJECT, object, NULL);
|
|
||||||
|
|
||||||
if (GST_VALIDATE_MONITOR_GET_OBJECT (monitor) == NULL) {
|
|
||||||
/* setup failed, no use on returning this monitor */
|
|
||||||
g_object_unref (monitor);
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return monitor;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_validate_monitor_do_setup (GstValidateMonitor * monitor)
|
gst_validate_monitor_do_setup (GstValidateMonitor * monitor)
|
||||||
{
|
{
|
||||||
|
|
|
@ -897,7 +897,7 @@ gst_validate_pad_monitor_init (GstValidatePadMonitor * pad_monitor)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_validate_pad_monitor_new:
|
* gst_validate_pad_monitor_new:
|
||||||
* @pad: (transfer-none): a #GstPad to run Validate on
|
* @pad: (transfer none): a #GstPad to run Validate on
|
||||||
*/
|
*/
|
||||||
GstValidatePadMonitor *
|
GstValidatePadMonitor *
|
||||||
gst_validate_pad_monitor_new (GstPad * pad, GstValidateRunner * runner,
|
gst_validate_pad_monitor_new (GstPad * pad, GstValidateRunner * runner,
|
||||||
|
|
|
@ -219,7 +219,7 @@ gst_validate_pipeline_monitor_create_scenarios (GstValidateBinMonitor * monitor)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_validate_pipeline_monitor_new:
|
* gst_validate_pipeline_monitor_new:
|
||||||
* @pipeline: (transfer-none): a #GstPipeline to run Validate on
|
* @pipeline: (transfer none): a #GstPipeline to run Validate on
|
||||||
*/
|
*/
|
||||||
GstValidatePipelineMonitor *
|
GstValidatePipelineMonitor *
|
||||||
gst_validate_pipeline_monitor_new (GstPipeline * pipeline,
|
gst_validate_pipeline_monitor_new (GstPipeline * pipeline,
|
||||||
|
|
|
@ -158,9 +158,10 @@ typedef enum
|
||||||
} GstValidateActionTypeFlags;
|
} GstValidateActionTypeFlags;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* GstValidateActionType:
|
||||||
* @name: The name of the new action type to add
|
* @name: The name of the new action type to add
|
||||||
* @implementer_namespace: The namespace of the implementer of the action type
|
* @implementer_namespace: The namespace of the implementer of the action type
|
||||||
* @execute: (virtual do_execute): The function to be called to execute the action
|
* @execute: The function to be called to execute the action
|
||||||
* @parameters: (allow-none) (array zero-terminated=1) (element-type GstValidate.ActionParameter): The #GstValidateActionParameter usable as parameter of the type
|
* @parameters: (allow-none) (array zero-terminated=1) (element-type GstValidate.ActionParameter): The #GstValidateActionParameter usable as parameter of the type
|
||||||
* @description: A description of the new type
|
* @description: A description of the new type
|
||||||
* @flags: The flags of the action type
|
* @flags: The flags of the action type
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
/**
|
/* Gstreamer
|
||||||
* Gstreamer
|
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012, Collabora Ltd.
|
* Copyright (c) 2012, Collabora Ltd.
|
||||||
* Author: Thibault Saunier <thibault.saunier@collabora.com>
|
* Author: Thibault Saunier <thibault.saunier@collabora.com>
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
/**
|
/* GstValidate
|
||||||
* GstValidate
|
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012, Collabora Ltd
|
* Copyright (c) 2012, Collabora Ltd
|
||||||
* Author: Thibault Saunier <thibault.saunier@collabora.com>
|
* Author: Thibault Saunier <thibault.saunier@collabora.com>
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
/**
|
/* GstValidate
|
||||||
* Gstreamer
|
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012, Collabora Ltd.
|
* Copyright (c) 2012, Collabora Ltd.
|
||||||
* Author: Thibault Saunier <thibault.saunier@collabora.com>
|
* Author: Thibault Saunier <thibault.saunier@collabora.com>
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
/**
|
/* GstValidate
|
||||||
* Insanity QA system
|
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012, Collabora Ltd
|
* Copyright (c) 2012, Collabora Ltd
|
||||||
* Author: Thibault Saunier <thibault.saunier@collabora.com>
|
* Author: Thibault Saunier <thibault.saunier@collabora.com>
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
/**
|
/* GstValidate
|
||||||
* GstValidate
|
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012, Collabora Ltd.
|
* Copyright (c) 2012, Collabora Ltd.
|
||||||
* Author: Thibault Saunier <thibault.saunier@collabora.com>
|
* Author: Thibault Saunier <thibault.saunier@collabora.com>
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif /* HAVE_CONFIG_H */
|
||||||
|
|
||||||
/* For g_stat () */
|
/* For g_stat () */
|
||||||
#include <glib/gstdio.h>
|
#include <glib/gstdio.h>
|
||||||
|
@ -42,9 +42,8 @@
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
#define WIN32_LEAN_AND_MEAN /* prevents from including too many things */
|
#define WIN32_LEAN_AND_MEAN /* prevents from including too many things */
|
||||||
#include <windows.h> /* GetStdHandle, windows console */
|
#include <windows.h> /* GetStdHandle, windows console */
|
||||||
|
|
||||||
HMODULE _priv_gstvalidate_dll_handle = NULL;
|
HMODULE _priv_gstvalidate_dll_handle = NULL;
|
||||||
#endif
|
#endif /* G_OS_WIN32 */
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY (gstvalidate_debug);
|
GST_DEBUG_CATEGORY (gstvalidate_debug);
|
||||||
|
|
||||||
|
@ -64,8 +63,7 @@ DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
#endif /* G_OS_WIN32 */
|
||||||
#endif
|
|
||||||
|
|
||||||
static GstRegistry *
|
static GstRegistry *
|
||||||
gst_validate_registry_get (void)
|
gst_validate_registry_get (void)
|
||||||
|
|
Loading…
Reference in a new issue