After you & I talked on IRC earlier...
I've added dbus support to the logger, although I haven't actually tried it yet. It also defaults to disabled, but it does *build* on both OSX and Ubuntu 8.10.
Either enable ENABLE_DBUS through the UI [ccmake or cmake-gui], or if you're using cmake from the command-line, add -DENABLE_DBUS=On the same way you previously added the disable gui option
Look in src/logger/obddbus.c for what it's doing, but in lieu of getting my lexicon wrong again, I'll post you the salient code here:
Code:
msg = dbus_message_new_signal("/obd", "org.icculus.obdgpslogger", "value");
dbus_message_append_args (msg,
DBUS_TYPE_UINT32, &(cmd->cmdid), // PID
DBUS_TYPE_DOUBLE, &val, // Actual value
DBUS_TYPE_STRING, cmd->db_column, // Short name
DBUS_TYPE_STRING, cmd->human_name, // Long name
DBUS_TYPE_INVALID // Sentinel
);
As far as static ABIs go [as we'd also discussed], it'll be safe to rely on PID and value. The others are there as a courtesy and may change in future. [I mean, the others are *unlikely* to change, but at this stage I'm still not knowledgeable enough to guarantee it]
Lemme know how it works out,
Gary (-;
Bookmarks