* [PATCH] Using # to stringify plugin name.
@ 2009-04-21 11:43 alok barsode
2009-04-21 12:26 ` Marcel Holtmann
0 siblings, 1 reply; 2+ messages in thread
From: alok barsode @ 2009-04-21 11:43 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: linux-bluetooth
[-- 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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-21 12:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-21 11:43 [PATCH] Using # to stringify plugin name alok barsode
2009-04-21 12:26 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox