From 49794999b3296ce2fd9466cda5471f266787c197 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 6 Apr 2002 18:14:31 +0000 Subject: [PATCH] fixed warnings in /ext added mikmod_types.h to get it done Original commit message from CVS: fixed warnings in /ext added mikmod_types.h to get it done --- ext/mikmod/Makefile.am | 3 ++- ext/mikmod/gstmikmod.c | 1 + ext/mikmod/mikmod_types.c | 7 +++++-- ext/mikmod/mikmod_types.h | 44 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 52 insertions(+), 3 deletions(-) create mode 100644 ext/mikmod/mikmod_types.h diff --git a/ext/mikmod/Makefile.am b/ext/mikmod/Makefile.am index 36852f310e..2f004892e1 100644 --- a/ext/mikmod/Makefile.am +++ b/ext/mikmod/Makefile.am @@ -7,6 +7,7 @@ libgstmikmod_la_CFLAGS = $(GST_CFLAGS) $(MIKMOD_CFLAGS) libgstmikmod_la_LIBADD = $(MIKMOD_LIBS) libgstmikmod_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) -noinst_HEADERS = gstmikmod.h +noinst_HEADERS = gstmikmod.h \ + mikmod_types.h EXTRA_DIST = README diff --git a/ext/mikmod/gstmikmod.c b/ext/mikmod/gstmikmod.c index 088e4337a5..401752b823 100644 --- a/ext/mikmod/gstmikmod.c +++ b/ext/mikmod/gstmikmod.c @@ -18,6 +18,7 @@ */ #include "gstmikmod.h" +#include "mikmod_types.h" #include #include diff --git a/ext/mikmod/mikmod_types.c b/ext/mikmod/mikmod_types.c index c319cbb3f4..8c4045d8bf 100644 --- a/ext/mikmod/mikmod_types.c +++ b/ext/mikmod/mikmod_types.c @@ -18,6 +18,9 @@ */ #include +#include "mikmod_types.h" +#include /* memcmp */ +#include /* isdigit */ #define MODULEHEADERSIZE 0x438 @@ -140,15 +143,15 @@ gchar *data; data = GST_BUFFER_DATA( buf ); if( ! memcmp( data, "IMPM", 4 )) - return TRUE ; + return TRUE; return FALSE; } gboolean M15_CheckType( GstBuffer *buf ) { + /* FIXME: M15 CheckType to do */ return FALSE; -#warning M15 CheckType to do } gboolean Med_CheckType( GstBuffer *buf ) diff --git a/ext/mikmod/mikmod_types.h b/ext/mikmod/mikmod_types.h new file mode 100644 index 0000000000..c431faf9ed --- /dev/null +++ b/ext/mikmod/mikmod_types.h @@ -0,0 +1,44 @@ +/* GStreamer + * Copyright (C) <1999> Erik Walthinsen + * + * 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 __MIKMOD_TYPES_H__ +#define __MIKMOD_TYPES_H__ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +gboolean MOD_CheckType (GstBuffer *buf); +gboolean Mod_669_CheckType (GstBuffer *buf); +gboolean Amf_CheckType (GstBuffer *buf); +gboolean Dsm_CheckType (GstBuffer *buf); +gboolean Fam_CheckType (GstBuffer *buf); +gboolean Gdm_CheckType (GstBuffer *buf); +gboolean Imf_CheckType (GstBuffer *buf); +gboolean It_CheckType (GstBuffer *buf); +gboolean M15_CheckType (GstBuffer *buf); +gboolean Mtm_CheckType (GstBuffer *buf); +gboolean Okt_CheckType (GstBuffer *buf); +gboolean S3m_CheckType (GstBuffer *buf); +gboolean Xm_CheckType (GstBuffer *buf); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __MIKMOD_TYPES_H__ */