changeset 2778:78350b4209ce trunk

[svn] - drop no-longer-used libaudacious C++ bindings
author nenolod
date Thu, 17 May 2007 01:59:45 -0700
parents 4b8caa739baf
children 79c75896893a
files ChangeLog src/audacious/build_stamp.c src/libaudacious++/Makefile src/libaudacious++/configdb.cxx src/libaudacious++/configdb.hh
diffstat 5 files changed, 9 insertions(+), 225 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu May 17 01:56:41 2007 -0700
+++ b/ChangeLog	Thu May 17 01:59:45 2007 -0700
@@ -1,3 +1,11 @@
+2007-05-17 08:56:41 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [4580]
+  - handle pluralization properly in playlist-display action
+  
+  trunk/src/audtool/handlers.c |    2 +-
+  1 file changed, 1 insertion(+), 1 deletion(-)
+
+
 2007-05-17 08:54:13 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [4578]
   - remove no-longer-necessary debugging notice
--- a/src/audacious/build_stamp.c	Thu May 17 01:56:41 2007 -0700
+++ b/src/audacious/build_stamp.c	Thu May 17 01:59:45 2007 -0700
@@ -1,2 +1,2 @@
 #include <glib.h>
-const gchar *svn_stamp = "20070517-4578";
+const gchar *svn_stamp = "20070517-4580";
--- a/src/libaudacious++/Makefile	Thu May 17 01:56:41 2007 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-include ../../mk/rules.mk
-include ../../mk/init.mk
-
-PICLDFLAGS = $(LIBLDFLAGS)
-
-includedir = $(includedir)/audacious++
-
-OBJECTIVE_LIBS = libaudacious++$(SHARED_SUFFIX)
-OBJECTIVE_SONAME_SUFFIX = 1
-
-LIBADD = \
-	$(GTK_LIBS)      \
-	$(GCONF_LIBS)
-
-CXXFLAGS += $(PICFLAGS) \
-	$(GTK_CFLAGS)        \
-	$(GCONF_CFLAGS)      \
-	-D_AUDACIOUS_CORE    \
-	-I.. -I../..	      \
-	-I../intl
-
-SOURCES = configdb.cxx
-
-OBJECTS = ${SOURCES:.cxx=.o}
-
-HEADERS = configdb.hh
-
-include ../../mk/objective.mk
-
-install-posthook:
-	@mv ${DESTDIR}/${LIBDIR}/libaudacious++$(SHARED_SUFFIX) ${DESTDIR}/${LIBDIR}/libaudacious++$(SHARED_SUFFIX).1.0.0
-	@ln -sf ${LIBDIR}/libaudacious++$(SHARED_SUFFIX).1.0.0 \
-		${DESTDIR}/${LIBDIR}/libaudacious++$(SHARED_SUFFIX).1
-	@ln -sf ${LIBDIR}/libaudacious++$(SHARED_SUFFIX).1 \
-		${DESTDIR}/${LIBDIR}/libaudacious++$(SHARED_SUFFIX)
--- a/src/libaudacious++/configdb.cxx	Thu May 17 01:56:41 2007 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,114 +0,0 @@
-#include "configdb.hh"
-
-using namespace Audacious;
-
-ConfValue::~ConfValue(void)
-{
-	// make sure we don't leak any string data
-	if (this->strval != NULL)
-		g_free(this->strval);
-}
-
-std::string ConfValue::asString(void)
-{
-	return this->strval;
-}
-
-gint ConfValue::asInt(void)
-{
-	return this->intval;
-}
-
-bool ConfValue::asBool(void)
-{
-	return this->boolval;
-}
-
-gfloat ConfValue::asFloat(void)
-{
-	return this->floatval;
-}
-
-gdouble ConfValue::asDouble(void)
-{
-	return this->dblval;
-}
-
-// *************************************************************************
-
-ConfigDB::ConfigDB(void)
-{
-	this->db = bmp_cfg_db_open();
-}
-
-ConfigDB::~ConfigDB(void)
-{
-	bmp_cfg_db_close(this->db);
-}
-
-ConfValue *ConfigDB::GetValue(std::string &section, std::string &value, ConfigDB::ValueType type)
-{
-	ConfValue *val = new ConfValue;
-
-	switch(type)
-	{
-		case String:
-			bmp_cfg_db_get_string(this->db, section.c_str(), value.c_str(), &val->strval);
-			break;
-
-		case Int:
-			bmp_cfg_db_get_int(this->db, section.c_str(), value.c_str(), &val->intval);
-			break;
-
-		case Bool:
-			gboolean tmp;
-
-			bmp_cfg_db_get_bool(this->db, section.c_str(), value.c_str(), &tmp);
-
-			if (tmp != 0)
-				val->boolval = true;
-			else
-				val->boolval = false;
-
-			break;
-
-		case Float:
-			bmp_cfg_db_get_float(this->db, section.c_str(), value.c_str(), &val->floatval);
-			break;
-
-		case Double:
-			bmp_cfg_db_get_double(this->db, section.c_str(), value.c_str(), &val->dblval);
-			break;
-
-		default:
-			g_warning("Unknown value passed to Audacious::ConfigDB::GetValue!");
-			break;
-	}
-
-	return val;
-}
-
-void ConfigDB::SetValue(std::string &section, std::string &name, std::string &value)
-{
-	bmp_cfg_db_set_string(this->db, section.c_str(), name.c_str(), value.c_str());
-}
-
-void ConfigDB::SetValue(std::string &section, std::string &name, gint value)
-{
-	bmp_cfg_db_set_int(this->db, section.c_str(), name.c_str(), value);
-}
-
-void ConfigDB::SetValue(std::string &section, std::string &name, bool value)
-{
-	bmp_cfg_db_set_bool(this->db, section.c_str(), name.c_str(), value);
-}
-
-void ConfigDB::SetValue(std::string &section, std::string &name, gfloat value)
-{
-	bmp_cfg_db_set_float(this->db, section.c_str(), name.c_str(), value);
-}
-
-void ConfigDB::SetValue(std::string &section, std::string &name, gdouble value)
-{
-	bmp_cfg_db_set_double(this->db, section.c_str(), name.c_str(), value);
-}
--- a/src/libaudacious++/configdb.hh	Thu May 17 01:56:41 2007 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,75 +0,0 @@
-#ifndef CONFIGDB_HH
-#define CONFIGDB_HH
-
-#include <glib.h>
-
-#include <string>
-
-#ifdef _AUDACIOUS_CORE
-# include "libaudacious/configdb.h"
-#else
-# include <audacious/configdb.h>
-#endif
-
-namespace Audacious
-{
-
-	/*
-	 * Usage example:
-	 *
-	 * {
-	 *     Audacious::ConfigDB foo;
-	 *     Audacious::ConfValue *bar;
-	 *
-	 *     bar = foo.GetValue("bar", "filter", Audacious::ConfigDB::String);
-	 *     std::string filter = bar->asString();
-	 *     delete bar;
-	 *
-	 *     foo.SetValue("bar", "filter", "none");
-	 *
-	 *     foo.RemoveEntry("bar", "baz");
-	 * }
-	 */
-
-	class ConfValue
-	{
-	public:
-		gchar *strval;
-		gint intval;
-		bool boolval;
-		gfloat floatval;
-		gdouble dblval;
-
-		std::string asString(void);
-		gint asInt(void);
-		bool asBool(void);
-		gfloat asFloat(void);
-		gdouble asDouble(void);
-
-		~ConfValue(void);
-	};
-
-	class ConfigDB
-	{
-	private:
-		ConfigDb *db;
-
-	public:
-		enum ValueType { String, Int, Bool, Float, Double };
-
-		ConfValue *GetValue(std::string &section, std::string &name, ConfigDB::ValueType type);
-
-		void SetValue(std::string &section, std::string &name, std::string &value);
-		void SetValue(std::string &section, std::string &name, gint value);
-		void SetValue(std::string &section, std::string &name, bool value);
-		void SetValue(std::string &section, std::string &name, gfloat value);
-		void SetValue(std::string &section, std::string &name, gdouble value);
-
-		void RemoveEntry(std::string &section, std::string &value);
-
-		ConfigDB(void);
-		~ConfigDB(void);
-	};
-};
-
-#endif