From: Milosz D. <int...@gm...> - 2009-01-17 03:07:12
|
I just realized that DBus::Message::get_type() also returns just an int. For this to make any sense, that is, so API consumers can compare this to the known message types, they have to include the dbus-protocol.h anyway, or they (bad!) just hardcode the numbers. So either way it seems that header is needed. But aside from that, the question about whether C headers can generally be included or not still stands :) Thanks Milosz On Sat, Jan 17, 2009 at 3:02 AM, Milosz Derezynski <int...@gm...>wrote: > Hello, > > I've got 2 questions and one announcement. > > First the announcement: I've finally started writing the libhalmm rewrite, > as a reimplementation of libhal, > instead of being a wrapper around the C libhal and libhal-storage. > > Since the basic work is straightforward I expect that I can make an > announcement of the source code > within 1-2 weeks; I'll post again then with the checkout URL, etc. > > Two questions: > > 1.) Is it OK to post git diffs for dbus-c++ here? (I assume yes, but just > wanted to ask) > > 2.) Is the policy for inclusion of DBus C headers still "No DBus C headers > in the public dbus-c++ headers"? > I thought we could get rid of some (IMO) stupid things in the DBus C API, > e.g. introduce an enum for the > message type. However, to take the values from the C API, the C header > dbus-protocol.h would need to > be included? How is the stance on this policy by now? > > > Cheers > Milosz > > -- > Please note that according to the German law on data retention, > information on every electronic information exchange with me is > retained for a period of six months. > [Bitte beachten Sie, dass dem Gesetz zur Vorratsdatenspeicherung zufolge > jeder elektronische Kontakt mit mir sechs Monate lang gespeichert wird.] > -- Please note that according to the German law on data retention, information on every electronic information exchange with me is retained for a period of six months. [Bitte beachten Sie, dass dem Gesetz zur Vorratsdatenspeicherung zufolge jeder elektronische Kontakt mit mir sechs Monate lang gespeichert wird.] |