Classes | Typedefs | Enumerations
watch.h File Reference
#include <sys/poll.h>
#include <sys/time.h>
#include <avahi-common/cdecl.h>
Include dependency graph for watch.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  AvahiPoll

Typedefs

typedef struct AvahiPoll AvahiPoll
typedef struct AvahiTimeout AvahiTimeout
typedef void(* AvahiTimeoutCallback )(AvahiTimeout *t, void *userdata)
typedef
typedefAVAHI_C_DECL_BEGIN
struct AvahiWatch 
AvahiWatch
typedef void(* AvahiWatchCallback )(AvahiWatch *w, int fd, AvahiWatchEvent event, void *userdata)

Enumerations

enum  AvahiWatchEvent { AVAHI_WATCH_IN = POLLIN, AVAHI_WATCH_OUT = POLLOUT, AVAHI_WATCH_ERR = POLLERR, AVAHI_WATCH_HUP = POLLHUP }

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 41 of file watch.h.

typedef struct AvahiTimeout AvahiTimeout

A timeout watch object

Definition at line 38 of file watch.h.

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

Called when the timeout is reached

Definition at line 55 of file watch.h.

typedef typedefAVAHI_C_DECL_BEGIN struct AvahiWatch AvahiWatch

An I/O watch object

Definition at line 35 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 52 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 44 of file watch.h.



pedal_monitor
Author(s): Pedro Mendes
autogenerated on Fri Jun 6 2014 18:37:22