pips_group_member_set_data()

Updated: April 19, 2023

Set the user data for a group member

Synopsis:

#include <pips/publication.h>
int pips_group_member_set_data(pips_group_member_t *const member,
                               void *const data)

Arguments:

member
A pointer to the group member to associate the data with
data
A pointer to the user data to associate with the member. The data is borrowed by the member, so its ownership is retained by the caller and it won't be deleted by the member.

Library:

pips-client

Description:

This function associates the given user data with the current group member. The data previously associated with the member may be lost. To clear the user data, set the data argument to NULL.

Returns:

EOK
The data was successfully associated with the member
-1
An error occured (errno is set)

Errors:

  • EINVAL: The group member is invalid.