summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-03-21 21:39:18 +0100
committerBenjamin Otte <otte@redhat.com>2010-03-21 21:39:18 +0100
commitf96e4f15817974e8d3675bfe3980cdf02815bd74 (patch)
tree8eb2ba9bc6058e9a8d5ad2a46e6bd5034e3f3813 /sys
parent46f4c7a6c127dbd20fd9f88a10518e084501cd36 (diff)
downloadgstreamer-plugins-bad-f96e4f15817974e8d3675bfe3980cdf02815bd74.tar.gz
Add -Wmissing-declarations -Wmissing-prototypes to configure flags
And fix all warnings
Diffstat (limited to 'sys')
-rw-r--r--sys/dvb/cam.c2
-rw-r--r--sys/dvb/cam.h2
-rw-r--r--sys/dvb/camapplicationinfo.c2
-rw-r--r--sys/dvb/camapplicationinfo.h2
-rw-r--r--sys/dvb/camconditionalaccess.c2
-rw-r--r--sys/dvb/camconditionalaccess.h2
-rw-r--r--sys/dvb/camdevice.c2
-rw-r--r--sys/dvb/camdevice.h2
-rw-r--r--sys/dvb/camresourcemanager.c2
-rw-r--r--sys/dvb/camresourcemanager.h2
-rw-r--r--sys/dvb/camsession.c4
-rw-r--r--sys/dvb/camswclient.c2
-rw-r--r--sys/dvb/camswclient.h2
-rw-r--r--sys/dvb/camtransport.c6
-rw-r--r--sys/dvb/dvbbasebin.h2
-rw-r--r--sys/dvb/parsechannels.c2
-rw-r--r--sys/oss4/oss4-mixer.c2
-rw-r--r--sys/vcd/vcdsrc.h2
18 files changed, 23 insertions, 19 deletions
diff --git a/sys/dvb/cam.c b/sys/dvb/cam.c
index ec67888dd..cd3ff6624 100644
--- a/sys/dvb/cam.c
+++ b/sys/dvb/cam.c
@@ -27,7 +27,7 @@
GST_DEBUG_CATEGORY (cam_debug_cat);
void
-cam_init ()
+cam_init (void)
{
GST_DEBUG_CATEGORY_INIT (cam_debug_cat, "dvbcam", 0, "DVB CAM support");
}
diff --git a/sys/dvb/cam.h b/sys/dvb/cam.h
index 3211a2d1e..927fff7c7 100644
--- a/sys/dvb/cam.h
+++ b/sys/dvb/cam.h
@@ -28,6 +28,6 @@
GST_DEBUG_CATEGORY_EXTERN (cam_debug_cat);
-void cam_init ();
+void cam_init (void);
#endif /* CAM_H */
diff --git a/sys/dvb/camapplicationinfo.c b/sys/dvb/camapplicationinfo.c
index 63a885a1f..c05e827de 100644
--- a/sys/dvb/camapplicationinfo.c
+++ b/sys/dvb/camapplicationinfo.c
@@ -40,7 +40,7 @@ static CamReturn data_impl (CamALApplication * application,
CamSLSession * session, guint tag, guint8 * buffer, guint length);
CamApplicationInfo *
-cam_application_info_new ()
+cam_application_info_new (void)
{
CamApplicationInfo *info;
CamALApplication *application;
diff --git a/sys/dvb/camapplicationinfo.h b/sys/dvb/camapplicationinfo.h
index c8aa8fab6..df3a946c2 100644
--- a/sys/dvb/camapplicationinfo.h
+++ b/sys/dvb/camapplicationinfo.h
@@ -35,7 +35,7 @@ struct _CamApplicationInfo
CamALApplication application;
};
-CamApplicationInfo *cam_application_info_new ();
+CamApplicationInfo *cam_application_info_new (void);
void cam_application_info_destroy (CamApplicationInfo *info);
#endif /* CAM_APPLICATION_INFO_H */
diff --git a/sys/dvb/camconditionalaccess.c b/sys/dvb/camconditionalaccess.c
index c667b97ef..a0c680af6 100644
--- a/sys/dvb/camconditionalaccess.c
+++ b/sys/dvb/camconditionalaccess.c
@@ -41,7 +41,7 @@ static CamReturn data_impl (CamALApplication * application,
CamSLSession * session, guint tag, guint8 * buffer, guint length);
CamConditionalAccess *
-cam_conditional_access_new ()
+cam_conditional_access_new (void)
{
CamConditionalAccess *cas;
CamALApplication *application;
diff --git a/sys/dvb/camconditionalaccess.h b/sys/dvb/camconditionalaccess.h
index 43334c503..b01701fbb 100644
--- a/sys/dvb/camconditionalaccess.h
+++ b/sys/dvb/camconditionalaccess.h
@@ -46,7 +46,7 @@ struct _CamConditionalAccess
gboolean ready;
};
-CamConditionalAccess *cam_conditional_access_new ();
+CamConditionalAccess *cam_conditional_access_new (void);
void cam_conditional_access_destroy (CamConditionalAccess *cas);
CamReturn cam_conditional_access_set_pmt (CamConditionalAccess *cas,
diff --git a/sys/dvb/camdevice.c b/sys/dvb/camdevice.c
index f72f47ca5..d38d625ae 100644
--- a/sys/dvb/camdevice.c
+++ b/sys/dvb/camdevice.c
@@ -33,7 +33,7 @@
#define GST_CAT_DEFAULT cam_debug_cat
CamDevice *
-cam_device_new ()
+cam_device_new (void)
{
CamDevice *device = g_new0 (CamDevice, 1);
diff --git a/sys/dvb/camdevice.h b/sys/dvb/camdevice.h
index b1fe11866..8138440af 100644
--- a/sys/dvb/camdevice.h
+++ b/sys/dvb/camdevice.h
@@ -55,7 +55,7 @@ typedef struct
CamConditionalAccess *cas;
} CamDevice;
-CamDevice *cam_device_new ();
+CamDevice *cam_device_new (void);
void cam_device_free (CamDevice *device);
gboolean cam_device_open (CamDevice *device, const char *filename);
diff --git a/sys/dvb/camresourcemanager.c b/sys/dvb/camresourcemanager.c
index 5b8c6c18d..2b6169fde 100644
--- a/sys/dvb/camresourcemanager.c
+++ b/sys/dvb/camresourcemanager.c
@@ -38,7 +38,7 @@ static CamReturn data_impl (CamALApplication * application,
CamSLSession * session, guint tag, guint8 * buffer, guint length);
CamResourceManager *
-cam_resource_manager_new ()
+cam_resource_manager_new (void)
{
CamALApplication *application;
CamResourceManager *mgr;
diff --git a/sys/dvb/camresourcemanager.h b/sys/dvb/camresourcemanager.h
index b6fd0a474..96792fca2 100644
--- a/sys/dvb/camresourcemanager.h
+++ b/sys/dvb/camresourcemanager.h
@@ -35,7 +35,7 @@ struct _CamResourceManager
CamALApplication application;
};
-CamResourceManager *cam_resource_manager_new ();
+CamResourceManager *cam_resource_manager_new (void);
void cam_resource_manager_destroy (CamResourceManager *manager);
#endif /* CAM_RESOURCE_MANAGER_H */
diff --git a/sys/dvb/camsession.c b/sys/dvb/camsession.c
index 6a2deb9c6..4fe728e36 100644
--- a/sys/dvb/camsession.c
+++ b/sys/dvb/camsession.c
@@ -38,7 +38,7 @@
static CamReturn connection_data_cb (CamTL * tl, CamTLConnection * connection,
guint8 * spdu, guint spdu_length);
-CamSLSession *
+static CamSLSession *
cam_sl_session_new (CamSL * sl, CamTLConnection * connection,
guint16 session_nb, guint resource_id)
{
@@ -53,7 +53,7 @@ cam_sl_session_new (CamSL * sl, CamTLConnection * connection,
return session;
}
-void
+static void
cam_sl_session_destroy (CamSLSession * session)
{
g_free (session);
diff --git a/sys/dvb/camswclient.c b/sys/dvb/camswclient.c
index d9d0af2c9..b68b0a7b8 100644
--- a/sys/dvb/camswclient.c
+++ b/sys/dvb/camswclient.c
@@ -36,7 +36,7 @@
#define UNIX_PATH_MAX 108
CamSwClient *
-cam_sw_client_new ()
+cam_sw_client_new (void)
{
CamSwClient *client = g_new0 (CamSwClient, 1);
diff --git a/sys/dvb/camswclient.h b/sys/dvb/camswclient.h
index 5b1a4a259..57c470817 100644
--- a/sys/dvb/camswclient.h
+++ b/sys/dvb/camswclient.h
@@ -41,7 +41,7 @@ typedef struct
} CamSwClient;
-CamSwClient *cam_sw_client_new ();
+CamSwClient *cam_sw_client_new (void);
void cam_sw_client_free (CamSwClient *sw_client);
gboolean cam_sw_client_open (CamSwClient *sw_client, const char *sock_path);
diff --git a/sys/dvb/camtransport.c b/sys/dvb/camtransport.c
index 288b2e46e..98467f064 100644
--- a/sys/dvb/camtransport.c
+++ b/sys/dvb/camtransport.c
@@ -56,7 +56,7 @@ typedef struct
void cam_gst_util_dump_mem (const guchar * mem, guint size);
-CamTLConnection *
+static CamTLConnection *
cam_tl_connection_new (CamTL * tl, guint8 id)
{
CamTLConnection *connection;
@@ -335,7 +335,7 @@ cam_tl_connection_delete (CamTLConnection * connection)
return CAM_RETURN_OK;
}
-CamReturn
+static CamReturn
handle_control_tpdu (CamTL * tl, CamTLConnection * connection)
{
if (tl->body_length != 0) {
@@ -371,7 +371,7 @@ handle_control_tpdu (CamTL * tl, CamTLConnection * connection)
return CAM_RETURN_OK;
}
-CamReturn
+static CamReturn
handle_data_tpdu (CamTL * tl, CamTLConnection * connection)
{
if (tl->body_length == 0) {
diff --git a/sys/dvb/dvbbasebin.h b/sys/dvb/dvbbasebin.h
index fbf0b1893..3389283c4 100644
--- a/sys/dvb/dvbbasebin.h
+++ b/sys/dvb/dvbbasebin.h
@@ -67,7 +67,7 @@ struct _DvbBaseBinClass {
/* signals */
};
-GType gst_dvb_base_bin_get_type(void);
+GType dvb_base_bin_get_type(void);
gboolean gst_dvb_base_bin_plugin_init (GstPlugin *plugin);
G_END_DECLS
diff --git a/sys/dvb/parsechannels.c b/sys/dvb/parsechannels.c
index ed07e5374..3df3a6df5 100644
--- a/sys/dvb/parsechannels.c
+++ b/sys/dvb/parsechannels.c
@@ -27,6 +27,8 @@
#include <string.h>
#include <gst/gst.h>
+#include "parsechannels.h"
+
/* this will do zap style channels.conf only for the moment*/
GHashTable *
parse_channels_conf_from_file (const gchar * filename)
diff --git a/sys/oss4/oss4-mixer.c b/sys/oss4/oss4-mixer.c
index 11227c7d2..db7f0d278 100644
--- a/sys/oss4/oss4-mixer.c
+++ b/sys/oss4/oss4-mixer.c
@@ -850,7 +850,7 @@ static struct
/* Decent i18n is pretty much impossible with OSS's way of providing us with
* mixer labels (and the fact that they are pretty much random), but that
* doesn't mean we shouldn't at least try. */
-const gchar *
+static const gchar *
gst_oss4_mixer_control_get_translated_name (GstOss4MixerControl * mc)
{
gchar name[128] = { 0, };
diff --git a/sys/vcd/vcdsrc.h b/sys/vcd/vcdsrc.h
index 6dd5d91bc..9a61a4c39 100644
--- a/sys/vcd/vcdsrc.h
+++ b/sys/vcd/vcdsrc.h
@@ -69,6 +69,8 @@ struct _GstVCDSrcClass {
GstPushSrcClass parent_class;
};
+GType gst_vcdsrc_get_type (void);
+
G_END_DECLS
#endif /* __VCDSRC_H__ */