public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: alok barsode <alokbarsode@gmail.com>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: linux-bluetooth <linux-bluetooth@vger.kernel.org>
Subject: [PATCH] Using # to stringify plugin name.
Date: Tue, 21 Apr 2009 17:13:13 +0530	[thread overview]
Message-ID: <8b5debfa0904210443r2a9d0ad5ma9da78dda38046b7@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 114 bytes --]

Hi Marcel,

Here is a patch to stringify plugin name.

Let me know it anything needs modification.

Cheers,
Alok.

[-- Attachment #2: 0002-Using-operator-to-stringify-plugin-name.patch --]
[-- Type: text/x-diff, Size: 4202 bytes --]

From 93b022c4f8925d4816f1155d017c1f43debcf40d Mon Sep 17 00:00:00 2001
From: Alok Barsode <alok.barsode@azingo.com>
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


             reply	other threads:[~2009-04-21 11:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-21 11:43 alok barsode [this message]
2009-04-21 12:26 ` [PATCH] Using # to stringify plugin name Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8b5debfa0904210443r2a9d0ad5ma9da78dda38046b7@mail.gmail.com \
    --to=alokbarsode@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=marcel@holtmann.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox