mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
validate: Enhance documentation
This commit is contained in:
parent
65eb14de36
commit
b56ebc8a43
5 changed files with 65 additions and 1 deletions
|
@ -55,6 +55,7 @@
|
||||||
<xi:include href="xml/validate.xml"/>
|
<xi:include href="xml/validate.xml"/>
|
||||||
<xi:include href="xml/gst-validate-runner.xml"/>
|
<xi:include href="xml/gst-validate-runner.xml"/>
|
||||||
<xi:include href="xml/gst-validate-scenario.xml"/>
|
<xi:include href="xml/gst-validate-scenario.xml"/>
|
||||||
|
<xi:include href="xml/gst-validate-reporter.xml"/>
|
||||||
<xi:include href="xml/gst-validate-monitor-factory.xml"/>
|
<xi:include href="xml/gst-validate-monitor-factory.xml"/>
|
||||||
|
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
|
@ -66,3 +66,27 @@ gst_validate_action_get_type
|
||||||
gst_validate_action_type_get_type
|
gst_validate_action_type_get_type
|
||||||
gst_validate_scenario_get_type
|
gst_validate_scenario_get_type
|
||||||
</SECTION>
|
</SECTION>
|
||||||
|
|
||||||
|
<SECTION>
|
||||||
|
<FILE>gst-validate-report</FILE>
|
||||||
|
<TITLE>GstValidate reporting system</TITLE>
|
||||||
|
GstValidateIssue
|
||||||
|
gst_validate_issue_new
|
||||||
|
GstValidateReport
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<SECTION>
|
||||||
|
<FILE>gst-validate-reporter</FILE>
|
||||||
|
<TITLE>GstValidateReporter</TITLE>
|
||||||
|
GstValidateReporter
|
||||||
|
GST_VALIDATE_REPORT
|
||||||
|
gst_validate_reporter_set_handle_g_logs
|
||||||
|
gst_validate_report
|
||||||
|
gst_validate_reporter_get_reports_count
|
||||||
|
<SUBSECTION Standard>
|
||||||
|
GST_TYPE_VALIDATE_REPORTER
|
||||||
|
GST_VALIDATE_REPORTER
|
||||||
|
GST_IS_VALIDATE_REPORTER
|
||||||
|
GST_VALIDATE_REPORTER_GET_INTERFACE
|
||||||
|
GST_VALIDATE_REPORTER_CAST
|
||||||
|
</SECTION>
|
||||||
|
|
|
@ -19,6 +19,11 @@
|
||||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
* Boston, MA 02111-1307, USA.
|
* Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* SECTION:gst-validate-reporter
|
||||||
|
* @short_description: A #GInterface that allows #GObject to be used as originator of
|
||||||
|
* issues in the GstValidate reporting system
|
||||||
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
|
@ -240,6 +245,18 @@ gst_validate_reporter_g_log_func (const gchar * log_domain,
|
||||||
GST_VALIDATE_REPORT (reporter, G_LOG_ISSUE, message);
|
GST_VALIDATE_REPORT (reporter, G_LOG_ISSUE, message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gst_validate_report:
|
||||||
|
* @report: The source of the new report
|
||||||
|
* @issue_id: The #GstValidateIssueId of the issue
|
||||||
|
* @format: The format of the message describing the issue in a printf
|
||||||
|
* format followed by the parametters.
|
||||||
|
*
|
||||||
|
* Reports a new issue in the GstValidate reporting system with @m
|
||||||
|
* as the source of that issue.
|
||||||
|
*
|
||||||
|
* You can also use #GST_VALIDATE_REPORT instead.
|
||||||
|
*/
|
||||||
void
|
void
|
||||||
gst_validate_report (GstValidateReporter * reporter,
|
gst_validate_report (GstValidateReporter * reporter,
|
||||||
GstValidateIssueId issue_id, const gchar * format, ...)
|
GstValidateIssueId issue_id, const gchar * format, ...)
|
||||||
|
@ -287,6 +304,18 @@ gst_validate_reporter_set_runner (GstValidateReporter * reporter,
|
||||||
priv->runner = runner;
|
priv->runner = runner;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gst_validate_reporter_set_handle_g_logs:
|
||||||
|
* @reporter: The #GstValidateReporter to set has the handler for g_log
|
||||||
|
*
|
||||||
|
* Set @reporter has the 'source' of any g_log happening during the
|
||||||
|
* execution. Usually the monitor of the first #GstPipeline is used
|
||||||
|
* to handle g_logs.
|
||||||
|
*
|
||||||
|
* Basically this function is used in order to start tracking any
|
||||||
|
* issue reported with g_log in the process into GstValidate report
|
||||||
|
* in the GstValidate reporting system.
|
||||||
|
*/
|
||||||
void
|
void
|
||||||
gst_validate_reporter_set_handle_g_logs (GstValidateReporter * reporter)
|
gst_validate_reporter_set_handle_g_logs (GstValidateReporter * reporter)
|
||||||
{
|
{
|
||||||
|
|
|
@ -37,6 +37,16 @@ G_BEGIN_DECLS
|
||||||
#define GST_VALIDATE_REPORTER_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_VALIDATE_REPORTER, GstValidateReporterInterface))
|
#define GST_VALIDATE_REPORTER_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_VALIDATE_REPORTER, GstValidateReporterInterface))
|
||||||
#define GST_VALIDATE_REPORTER_CAST(obj) ((GstValidateReporter *) obj)
|
#define GST_VALIDATE_REPORTER_CAST(obj) ((GstValidateReporter *) obj)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GST_VALIDATE_REPORT:
|
||||||
|
* @m: The #GstValidateReporter where the issue happened
|
||||||
|
* @issue_id: The #GstValidateIssueId of the issue
|
||||||
|
* @...: The format of the message describing the issue in a printf
|
||||||
|
* format, followed by the parametters.
|
||||||
|
*
|
||||||
|
* Reports a new issue in the GstValidate reporting system with @m
|
||||||
|
* as the source of that issue.
|
||||||
|
*/
|
||||||
#ifdef G_HAVE_ISO_VARARGS
|
#ifdef G_HAVE_ISO_VARARGS
|
||||||
#define GST_VALIDATE_REPORT(m, issue_id, ...) \
|
#define GST_VALIDATE_REPORT(m, issue_id, ...) \
|
||||||
G_STMT_START { \
|
G_STMT_START { \
|
||||||
|
@ -58,7 +68,6 @@ GType gst_validate_reporter_get_type (void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GstValidateInterceptionReturn:
|
* GstValidateInterceptionReturn:
|
||||||
*
|
|
||||||
* @GST_VALIDATE_REPORTER_DROP: The report will be completely ignored.
|
* @GST_VALIDATE_REPORTER_DROP: The report will be completely ignored.
|
||||||
* @GST_VALIDATE_REPORTER_KEEP: The report will be kept by the reporter,
|
* @GST_VALIDATE_REPORTER_KEEP: The report will be kept by the reporter,
|
||||||
* but not reported to the runner.
|
* but not reported to the runner.
|
||||||
|
|
|
@ -54,6 +54,7 @@ typedef struct _GstValidateRunnerPrivate GstValidateRunnerPrivate;
|
||||||
struct _GstValidateRunner {
|
struct _GstValidateRunner {
|
||||||
GObject object;
|
GObject object;
|
||||||
|
|
||||||
|
/* <private> */
|
||||||
GstValidateRunnerPrivate *priv;
|
GstValidateRunnerPrivate *priv;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue