Changeset b7bb454 for owl.h


Ignore:
Timestamp:
Dec 6, 2008, 5:39:49 PM (16 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
7ce4003
Parents:
3ea31b6
git-author:
Nelson Elhage <nelhage@mit.edu> (12/06/08 17:36:19)
git-committer:
Nelson Elhage <nelhage@mit.edu> (12/06/08 17:39:49)
Message:
Make owl_timer have a callback and integrate into the select() loop.

Soon we should add support for registering timers from perl, and then
we can eventually remove the perl mainloop hook.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.h

    rde1c8a5 rb7bb454  
    505505
    506506typedef struct _owl_timer {
    507   int direction;
    508   time_t starttime;
    509   int start;
     507  time_t time;
     508  int interval;
     509  void (*callback)(struct _owl_timer *, void *);
     510  void *data;
    510511} owl_timer;
    511512
     
    583584  owl_timer aim_noop_timer;
    584585  owl_timer aim_ignorelogin_timer;
    585   owl_timer aim_buddyinfo_timer;
    586586  int aim_loggedin;         /* true if currently logged into AIM */
    587587  int aim_doprocessing;     /* true if we should process AIM events (like pending login) */
     
    594594  int havezephyr;
    595595  int haveaim;
     596  int ignoreaimlogin;
    596597  int got_err_signal;       /* 1 if we got an unexpected signal */
    597598  siginfo_t err_signal_info;
     
    601602  owl_obarray obarray;
    602603  owl_list dispatchlist;
     604  GSequence *timerlist;
     605  owl_timer *aim_nop_timer;
    603606} owl_global;
    604607
Note: See TracChangeset for help on using the changeset viewer.