[PATCH 27/30] 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 c7b1b20..de5f21d 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"
-- 
1.7.0.4



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