Changeset df0138f for owl.h


Ignore:
Timestamp:
Oct 27, 2009, 12:41:09 AM (12 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
ffc4df6
Parents:
f9d257b
git-author:
Alejandro R. Sedeño <asedeno@mit.edu> (10/20/09 20:20:12)
git-committer:
Alejandro R. Sedeño <asedeno@mit.edu> (10/27/09 00:41:09)
Message:
Add a new I/O Dispatch API

Signed-off-by: Alejandro R. Sedeño <asedeno@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.h

    r6337cb5 rdf0138f  
    105105#define OWL_MESSAGE_DIRECTION_OUT   2
    106106
    107 #define OWL_MUX_READ   1
    108 #define OWL_MUX_WRITE  2
    109 #define OWL_MUX_EXCEPT 4
     107#define OWL_IO_READ   1
     108#define OWL_IO_WRITE  2
     109#define OWL_IO_EXCEPT 4
    110110
    111111#define OWL_DIRECTION_NONE      0
     
    508508  void *data;
    509509} owl_dispatch;
     510
     511typedef struct _owl_io_dispatch {
     512  int fd;                                     /* FD to watch for dispatch. */
     513  int mode;
     514  int needs_gc;
     515  void (*callback)(const struct _owl_io_dispatch *, void *); /* C function to dispatch to. */
     516  void (*destroy)(const struct _owl_io_dispatch *);  /* Destructor */
     517  void *data;
     518} owl_io_dispatch;
    510519
    511520typedef struct _owl_ps_action {
     
    595604  owl_obarray obarray;
    596605  owl_list dispatchlist;
     606  owl_list io_dispatch_list;
    597607  owl_list psa_list;
    598608  GList *timerlist;
Note: See TracChangeset for help on using the changeset viewer.