All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dbus: Move generic DBus paths to header file
@ 2015-02-10 14:52 Jukka Rissanen
  2015-02-10 19:33 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Jukka Rissanen @ 2015-02-10 14:52 UTC (permalink / raw)
  To: ell

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

DBus defines moved to header file so that they can be used
by other source files.
---
 ell/dbus.c | 5 -----
 ell/dbus.h | 4 ++++
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/ell/dbus.c b/ell/dbus.c
index 4c4ba2d..26456ac 100644
--- a/ell/dbus.c
+++ b/ell/dbus.c
@@ -45,11 +45,6 @@
 
 #define DEFAULT_SYSTEM_BUS_ADDRESS "unix:path=/var/run/dbus/system_bus_socket"
 
-#define DBUS_SERVICE_DBUS	"org.freedesktop.DBus"
-
-#define DBUS_PATH_DBUS		"/org/freedesktop/DBus"
-
-#define DBUS_INTERFACE_DBUS		"org.freedesktop.DBus"
 #define DBUS_INTERFACE_INTROSPECTABLE	"org.freedesktop.DBus.Introspectable"
 #define DBUS_INTERFACE_PROPERTIES	"org.freedesktop.DBus.Properties"
 
diff --git a/ell/dbus.h b/ell/dbus.h
index a6ad109..7622b47 100644
--- a/ell/dbus.h
+++ b/ell/dbus.h
@@ -32,6 +32,10 @@
 extern "C" {
 #endif
 
+#define DBUS_SERVICE_DBUS	"org.freedesktop.DBus"
+#define DBUS_PATH_DBUS		"/org/freedesktop/DBus"
+#define DBUS_INTERFACE_DBUS	"org.freedesktop.DBus"
+
 enum l_dbus_bus {
 	L_DBUS_SYSTEM_BUS,
 	L_DBUS_SESSION_BUS,
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] dbus: Move generic DBus paths to header file
  2015-02-10 14:52 [PATCH] dbus: Move generic DBus paths to header file Jukka Rissanen
@ 2015-02-10 19:33 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2015-02-10 19:33 UTC (permalink / raw)
  To: ell

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

Hi Jukka,

On 02/10/2015 08:52 AM, Jukka Rissanen wrote:
> DBus defines moved to header file so that they can be used
> by other source files.

What other source files?  Care to give me a bit more context?

Also, I prefer we localize all the DBus Classic stuff to ell/dbus.c as 
much as possible.

> ---
>   ell/dbus.c | 5 -----
>   ell/dbus.h | 4 ++++
>   2 files changed, 4 insertions(+), 5 deletions(-)
>

Regards,
-Denis


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-10 19:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-10 14:52 [PATCH] dbus: Move generic DBus paths to header file Jukka Rissanen
2015-02-10 19:33 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.