sangoma_wait_obj_t Struct Reference

Sangoma wait object structure. Used to setup a poll on a specific device. More...

#include <libsangoma.h>

List of all members.

Public Attributes

sng_fd_t fd
uint32_t flags_in
uint32_t timeout
uint32_t object_type
uint32_t flags_out
uint32_t span
uint32_t chan


Detailed Description

Sangoma wait object structure. Used to setup a poll on a specific device.

This structure is used by sangoma_socket_waitfor_many() function. This structure is initialized by sangoma_init_wait_obj() function.

Definition at line 260 of file libsangoma.h.


Member Data Documentation

sng_fd_t sangoma_wait_obj_t::fd

file descriptor of a device

Definition at line 267 of file libsangoma.h.

Referenced by sangoma_init_wait_obj(), and sangoma_release_wait_obj().

uint32_t sangoma_wait_obj_t::flags_in

poll flags use to configure system for polling on read/write/event

Definition at line 269 of file libsangoma.h.

Referenced by sangoma_init_wait_obj().

uint32_t sangoma_wait_obj_t::timeout

timeout in miliseconds in case of no event

Definition at line 271 of file libsangoma.h.

Referenced by sangoma_init_wait_obj().

uint32_t sangoma_wait_obj_t::object_type

type of the object to wait on. can be one of two: UNKNOWN_WAIT_OBJ and SANGOMA_WAIT_OBJ

Definition at line 281 of file libsangoma.h.

Referenced by sangoma_init_wait_obj(), sangoma_release_wait_obj(), and sangoma_socket_waitfor_many().

uint32_t sangoma_wait_obj_t::flags_out

poll flags returned to user indicating what event occoured read/write/event

Definition at line 288 of file libsangoma.h.

uint32_t sangoma_wait_obj_t::span

span number used for debugging, when printing span associated with event

Definition at line 290 of file libsangoma.h.

Referenced by sangoma_init_wait_obj().

uint32_t sangoma_wait_obj_t::chan

chan number used for debugging, when printing chan associated with event

Definition at line 292 of file libsangoma.h.

Referenced by sangoma_init_wait_obj().


The documentation for this struct was generated from the following file:
Generated on Wed Dec 17 15:49:30 2008 for sample_c by  doxygen 1.4.7