mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-02 22:46:35 +00:00
15ea3bd8aa
And fix the issues: * Proper forward declaration * static functions marked properly * absolute includes * declaration order
80 lines
4.4 KiB
C
80 lines
4.4 KiB
C
/* GStreamer
|
|
* Copyright (C) 2013 Thiago Santos <thiago.sousa.santos@collabora.com>
|
|
*
|
|
* gst-validate-override.h - Validate Override that allows customizing Validate behavior
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Library General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Library General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Library General Public
|
|
* License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __GST_VALIDATE_OVERRIDE_H__
|
|
#define __GST_VALIDATE_OVERRIDE_H__
|
|
|
|
#include <glib-object.h>
|
|
#include <gst/gst.h>
|
|
|
|
typedef struct _GstValidateOverride GstValidateOverride;
|
|
|
|
#include <gst/validate/gst-validate-report.h>
|
|
#include <gst/validate/gst-validate-monitor.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
typedef void (*GstValidateOverrideBufferHandler)(GstValidateOverride * override,
|
|
GstValidateMonitor * pad_monitor, GstBuffer * buffer);
|
|
typedef void (*GstValidateOverrideEventHandler)(GstValidateOverride * override,
|
|
GstValidateMonitor * pad_monitor, GstEvent * event);
|
|
typedef void (*GstValidateOverrideQueryHandler)(GstValidateOverride * override,
|
|
GstValidateMonitor * pad_monitor, GstQuery * query);
|
|
typedef void (*GstValidateOverrideGetCapsHandler)(GstValidateOverride * override,
|
|
GstValidateMonitor * pad_monitor, GstCaps * caps);
|
|
typedef void (*GstValidateOverrideSetCapsHandler)(GstValidateOverride * override,
|
|
GstValidateMonitor * pad_monitor, GstCaps * caps);
|
|
|
|
struct _GstValidateOverride {
|
|
GHashTable *level_override;
|
|
|
|
/* Pad handlers */
|
|
GstValidateOverrideBufferHandler buffer_handler;
|
|
GstValidateOverrideEventHandler event_handler;
|
|
GstValidateOverrideQueryHandler query_handler;
|
|
GstValidateOverrideBufferHandler buffer_probe_handler;
|
|
GstValidateOverrideGetCapsHandler getcaps_handler;
|
|
GstValidateOverrideSetCapsHandler setcaps_handler;
|
|
};
|
|
|
|
GstValidateOverride * gst_validate_override_new (void);
|
|
void gst_validate_override_free (GstValidateOverride * override);
|
|
void gst_validate_override_change_severity (GstValidateOverride * override, GstValidateIssueId issue_id, GstValidateReportLevel new_level);
|
|
GstValidateReportLevel gst_validate_override_get_severity (GstValidateOverride * override, GstValidateIssueId issue_id, GstValidateReportLevel default_level);
|
|
|
|
void gst_validate_override_event_handler (GstValidateOverride * override, GstValidateMonitor * monitor, GstEvent * event);
|
|
void gst_validate_override_buffer_handler (GstValidateOverride * override, GstValidateMonitor * monitor, GstBuffer * buffer);
|
|
void gst_validate_override_query_handler (GstValidateOverride * override, GstValidateMonitor * monitor, GstQuery * query);
|
|
void gst_validate_override_buffer_probe_handler (GstValidateOverride * override, GstValidateMonitor * monitor, GstBuffer * buffer);
|
|
void gst_validate_override_getcaps_handler (GstValidateOverride * override, GstValidateMonitor * monitor, GstCaps * caps);
|
|
void gst_validate_override_setcaps_handler (GstValidateOverride * override, GstValidateMonitor * monitor, GstCaps * caps);
|
|
|
|
void gst_validate_override_set_event_handler (GstValidateOverride * override, GstValidateOverrideEventHandler handler);
|
|
void gst_validate_override_set_buffer_handler (GstValidateOverride * override, GstValidateOverrideBufferHandler handler);
|
|
void gst_validate_override_set_query_handler (GstValidateOverride * override, GstValidateOverrideQueryHandler handler);
|
|
void gst_validate_override_set_buffer_probe_handler (GstValidateOverride * override, GstValidateOverrideBufferHandler handler);
|
|
void gst_validate_override_set_getcaps_handler (GstValidateOverride * override, GstValidateOverrideGetCapsHandler handler);
|
|
void gst_validate_override_set_setcaps_handler (GstValidateOverride * override, GstValidateOverrideSetCapsHandler handler);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GST_VALIDATE_OVERRIDE_H__ */
|
|
|