libSystem Reference Manual: Event

## Event Event |

## Functions

int | (*EventIOFunc) ()
int | (*EventTimeoutFunc) ()
Event * | event_new ()
void | event_delete ()
int | event_loop ()
void | event_loop_quit ()
int | event_register_idle ()
int | event_register_io_read ()
int | event_register_io_write ()
int | event_register_timeout ()
int | event_unregister_io_read ()
int | event_unregister_io_write ()
int | event_unregister_timeout ()

## Types and Values

| Event

## Description

## Functions

### EventIOFunc ()

    int
    (*EventIOFunc) (int fd,
                    void *data);

#### Returns

### EventTimeoutFunc ()

    int
    (*EventTimeoutFunc) (void *data);

#### Returns

### event_new ()

    Event *
    event_new (void);

#### Returns

### event_delete ()

    void
    event_delete (Event *event);

### event_loop ()

    int
    event_loop (Event *event);

#### Returns

### event_loop_quit ()

    void
    event_loop_quit (Event *event);

### event_register_idle ()

    int
    event_register_idle (Event *event,
                         EventTimeoutFunc func,
                         void *userdata);

#### Returns

### event_register_io_read ()

    int
    event_register_io_read (Event *event,
                            int fd,
                            EventIOFunc func,
                            void *userdata);

#### Returns

### event_register_io_write ()

    int
    event_register_io_write (Event *event,
                             int fd,
                             EventIOFunc func,
                             void *userdata);

#### Returns

### event_register_timeout ()

    int
    event_register_timeout (Event *event,
                            struct timeval *timeout,
                            EventTimeoutFunc func,
                            void *userdata);

#### Returns

### event_unregister_io_read ()

    int
    event_unregister_io_read (Event *event,
                              int fd);

#### Returns

### event_unregister_io_write ()

    int
    event_unregister_io_write (Event *event,
                               int fd);

#### Returns

### event_unregister_timeout ()

    int
    event_unregister_timeout (Event *event,
                              EventTimeoutFunc func);

#### Returns

## Types and Values

### Event

    typedef struct _Event Event;