Tor  0.4.7.0-alpha-dev
Macros | Functions
pubsub_publish.c File Reference

Header for functions to publish using a pub_binding_t. More...

#include "orconfig.h"
#include "lib/dispatch/dispatch.h"
#include "lib/dispatch/dispatch_st.h"
#include "lib/pubsub/pub_binding_st.h"
#include "lib/pubsub/pubsub_publish.h"
#include "lib/malloc/malloc.h"
#include "lib/log/util_bug.h"
#include <string.h>

Go to the source code of this file.

Functions

int pubsub_pub_ (const pub_binding_t *pub, msg_aux_data_t auxdata)
 

Detailed Description

Header for functions to publish using a pub_binding_t.

Definition in file pubsub_publish.c.

Function Documentation

◆ pubsub_pub_()

int pubsub_pub_ ( const pub_binding_t pub,
msg_aux_data_t  auxdata 
)

Publish a message from the publication binding pub using the auxiliary data auxdata.

Return 0 on success, -1 on failure.

Definition at line 34 of file pubsub_publish.c.