pips_topic_get_type()

Updated: October 26, 2022

Get the type name of a topic

Synopsis:

#include <pips/publication.h>
const char* pips_topic_get_type(pips_topic_t *const topic)

Arguments:

topic
A pointer to the topic whose type name is requested

Library:

pips-client

Description:

This function gets the type name of the current topic. The type name is unique to the topic's provider, but different providers may have a topic with the same type name but different implementations.

Returns:

An immutable string containing the topic's type name. If the provider can't be retrieved, the function returns NULL and sets errno.

Errors:

  • EFAULT: The topic's type isn't set.
  • EINVAL: The topic is invalid.