avahi  0.6.31
watch.h File Reference

Simplistic main loop abstraction. More...

#include <sys/poll.h>
#include <sys/time.h>
#include <avahi-common/cdecl.h>

Go to the source code of this file.

Data Structures

struct  AvahiPoll
 Defines an abstracted event polling API. More...
 

Typedefs

typedef struct AvahiWatch AvahiWatch
 An I/O watch object. More...
 
typedef struct AvahiTimeout AvahiTimeout
 A timeout watch object. More...
 
typedef struct AvahiPoll AvahiPoll
 An event polling abstraction object. More...
 
typedef void(* AvahiWatchCallback) (AvahiWatch *w, int fd, AvahiWatchEvent event, void *userdata)
 Called whenever an I/O event happens on an I/O watch. More...
 
typedef void(* AvahiTimeoutCallback) (AvahiTimeout *t, void *userdata)
 Called when the timeout is reached. More...
 

Enumerations

enum  AvahiWatchEvent {
  AVAHI_WATCH_IN = POLLIN,
  AVAHI_WATCH_OUT = POLLOUT,
  AVAHI_WATCH_ERR = POLLERR,
  AVAHI_WATCH_HUP = POLLHUP
}
 Type of watch events. More...
 

Detailed Description

Simplistic main loop abstraction.

Definition in file watch.h.

Typedef Documentation

typedef struct AvahiPoll AvahiPoll

An event polling abstraction object.

Definition at line 39 of file watch.h.

typedef struct AvahiTimeout AvahiTimeout

A timeout watch object.

Definition at line 36 of file watch.h.

typedef void(* AvahiTimeoutCallback) (AvahiTimeout *t, void *userdata)

Called when the timeout is reached.

Definition at line 53 of file watch.h.

typedef struct AvahiWatch AvahiWatch

An I/O watch object.

Definition at line 33 of file watch.h.

typedef void(* AvahiWatchCallback) (AvahiWatch *w, int fd, AvahiWatchEvent event, void *userdata)

Called whenever an I/O event happens on an I/O watch.

Definition at line 50 of file watch.h.

Enumeration Type Documentation

Type of watch events.

Enumerator
AVAHI_WATCH_IN 

Input event.

AVAHI_WATCH_OUT 

Output event.

AVAHI_WATCH_ERR 

Error event.

AVAHI_WATCH_HUP 

Hangup event.

Definition at line 42 of file watch.h.