avahi-common/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.
typedef struct AvahiTimeout AvahiTimeout
 A timeout watch object.
typedef struct AvahiPoll AvahiPoll
 An event polling abstraction object.
typedef void(* AvahiWatchCallback )(AvahiWatch *w, int fd, AvahiWatchEvent event, void *userdata)
 Called whenever an I/O event happens on an I/O watch.
typedef void(* AvahiTimeoutCallback )(AvahiTimeout *t, void *userdata)
 Called when the timeout is reached.

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

typedef struct AvahiTimeout AvahiTimeout

A timeout watch object.

Examples:
client-publish-service.c, and glib-integration.c.

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 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.


Generated on Fri Dec 12 22:23:40 2008 for avahi by  doxygen 1.5.7.1