[PATCH] Using # to stringify plugin name.

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

 



Hi Marcel,

Here is a patch to stringify plugin name.

Let me know it anything needs modification.

Cheers,
Alok.
From 93b022c4f8925d4816f1155d017c1f43debcf40d Mon Sep 17 00:00:00 2001
From: Alok Barsode <alok.barsode@xxxxxxxxxx>
Date: Tue, 21 Apr 2009 17:05:11 +0530
Subject: [PATCH] Using # operator to stringify plugin name.

---
 audio/main.c      |    2 +-
 input/main.c      |    2 +-
 network/main.c    |    2 +-
 plugins/echo.c    |    2 +-
 plugins/hal.c     |    2 +-
 plugins/netlink.c |    2 +-
 plugins/service.c |    2 +-
 plugins/storage.c |    2 +-
 serial/main.c     |    2 +-
 src/plugin.h      |    2 +-
 10 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/audio/main.c b/audio/main.c
index 761392a..853a033 100644
--- a/audio/main.c
+++ b/audio/main.c
@@ -176,5 +176,5 @@ static void audio_exit(void)
 	dbus_connection_unref(connection);
 }
 
-BLUETOOTH_PLUGIN_DEFINE("audio", VERSION,
+BLUETOOTH_PLUGIN_DEFINE(audio, VERSION,
 			BLUETOOTH_PLUGIN_PRIORITY_DEFAULT, audio_init, audio_exit)
diff --git a/input/main.c b/input/main.c
index 2834201..913ea7b 100644
--- a/input/main.c
+++ b/input/main.c
@@ -82,5 +82,5 @@ static void input_exit(void)
 	dbus_connection_unref(connection);
 }
 
-BLUETOOTH_PLUGIN_DEFINE("input", VERSION,
+BLUETOOTH_PLUGIN_DEFINE(input, VERSION,
 			BLUETOOTH_PLUGIN_PRIORITY_DEFAULT, input_init, input_exit)
diff --git a/network/main.c b/network/main.c
index 7e45eba..97838a2 100644
--- a/network/main.c
+++ b/network/main.c
@@ -55,5 +55,5 @@ static void network_exit(void)
 	dbus_connection_unref(connection);
 }
 
-BLUETOOTH_PLUGIN_DEFINE("network", VERSION,
+BLUETOOTH_PLUGIN_DEFINE(network, VERSION,
 			BLUETOOTH_PLUGIN_PRIORITY_DEFAULT, network_init, network_exit)
diff --git a/plugins/echo.c b/plugins/echo.c
index 4443ff1..716742e 100644
--- a/plugins/echo.c
+++ b/plugins/echo.c
@@ -163,5 +163,5 @@ static void echo_exit(void)
 	btd_unregister_adapter_driver(&echo_server);
 }
 
-BLUETOOTH_PLUGIN_DEFINE("echo", VERSION,
+BLUETOOTH_PLUGIN_DEFINE(echo, VERSION,
 			BLUETOOTH_PLUGIN_PRIORITY_DEFAULT, echo_init, echo_exit)
diff --git a/plugins/hal.c b/plugins/hal.c
index 683777c..65f7059 100644
--- a/plugins/hal.c
+++ b/plugins/hal.c
@@ -158,5 +158,5 @@ static void hal_exit(void)
 	btd_unregister_adapter_driver(&hal_driver);
 }
 
-BLUETOOTH_PLUGIN_DEFINE("hal", VERSION,
+BLUETOOTH_PLUGIN_DEFINE(hal, VERSION,
 			BLUETOOTH_PLUGIN_PRIORITY_DEFAULT, hal_init, hal_exit)
diff --git a/plugins/netlink.c b/plugins/netlink.c
index d1e91b2..88ab5e8 100644
--- a/plugins/netlink.c
+++ b/plugins/netlink.c
@@ -123,5 +123,5 @@ static void netlink_exit(void)
 	nl_handle_destroy(handle);
 }
 
-BLUETOOTH_PLUGIN_DEFINE("netlink", VERSION,
+BLUETOOTH_PLUGIN_DEFINE(netlink, VERSION,
 			BLUETOOTH_PLUGIN_PRIORITY_DEFAULT, netlink_init, netlink_exit)
diff --git a/plugins/service.c b/plugins/service.c
index d81abe8..27264bb 100644
--- a/plugins/service.c
+++ b/plugins/service.c
@@ -859,5 +859,5 @@ static void service_exit(void)
 	dbus_connection_unref(connection);
 }
 
-BLUETOOTH_PLUGIN_DEFINE("service", VERSION,
+BLUETOOTH_PLUGIN_DEFINE(service, VERSION,
 			BLUETOOTH_PLUGIN_PRIORITY_DEFAULT, service_init, service_exit)
diff --git a/plugins/storage.c b/plugins/storage.c
index 0abc616..0649e06 100644
--- a/plugins/storage.c
+++ b/plugins/storage.c
@@ -39,5 +39,5 @@ static void storage_exit(void)
 {
 }
 
-BLUETOOTH_PLUGIN_DEFINE("storage", VERSION,
+BLUETOOTH_PLUGIN_DEFINE(storage, VERSION,
 			BLUETOOTH_PLUGIN_PRIORITY_DEFAULT, storage_init, storage_exit)
diff --git a/serial/main.c b/serial/main.c
index 3949271..71e5aa3 100644
--- a/serial/main.c
+++ b/serial/main.c
@@ -55,5 +55,5 @@ static void serial_exit(void)
 	dbus_connection_unref(connection);
 }
 
-BLUETOOTH_PLUGIN_DEFINE("serial", VERSION,
+BLUETOOTH_PLUGIN_DEFINE(serial, VERSION,
 			BLUETOOTH_PLUGIN_PRIORITY_DEFAULT, serial_init, serial_exit)
diff --git a/src/plugin.h b/src/plugin.h
index dc37224..d5c5b49 100644
--- a/src/plugin.h
+++ b/src/plugin.h
@@ -36,5 +36,5 @@ struct bluetooth_plugin_desc {
 		extern struct bluetooth_plugin_desc bluetooth_plugin_desc \
 				__attribute__ ((visibility("default"))); \
 		struct bluetooth_plugin_desc bluetooth_plugin_desc = { \
-			name, version, priority, init, exit \
+			#name, version, priority, init, exit \
 		};
-- 
1.5.6.3


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux