Posted to tcl by schelte at Thu Dec 16 14:00:26 GMT 2010view raw
- void DBus_ServeWatch(ClientData clientData, int mask)
- {
- DBus_ServerData *info = (DBus_ServerData *)clientData;
- DBusDispatchStatus status;
- char buf[1];
- printf("DBus_ServeWatch (mask=%d)\n", mask);
- (*pdbus_connection_read_write)(info->conn, 0);
- status = (*pdbus_connection_dispatch)(info->conn);
- printf("DBus_ServeWatch: status=%d\n", status);
- if (status == DBUS_DISPATCH_COMPLETE) {
- /*
- Tcl_Read(info->chan, buf, 0);
- */
- }
- return;
- }