pips_publication_get_topic()

Updated: April 19, 2023

Get the topic associated with a publication

Synopsis:

#include <pips/publication.h>
const pips_topic_t* pips_publication_get_topic(const pips_publication_t *const publication)

Arguments:

publication
A pointer to the publication whose topic is requested

Library:

pips-client

Description:

This function retrieves the topic instance that was associated with a publication when it was created. Each publication has a single associated topic.

Returns:

On success, a pointer to the instance of the associated topic. On error, NULL (errno is set).

Errors:

  • EINVAL: The publication instance is invalid.