[grilo-plugins] filesystem: Add plugin ID from configure's constant



commit 01eca614dc3b7614ee7afbbcf4d31b1461de484c
Author: Joaquim Rocha <jrocha igalia com>
Date:   Tue Jun 22 16:11:47 2010 +0200

    filesystem: Add plugin ID from configure's constant

 configure.ac                    |    3 +++
 src/filesystem/grl-filesystem.c |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 901a271..8cb0761 100644
--- a/configure.ac
+++ b/configure.ac
@@ -165,6 +165,9 @@ then
 	GRL_PLUGINS_ENABLED="$GRL_PLUGINS_ENABLED filesystem"
 fi
 
+FILESYSTEM_PLUGIN_ID="grl-filesystem"
+AC_DEFINE_UNQUOTED([FILESYSTEM_PLUGIN_ID], ["$FILESYSTEM_PLUGIN_ID"], [Filesystem plugin ID])
+
 # ----------------------------------------------------------
 # BUILD JAMENDO PLUGIN
 # ----------------------------------------------------------
diff --git a/src/filesystem/grl-filesystem.c b/src/filesystem/grl-filesystem.c
index 14dbdda..f0e6d45 100644
--- a/src/filesystem/grl-filesystem.c
+++ b/src/filesystem/grl-filesystem.c
@@ -56,7 +56,7 @@
 
 /* --- Plugin information --- */
 
-#define PLUGIN_ID   "grl-filesystem"
+#define PLUGIN_ID   FILESYSTEM_PLUGIN_ID
 
 #define SOURCE_ID   "grl-filesystem"
 #define SOURCE_NAME "Filesystem"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]