validate: Misc annotation and gi friendly cleanups

Differential Revision: https://phabricator.freedesktop.org/D703
This commit is contained in:
Thibault Saunier 2016-01-22 19:50:15 +01:00 committed by Thibault Saunier
parent c2a944965a
commit 62e5e5f2e3
12 changed files with 14 additions and 43 deletions

View file

@ -165,7 +165,7 @@ gst_validate_bin_monitor_init (GstValidateBinMonitor * bin_monitor)
/**
* gst_validate_bin_monitor_new:
* @bin: (transfer-none): a #GstBin to run Validate on
* @bin: (transfer none): a #GstBin to run Validate on
*/
GstValidateBinMonitor *
gst_validate_bin_monitor_new (GstBin * bin, GstValidateRunner * runner,

View file

@ -139,7 +139,7 @@ gst_validate_element_monitor_init (GstValidateElementMonitor * element_monitor)
/**
* gst_validate_element_monitor_new:
* @element: (transfer-none): a #GstElement to run Validate on
* @element: (transfer none): a #GstElement to run Validate on
*/
GstValidateElementMonitor *
gst_validate_element_monitor_new (GstElement * element,

View file

@ -175,29 +175,6 @@ gst_validate_monitor_init (GstValidateMonitor * monitor)
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
gst_validate_monitor_do_setup (GstValidateMonitor * monitor)
{

View file

@ -897,7 +897,7 @@ gst_validate_pad_monitor_init (GstValidatePadMonitor * pad_monitor)
/**
* gst_validate_pad_monitor_new:
* @pad: (transfer-none): a #GstPad to run Validate on
* @pad: (transfer none): a #GstPad to run Validate on
*/
GstValidatePadMonitor *
gst_validate_pad_monitor_new (GstPad * pad, GstValidateRunner * runner,

View file

@ -219,7 +219,7 @@ gst_validate_pipeline_monitor_create_scenarios (GstValidateBinMonitor * monitor)
/**
* gst_validate_pipeline_monitor_new:
* @pipeline: (transfer-none): a #GstPipeline to run Validate on
* @pipeline: (transfer none): a #GstPipeline to run Validate on
*/
GstValidatePipelineMonitor *
gst_validate_pipeline_monitor_new (GstPipeline * pipeline,

View file

@ -158,9 +158,10 @@ typedef enum
} GstValidateActionTypeFlags;
/**
* GstValidateActionType:
* @name: The name of the new action type to add
* @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
* @description: A description of the new type
* @flags: The flags of the action type

View file

@ -1,5 +1,4 @@
/**
* Gstreamer
/* Gstreamer
*
* Copyright (c) 2012, Collabora Ltd.
* Author: Thibault Saunier <thibault.saunier@collabora.com>

View file

@ -1,5 +1,4 @@
/**
* GstValidate
/* GstValidate
*
* Copyright (c) 2012, Collabora Ltd
* Author: Thibault Saunier <thibault.saunier@collabora.com>

View file

@ -1,5 +1,4 @@
/**
* Gstreamer
/* GstValidate
*
* Copyright (c) 2012, Collabora Ltd.
* Author: Thibault Saunier <thibault.saunier@collabora.com>

View file

@ -1,5 +1,4 @@
/**
* Insanity QA system
/* GstValidate
*
* Copyright (c) 2012, Collabora Ltd
* Author: Thibault Saunier <thibault.saunier@collabora.com>

View file

@ -1,5 +1,4 @@
/**
* GstValidate
/* GstValidate
*
* Copyright (c) 2012, Collabora Ltd.
* Author: Thibault Saunier <thibault.saunier@collabora.com>

View file

@ -27,7 +27,7 @@
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#endif /* HAVE_CONFIG_H */
/* For g_stat () */
#include <glib/gstdio.h>
@ -42,9 +42,8 @@
#ifdef G_OS_WIN32
#define WIN32_LEAN_AND_MEAN /* prevents from including too many things */
#include <windows.h> /* GetStdHandle, windows console */
HMODULE _priv_gstvalidate_dll_handle = NULL;
#endif
#endif /* G_OS_WIN32 */
GST_DEBUG_CATEGORY (gstvalidate_debug);
@ -64,8 +63,7 @@ DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
return TRUE;
}
#endif
#endif /* G_OS_WIN32 */
static GstRegistry *
gst_validate_registry_get (void)