pps_Object_addToPollList()

Add an open PPS object to the specified poll list.

Synopsis:

#include <hnm/pps.h>
 
int pps_Object_addToPollList(pps_Object *pps_object, struct pollfd poll_list[], unsigned poll_list_size)

Arguments:

pps_object

A pointer to the structure that represents the PPS object's file descriptor to be added to the specified poll list.

poll_list

An array that represents the list of file descriptors to poll. The specified PPS object will be added to this list if possible.

poll_list_size

The size of the provided poll list. This represents the maximum number of file descriptors that can be added to the list.

Library:

libhnm

Description:

The pps_Object_addToPollList() function adds an open PPS object to the specified poll list and then updates the PPS object's poll_fd member to point to the poll entry that corresponds to the object. This allows the revents mask associated with the PPS object to be accessed directly via the object's structure.

Returns:

The index of the current structure in the poll list.