mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 17:18:15 +00:00
gst/playback/gstplay-enum.*: Add missing files.
Original commit message from CVS: * gst/playback/gstplay-enum.c: (register_gst_autoplug_select_result), (gst_autoplug_select_result_get_type): * gst/playback/gstplay-enum.h: Add missing files.
This commit is contained in:
parent
f2f9bf045b
commit
356971158c
3 changed files with 99 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
|||
2007-12-06 Wim Taymans <wim.taymans@gmail.com>
|
||||
|
||||
* gst/playback/gstplay-enum.c:
|
||||
(register_gst_autoplug_select_result),
|
||||
(gst_autoplug_select_result_get_type):
|
||||
* gst/playback/gstplay-enum.h:
|
||||
Add missing files.
|
||||
|
||||
2007-12-05 Wim Taymans <wim.taymans@gmail.com>
|
||||
|
||||
* gst/playback/Makefile.am:
|
||||
|
|
45
gst/playback/gstplay-enum.c
Normal file
45
gst/playback/gstplay-enum.c
Normal file
|
@ -0,0 +1,45 @@
|
|||
/* GStreamer
|
||||
* Copyright (C) <2007> Wim Taymans <wim.taymans@gmail.com>
|
||||
*
|
||||
* 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 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.
|
||||
*/
|
||||
|
||||
#include "gstplay-enum.h"
|
||||
|
||||
#define C_ENUM(v) ((gint) v)
|
||||
|
||||
static void
|
||||
register_gst_autoplug_select_result (GType * id)
|
||||
{
|
||||
static const GEnumValue values[] = {
|
||||
{C_ENUM (GST_AUTOPLUG_SELECT_TRY), "GST_AUTOPLUG_SELECT_TRY", "try"},
|
||||
{C_ENUM (GST_AUTOPLUG_SELECT_EXPOSE), "GST_AUTOPLUG_SELECT_EXPOSE",
|
||||
"expose"},
|
||||
{C_ENUM (GST_AUTOPLUG_SELECT_SKIP), "GST_AUTOPLUG_SELECT_SKIP", "skip"},
|
||||
{0, NULL, NULL}
|
||||
};
|
||||
*id = g_enum_register_static ("GstAutoplugSelectResult", values);
|
||||
}
|
||||
|
||||
GType
|
||||
gst_autoplug_select_result_get_type (void)
|
||||
{
|
||||
static GType id;
|
||||
static GOnce once = G_ONCE_INIT;
|
||||
|
||||
g_once (&once, (GThreadFunc) register_gst_autoplug_select_result, &id);
|
||||
return id;
|
||||
}
|
46
gst/playback/gstplay-enum.h
Normal file
46
gst/playback/gstplay-enum.h
Normal file
|
@ -0,0 +1,46 @@
|
|||
/* GStreamer
|
||||
* Copyright (C) <2007> Wim Taymans <wim.taymans@gmail.com>
|
||||
*
|
||||
* 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 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_PLAY_ENUM_H__
|
||||
#define __GST_PLAY_ENUM_H__
|
||||
|
||||
#include <gst/gst.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
/**
|
||||
* GstAutoplugSelectResult:
|
||||
* @GST_AUTOPLUG_SELECT_TRY: try to autoplug the current factory
|
||||
* @GST_AUTOPLUG_SELECT_EXPOSE: expose the pad as a raw stream
|
||||
* @GST_AUTOPLUG_SELECT_SKIP: skip the current factory
|
||||
*
|
||||
* return values for the autoplug-select signal.
|
||||
*/
|
||||
typedef enum {
|
||||
GST_AUTOPLUG_SELECT_TRY,
|
||||
GST_AUTOPLUG_SELECT_EXPOSE,
|
||||
GST_AUTOPLUG_SELECT_SKIP
|
||||
} GstAutoplugSelectResult;
|
||||
|
||||
#define GST_TYPE_AUTOPLUG_SELECT_RESULT (gst_autoplug_select_result_get_type())
|
||||
GType gst_autoplug_select_result_get_type (void);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_PLAY_ENUM_H__ */
|
Loading…
Reference in a new issue