2013-09-27 22:05:51 +00:00
|
|
|
/* GStreamer
|
|
|
|
*
|
|
|
|
* Copyright (C) 2013 Thibault Saunier <thibault.saunier@collabora.com>
|
|
|
|
*
|
|
|
|
* gst-validate-utils.h - Some utility functions
|
|
|
|
*
|
|
|
|
* 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 EXPRESSION_PARSER_H
|
|
|
|
#define EXPRESSION_PARSER_H
|
|
|
|
|
|
|
|
#include<setjmp.h>
|
|
|
|
#include<stdlib.h>
|
|
|
|
#include<glib.h>
|
2014-10-03 16:42:04 +00:00
|
|
|
#include<gio/gio.h>
|
2014-02-18 17:13:39 +00:00
|
|
|
#include <gst/gst.h>
|
2017-07-19 15:27:13 +00:00
|
|
|
#include "gst-validate-scenario.h"
|
|
|
|
#include "gst-validate-reporter.h"
|
2013-09-27 22:05:51 +00:00
|
|
|
|
2016-03-08 16:01:09 +00:00
|
|
|
typedef int (*GstValidateParseVariableFunc) (const gchar *name,
|
2013-09-27 22:05:51 +00:00
|
|
|
double *value, gpointer user_data);
|
|
|
|
|
2018-03-13 13:58:07 +00:00
|
|
|
GST_VALIDATE_API
|
2014-02-18 17:13:39 +00:00
|
|
|
gdouble gst_validate_utils_parse_expression (const gchar *expr,
|
2016-03-08 16:01:09 +00:00
|
|
|
GstValidateParseVariableFunc variable_func,
|
2014-02-18 17:13:39 +00:00
|
|
|
gpointer user_data,
|
|
|
|
gchar **error);
|
2018-03-13 13:58:07 +00:00
|
|
|
GST_VALIDATE_API
|
2014-02-18 17:13:39 +00:00
|
|
|
guint gst_validate_utils_flags_from_str (GType type, const gchar * str_flags);
|
2018-03-13 13:58:07 +00:00
|
|
|
GST_VALIDATE_API
|
2014-04-25 16:26:50 +00:00
|
|
|
gboolean gst_validate_utils_enum_from_str (GType type,
|
2014-02-18 17:13:39 +00:00
|
|
|
const gchar * str_enum,
|
|
|
|
guint * enum_value);
|
2014-10-03 16:42:04 +00:00
|
|
|
|
2018-03-13 13:58:07 +00:00
|
|
|
GST_VALIDATE_API
|
2015-01-17 21:21:16 +00:00
|
|
|
GList * gst_validate_utils_structs_parse_from_filename (const gchar * scenario_file);
|
2018-03-13 13:58:07 +00:00
|
|
|
GST_VALIDATE_API
|
2016-01-22 19:14:16 +00:00
|
|
|
GList * gst_validate_structs_parse_from_gfile (GFile * scenario_file);
|
2014-10-03 16:42:04 +00:00
|
|
|
|
2018-03-13 13:58:07 +00:00
|
|
|
GST_VALIDATE_API
|
2015-05-11 12:24:32 +00:00
|
|
|
gboolean gst_validate_element_has_klass (GstElement * element, const gchar * klass);
|
2018-03-13 13:58:07 +00:00
|
|
|
GST_VALIDATE_API
|
2015-05-27 17:35:15 +00:00
|
|
|
gboolean gst_validate_utils_get_clocktime (GstStructure *structure, const gchar * name,
|
|
|
|
GstClockTime * retval);
|
2015-05-11 12:24:32 +00:00
|
|
|
|
2018-03-13 13:58:07 +00:00
|
|
|
GST_VALIDATE_API
|
2017-07-19 15:27:13 +00:00
|
|
|
GstValidateActionReturn gst_validate_object_set_property (GstValidateReporter * reporter,
|
|
|
|
GObject * object,
|
|
|
|
const gchar * property,
|
|
|
|
const GValue * value,
|
|
|
|
gboolean optional);
|
|
|
|
|
2013-09-27 22:05:51 +00:00
|
|
|
#endif
|