[maemo-users] [maemo-users] Using osso_iap_cb example
From: Brad Burleson bradb667 at gmail.comDate: Tue Jul 25 09:24:24 EEST 2006
- Previous message: [maemo-users] What has happend with ogg-vorbis in IT200&?
- Next message: [maemo-users] Using osso_iap_cb example
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I'm trying to capture the events generated when the 770 goes on and off-line, and I've written a simple test program just to mess around. The callback gets registered, but I never see any output from the callback. I suspect it's something simple. Anyone got any ideas? Thanks, Brad. /* * Simple test program to report changes in net work states * */ #include <unistd.h> #define DBUS_API_SUBJECT_TO_CHANGE #include <osso-ic.h> #include <hildon-widgets/hildon-program.h> #include <gtk/gtk.h> #include <libosso.h> static void iap_callback(struct iap_event_t *event, void *arg) { printf("something happened!!!\n"); } int main(int argc, char *argv[]) { /* Attempt to register callback */ if (osso_iap_cb(iap_callback) != OSSO_OK) { printf("osso_iap_cb failed.\n"); exit(1); } else printf("callback registered dude!\n"); printf("waiting...\n"); sleep(600); exit(0); } -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maemo.org/pipermail/maemo-users/attachments/20060724/ea3c9d35/attachment.htm
- Previous message: [maemo-users] What has happend with ogg-vorbis in IT200&?
- Next message: [maemo-users] Using osso_iap_cb example
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]