[beast: 10/31] BSE: move bse_server.get_mp3_version to bseapi.idl
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 10/31] BSE: move bse_server.get_mp3_version to bseapi.idl
- Date: Mon, 22 Jun 2015 14:39:00 +0000 (UTC)
commit 2595e6c89b29067b1c60a11cca437731289df702
Author: Tim Janik <timj gnu org>
Date: Fri Jun 12 14:39:35 2015 +0200
BSE: move bse_server.get_mp3_version to bseapi.idl
bse/bseapi.idl | 1 +
bse/bseserver.cc | 7 +++++++
bse/bseserver.hh | 5 +++--
bse/bseserver.proc | 18 ------------------
4 files changed, 11 insertions(+), 20 deletions(-)
---
diff --git a/bse/bseapi.idl b/bse/bseapi.idl
index 0f508bf..05476d9 100644
--- a/bse/bseapi.idl
+++ b/bse/bseapi.idl
@@ -43,6 +43,7 @@ interface Server : Object {
signal void user_message (UserMessage umsg); ///< Notification signal for user messages from BSE.
TestObject get_test_object () = 0; ///< Retrieve object for API, signal, etc tests.
Object from_proxy (int64 proxyid) = 0; ///< Find an Object from its associated BseObject
proxy id.
+ String get_mp3_version () = 0; ///< Retrieve BSE MP3 handler version.
};
} // Bse
diff --git a/bse/bseserver.cc b/bse/bseserver.cc
index 49b4234..e4f14ed 100644
--- a/bse/bseserver.cc
+++ b/bse/bseserver.cc
@@ -17,6 +17,7 @@
#include <unistd.h>
#include <string.h>
#include "bsepcmmodule.cc"
+#include "gsldatahandle-mad.hh"
using namespace Bse;
/* --- parameters --- */
@@ -1164,4 +1165,10 @@ ServerImpl::send_user_message (const UserMessage &umsg)
sig_user_message.emit (umsg);
}
+std::string
+ServerImpl::get_mp3_version ()
+{
+ return String ("MAD ") + gsl_data_handle_mad_version ();
+}
+
} // Bse
diff --git a/bse/bseserver.hh b/bse/bseserver.hh
index 5a6be2c..71d4fc0 100644
--- a/bse/bseserver.hh
+++ b/bse/bseserver.hh
@@ -106,9 +106,10 @@ protected:
public:
explicit ServerImpl (BseObject*);
virtual TestObjectIfaceP get_test_object () override;
- static ServerImpl& instance ();
- void send_user_message (const UserMessage &umsg);
virtual ObjectIfaceP from_proxy (int64_t proxyid) override;
+ virtual std::string get_mp3_version () override;
+ void send_user_message (const UserMessage &umsg);
+ static ServerImpl& instance ();
};
} // Bse
diff --git a/bse/bseserver.proc b/bse/bseserver.proc
index b41498d..fe6fe60 100644
--- a/bse/bseserver.proc
+++ b/bse/bseserver.proc
@@ -598,21 +598,3 @@ BODY (BseProcedureClass *proc,
g_free (v);
return BSE_ERROR_NONE;
}
-
-#include "gsldatahandle-mad.hh"
-
-METHOD (BseServer, get-mp3-version) {
- HELP = "Retrieve BSE MP3 handler version.";
- IN = bse_param_spec_object ("server", "Server", NULL,
- BSE_TYPE_SERVER, SFI_PARAM_STANDARD);
- OUT = sfi_pspec_string ("version", NULL, NULL, NULL, SFI_PARAM_STANDARD);
-}
-BODY (BseProcedureClass *proc,
- const GValue *in_values,
- GValue *out_values)
-{
- const gchar *c = gsl_data_handle_mad_version ();
- if (c)
- sfi_value_take_string (out_values++, g_strconcat ("MAD ", c, NULL));
- return BSE_ERROR_NONE;
-}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]