summaryrefslogtreecommitdiffstats
path: root/gst/librfb
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2006-04-25 21:56:38 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2006-04-25 21:56:38 +0000
commitbf3fd4f95d83633e2d7fda8955d4f94fa8cd2684 (patch)
treee629298cd1498345d4029f1ce20466e52e65c3d9 /gst/librfb
parentaf701d80d58617a18d2295344a40a64d9ffa80d2 (diff)
downloadgst-plugins-bad-bf3fd4f95d83633e2d7fda8955d4f94fa8cd2684.tar.gz
gst-plugins-bad-bf3fd4f95d83633e2d7fda8955d4f94fa8cd2684.tar.bz2
gst-plugins-bad-bf3fd4f95d83633e2d7fda8955d4f94fa8cd2684.zip
Define GstElementDetails as const and also static (when defined as global)
Original commit message from CVS: * ext/amrwb/gstamrwbdec.c: * ext/amrwb/gstamrwbenc.c: * ext/amrwb/gstamrwbparse.c: * ext/arts/gst_arts.c: * ext/artsd/gstartsdsink.c: * ext/audiofile/gstafparse.c: * ext/audiofile/gstafsink.c: * ext/audiofile/gstafsrc.c: * ext/audioresample/gstaudioresample.c: * ext/bz2/gstbz2dec.c: * ext/bz2/gstbz2enc.c: * ext/cdaudio/gstcdaudio.c: * ext/directfb/dfbvideosink.c: * ext/divx/gstdivxdec.c: * ext/divx/gstdivxenc.c: * ext/dts/gstdtsdec.c: (gst_dtsdec_base_init): * ext/faac/gstfaac.c: (gst_faac_base_init): * ext/faad/gstfaad.c: * ext/gsm/gstgsmdec.c: * ext/gsm/gstgsmenc.c: * ext/hermes/gsthermescolorspace.c: * ext/ivorbis/vorbisfile.c: * ext/lcs/gstcolorspace.c: * ext/libfame/gstlibfame.c: * ext/libmms/gstmms.c: (gst_mms_base_init): * ext/musepack/gstmusepackdec.c: (gst_musepackdec_base_init): * ext/musicbrainz/gsttrm.c: (gst_musicbrainz_base_init): * ext/nas/nassink.c: (gst_nassink_base_init): * ext/neon/gstneonhttpsrc.c: * ext/sdl/sdlaudiosink.c: * ext/sdl/sdlvideosink.c: * ext/shout/gstshout.c: * ext/snapshot/gstsnapshot.c: * ext/sndfile/gstsf.c: * ext/swfdec/gstswfdec.c: * ext/tarkin/gsttarkindec.c: * ext/tarkin/gsttarkinenc.c: * ext/theora/theoradec.c: * ext/wavpack/gstwavpackdec.c: (gst_wavpack_dec_base_init): * ext/wavpack/gstwavpackparse.c: (gst_wavpack_parse_base_init): * ext/xvid/gstxviddec.c: * ext/xvid/gstxvidenc.c: * gst/cdxaparse/gstcdxaparse.c: (gst_cdxa_parse_base_init): * gst/cdxaparse/gstcdxastrip.c: (gst_cdxastrip_base_init): * gst/chart/gstchart.c: * gst/colorspace/gstcolorspace.c: * gst/deinterlace/gstdeinterlace.c: * gst/equalizer/gstiirequalizer.c: (gst_iir_equalizer_base_init): * gst/festival/gstfestival.c: * gst/filter/gstbpwsinc.c: * gst/filter/gstiir.c: * gst/filter/gstlpwsinc.c: * gst/freeze/gstfreeze.c: * gst/games/gstpuzzle.c: (gst_puzzle_base_init): * gst/librfb/gstrfbsrc.c: * gst/mixmatrix/mixmatrix.c: * gst/mpeg1sys/gstmpeg1systemencode.c: * gst/mpeg1videoparse/gstmp1videoparse.c: * gst/mpeg2sub/gstmpeg2subt.c: * gst/mpegaudioparse/gstmpegaudioparse.c: * gst/multifilesink/gstmultifilesink.c: * gst/overlay/gstoverlay.c: * gst/passthrough/gstpassthrough.c: * gst/playondemand/gstplayondemand.c: * gst/qtdemux/qtdemux.c: * gst/rtjpeg/gstrtjpegdec.c: * gst/rtjpeg/gstrtjpegenc.c: * gst/smooth/gstsmooth.c: * gst/smoothwave/gstsmoothwave.c: * gst/spectrum/gstspectrum.c: * gst/speed/gstspeed.c: * gst/stereo/gststereo.c: * gst/switch/gstswitch.c: * gst/tta/gstttadec.c: (gst_tta_dec_base_init): * gst/tta/gstttaparse.c: (gst_tta_parse_base_init): * gst/vbidec/gstvbidec.c: * gst/videocrop/gstvideocrop.c: * gst/videodrop/gstvideodrop.c: * gst/virtualdub/gstxsharpen.c: * gst/xingheader/gstxingmux.c: (gst_xing_mux_base_init): * gst/y4m/gsty4mencode.c: * sys/cdrom/gstcdplayer.c: * sys/directdraw/gstdirectdrawsink.c: * sys/directsound/gstdirectsoundsink.c: * sys/glsink/glimagesink.c: * sys/qcam/gstqcamsrc.c: * sys/v4l2/gstv4l2src.c: * sys/vcd/vcdsrc.c: (gst_vcdsrc_base_init): * sys/ximagesrc/ximagesrc.c: Define GstElementDetails as const and also static (when defined as global)
Diffstat (limited to 'gst/librfb')
-rw-r--r--gst/librfb/gstrfbsrc.c75
1 files changed, 35 insertions, 40 deletions
diff --git a/gst/librfb/gstrfbsrc.c b/gst/librfb/gstrfbsrc.c
index 93929a3b..6f22f985 100644
--- a/gst/librfb/gstrfbsrc.c
+++ b/gst/librfb/gstrfbsrc.c
@@ -70,63 +70,58 @@ struct _GstRfbsrcClass
GstElementClass parent_class;
};
-GType
-gst_rfbsrc_get_type (void)
- G_GNUC_CONST;
-
+GType gst_rfbsrc_get_type (void);
- static GstElementDetails rfbsrc_details =
- GST_ELEMENT_DETAILS ("Video test source",
+static const GstElementDetails rfbsrc_details =
+GST_ELEMENT_DETAILS ("Video test source",
"Source/Video",
"Creates a test video stream",
"David A. Schleef <ds@schleef.org>");
/* GstRfbsrc signals and args */
- enum
- {
- /* FILL ME */
- LAST_SIGNAL
- };
-
- enum
- {
- ARG_0,
- ARG_SERVER,
- ARG_PORT,
- /* FILL ME */
- };
-
- static void gst_rfbsrc_base_init (gpointer g_class);
- static void gst_rfbsrc_class_init (GstRfbsrcClass * klass);
- static void gst_rfbsrc_init (GstRfbsrc * rfbsrc);
- static GstStateChangeReturn gst_rfbsrc_change_state (GstElement * element);
-
- static void gst_rfbsrc_set_property (GObject * object, guint prop_id,
+enum
+{
+ /* FILL ME */
+ LAST_SIGNAL
+};
+
+enum
+{
+ ARG_0,
+ ARG_SERVER,
+ ARG_PORT,
+ /* FILL ME */
+};
+
+static void gst_rfbsrc_base_init (gpointer g_class);
+static void gst_rfbsrc_class_init (GstRfbsrcClass * klass);
+static void gst_rfbsrc_init (GstRfbsrc * rfbsrc);
+static GstStateChangeReturn gst_rfbsrc_change_state (GstElement * element);
+
+static void gst_rfbsrc_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
- static void gst_rfbsrc_get_property (GObject * object, guint prop_id,
+static void gst_rfbsrc_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec);
- static GstData *gst_rfbsrc_get (GstPad * pad);
+static GstData *gst_rfbsrc_get (GstPad * pad);
- static const GstQueryType *gst_rfbsrc_get_query_types (GstPad * pad);
- static gboolean gst_rfbsrc_src_query (GstPad * pad,
+static const GstQueryType *gst_rfbsrc_get_query_types (GstPad * pad);
+static gboolean gst_rfbsrc_src_query (GstPad * pad,
GstQueryType type, GstFormat * format, gint64 * value);
- static void gst_rfbsrc_paint_rect (RfbDecoder * decoder, int x, int y,
+static void gst_rfbsrc_paint_rect (RfbDecoder * decoder, int x, int y,
int w, int h, guint8 * data);
- static gboolean gst_rfbsrc_handle_src_event (GstPad * pad,
- GstEvent * event);
+static gboolean gst_rfbsrc_handle_src_event (GstPad * pad, GstEvent * event);
- static GstCaps *gst_rfbsrc_getcaps (GstPad * pad);
- static GstPadLinkReturn gst_rfbsrc_link (GstPad * pad,
- const GstCaps * caps);
- static GstCaps *gst_rfbsrc_fixate (GstPad * pad, const GstCaps * caps);
+static GstCaps *gst_rfbsrc_getcaps (GstPad * pad);
+static GstPadLinkReturn gst_rfbsrc_link (GstPad * pad, const GstCaps * caps);
+static GstCaps *gst_rfbsrc_fixate (GstPad * pad, const GstCaps * caps);
- static GstElementClass *parent_class = NULL;
+static GstElementClass *parent_class = NULL;
- static GstStaticPadTemplate gst_rfbsrc_src_template =
- GST_STATIC_PAD_TEMPLATE ("src",
+static GstStaticPadTemplate gst_rfbsrc_src_template =
+GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("video/x-raw-rgb, "