[beast] BSE: compile bseconstant as C++ source
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast] BSE: compile bseconstant as C++ source
- Date: Mon, 4 Jul 2011 20:01:12 +0000 (UTC)
commit de900867800afdbd43581c561a1dcdc4d60416e6
Author: Stefan Westerfeld <stefan space twc de>
Date: Fri Jul 1 17:27:05 2011 +0200
BSE: compile bseconstant as C++ source
bse/Makefile.am | 2 +-
bse/{bseconstant.c => bseconstant.cc} | 14 +++++++-------
po/POTSCAN | 2 +-
3 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/bse/Makefile.am b/bse/Makefile.am
index 1e586a9..3fedc98 100644
--- a/bse/Makefile.am
+++ b/bse/Makefile.am
@@ -69,7 +69,7 @@ bse_sources = $(strip \
bseengine.c bseenginemaster.c bseengineschedule.c bseengineutils.c \
bsebus.cc bsecategories.cc \
bsefilter.cc bsebiquadfilter.cc bsefilter-ellf.c \
- bseconstant.c bseconstvalues.c bsecontainer.c bsecontextmerger.c \
+ bseconstant.cc bseconstvalues.c bsecontainer.c bsecontextmerger.c \
bsedatapocket.c bseeditablesample.c bseenums.c bsegconfig.c \
bseglobals.c bseglue.c bseitem.c bsejanitor.c \
bsemain.cc bsemath.c bsemathsignal.c bseladspa.cc \
diff --git a/bse/bseconstant.c b/bse/bseconstant.cc
similarity index 95%
rename from bse/bseconstant.c
rename to bse/bseconstant.cc
index 38f2cf5..13bb3f9 100644
--- a/bse/bseconstant.c
+++ b/bse/bseconstant.cc
@@ -36,7 +36,7 @@ enum
/* --- prototypes --- */
static void bse_constant_init (BseConstant *constant);
-static void bse_constant_class_init (BseConstantClass *class);
+static void bse_constant_class_init (BseConstantClass *klass);
static void bse_constant_set_property (GObject *object,
guint param_id,
const GValue *value,
@@ -86,14 +86,14 @@ BSE_BUILTIN_TYPE (BseConstant)
}
static void
-bse_constant_class_init (BseConstantClass *class)
+bse_constant_class_init (BseConstantClass *klass)
{
- GObjectClass *gobject_class = G_OBJECT_CLASS (class);
- BseObjectClass *object_class = BSE_OBJECT_CLASS (class);
- BseSourceClass *source_class = BSE_SOURCE_CLASS (class);
+ GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
+ BseObjectClass *object_class = BSE_OBJECT_CLASS (klass);
+ BseSourceClass *source_class = BSE_SOURCE_CLASS (klass);
guint ochannel, i;
- parent_class = g_type_class_peek_parent (class);
+ parent_class = g_type_class_peek_parent (klass);
gobject_class->set_property = bse_constant_set_property;
gobject_class->get_property = bse_constant_get_property;
@@ -270,7 +270,7 @@ static void
constant_process (BseModule *module,
guint n_values)
{
- ConstantModule *cmod = module->user_data;
+ ConstantModule *cmod = (ConstantModule*) module->user_data;
guint i;
for (i = 0; i < BSE_CONSTANT_N_OUTPUTS; i++)
diff --git a/po/POTSCAN b/po/POTSCAN
index 8956747..345efbe 100644
--- a/po/POTSCAN
+++ b/po/POTSCAN
@@ -67,7 +67,7 @@ bse/bsebiquadfilter.cc
bse/bsebus.cc
bse/bsebusmodule.idl
bse/bsebus.proc
-bse/bseconstant.c
+bse/bseconstant.cc
bse/bsecontainer.proc
bse/bsecore.idl
bse/bsedevice.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]