IN: Identifier of packet table whose index is to be set.
IN: The packet to which the index should point.
Each packet table keeps an index of the "current" packet so that get_next can iterate through the packets in order. H5PTset_index sets this index to point to a user-specified packet (the packets are zero-indexed).
Returns a non-negative value if successful, otherwise returns a negative value.