Updated: October 28, 2024 |
Create a topic from a fully qualified name
#include <pips/pips.h>
pips_topic_t* pips_provider_create_topic(pips_provider_t *provider, const char *path, const char *type_name, const char *opt_separator)
This function creates the named topic for the current provider. The topic's name is fully qualified, meaning it's given as a path relative to the root namespace and can enumerate sub-namespaces in which the topic can be created.
These namespaces are delineated from each other and the topic name using the specified separator string. If no such string is given, the entire path string is used as the topic name.
Any non-existent namespaces will be created by this function and owned by the provider.
On success, a handle to the newly created topic. The topic is then owned by the caller, who is responsible for freeing its memory. On error, NULL (errno is set).
Additional error codes may be set by the provider implementation.