summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2002-04-06 18:14:31 +0000
committerBenjamin Otte <otte@gnome.org>2002-04-06 18:14:31 +0000
commit49794999b3296ce2fd9466cda5471f266787c197 (patch)
tree0a0867e91ae0eb83d48c4c791195bbc804478d21 /ext
parent31375b100c3037d0003282b944c918799ec26113 (diff)
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
Diffstat (limited to 'ext')
-rw-r--r--ext/mikmod/Makefile.am3
-rw-r--r--ext/mikmod/gstmikmod.c1
-rw-r--r--ext/mikmod/mikmod_types.c7
-rw-r--r--ext/mikmod/mikmod_types.h44
4 files changed, 52 insertions, 3 deletions
diff --git a/ext/mikmod/Makefile.am b/ext/mikmod/Makefile.am
index 36852f31..2f004892 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 088e4337..401752b8 100644
--- a/ext/mikmod/gstmikmod.c
+++ b/ext/mikmod/gstmikmod.c
@@ -18,6 +18,7 @@
*/
#include "gstmikmod.h"
+#include "mikmod_types.h"
#include <gst/audio/audio.h>
#include <stdlib.h>
diff --git a/ext/mikmod/mikmod_types.c b/ext/mikmod/mikmod_types.c
index c319cbb3..8c4045d8 100644
--- a/ext/mikmod/mikmod_types.c
+++ b/ext/mikmod/mikmod_types.c
@@ -18,6 +18,9 @@
*/
#include <gst/gst.h>
+#include "mikmod_types.h"
+#include <string.h> /* memcmp */
+#include <ctype.h> /* 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 00000000..c431faf9
--- /dev/null
+++ b/ext/mikmod/mikmod_types.h
@@ -0,0 +1,44 @@
+/* GStreamer
+ * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
+ *
+ * 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__ */