Updated: April 19, 2023 |
Delete a publication
#include <pips/publication.h>
int pips_delete_publication(pips_publication_t **publication)
This function cleans up any resources allocated to the given publication, then deletes the publication itself. These resources include those allocated by the provider to support publish-subscribe communication on the associated middleware.
This function does not, however, delete the topic associated with the publication. This can be done by calling pips_delete_topic().
The publication must have been allocated using one of the PiPS publication creation functions. Otherwise, the cleanup may be incomplete or cause undefined behavior.
Additional error codes may be set by the provider implementation.