Changeset 948b942 for muxevents.c


Ignore:
Timestamp:
Mar 1, 2004, 10:44:43 PM (17 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
fe1f605
Parents:
afbf668
Message:
Print C-\ correctly (from gildea)
Dropped first brace in muxevents functions for consistency
File:
1 edited

Legend:

Unmodified
Added
Removed
  • muxevents.c

    rafbf668 r948b942  
    1313
    1414/* returns a handle id or 0 on failure */
    15 int owl_muxevents_add(owl_muxevents *muxevents, int fd, int eventmask, void (*handler_fn)(int handle, int fd, int eventmask, void *data), void *data) {
     15int owl_muxevents_add(owl_muxevents *muxevents, int fd, int eventmask, void (*handler_fn)(int handle, int fd, int eventmask, void *data), void *data)
     16{
    1617  owl_mux *mux;
    1718 
     
    3637
    3738/* deactivates a muxevent entry with the given handle */
    38 void owl_muxevents_remove(owl_muxevents *muxevents, int handle) {
     39void owl_muxevents_remove(owl_muxevents *muxevents, int handle)
     40{
    3941  int max, i;
    4042  owl_mux *m;
     
    5254/* cleans up a muxevents list at a safe time (ie, when it is
    5355   not being traversed). */
    54 void owl_muxevents_gc(owl_muxevents *muxevents) {
     56void owl_muxevents_gc(owl_muxevents *muxevents)
     57{
    5558  int max, i, done=0;
    5659  owl_mux *m;
     
    7376
    7477/* dispatches out events */
    75 void owl_muxevents_dispatch(owl_muxevents *muxevents, int timeout_usec) {
     78void owl_muxevents_dispatch(owl_muxevents *muxevents, int timeout_usec)
     79{
    7680  int nevents, i, rv, emask;
    7781  owl_mux *m;
     
    124128  owl_muxevents_gc(muxevents);
    125129}
    126 
    127 
Note: See TracChangeset for help on using the changeset viewer.