gint *timeout) {
const struct eclient_source *esource = (struct eclient_source *)source;
D(("gtkclient_prepare"));
- if(time(0) > esource->last_poll + 10)
+ if(xtime(0) > esource->last_poll + 10)
return TRUE; /* timed out */
*timeout = 3000/*milliseconds*/;
return FALSE; /* please poll */
mode |= DISORDER_POLL_READ;
if(revents & (G_IO_OUT|G_IO_HUP|G_IO_ERR))
mode |= DISORDER_POLL_WRITE;
- time(&esource->last_poll);
+ xtime(&esource->last_poll);
disorder_eclient_polled(esource->client, mode);
return TRUE; /* ??? not documented */
}