18#ifndef IOX_BINDING_C_PUBLISHER_H
19#define IOX_BINDING_C_PUBLISHER_H
21#include "iceoryx_binding_c/enums.h"
22#include "iceoryx_binding_c/internal/c2cpp_binding.h"
23#include "iceoryx_binding_c/service_description.h"
24#include "iceoryx_binding_c/types.h"
27typedef struct cpp2c_Publisher* iox_pub_t;
71 const char*
const service,
72 const char*
const instance,
73 const char*
const event,
78void iox_pub_deinit(iox_pub_t
const self);
88ENUM iox_AllocationResult iox_pub_loan_chunk(iox_pub_t
const self,
89 void**
const userPayload,
90 const uint32_t userPayloadSize);
99ENUM iox_AllocationResult iox_pub_loan_aligned_chunk(iox_pub_t
const self,
100 void**
const userPayload,
101 const uint32_t userPayloadSize,
102 const uint32_t userPayloadAlignment);
114ENUM iox_AllocationResult iox_pub_loan_aligned_chunk_with_user_header(iox_pub_t
const self,
115 void**
const userPayload,
116 const uint32_t userPayloadSize,
117 const uint32_t userPayloadAlignment,
118 const uint32_t userHeaderSize,
119 const uint32_t userHeaderAlignment);
124void iox_pub_release_chunk(iox_pub_t
const self,
void*
const userPayload);
129void iox_pub_publish_chunk(iox_pub_t
const self,
void*
const userPayload);
133void iox_pub_offer(iox_pub_t
const self);
137void iox_pub_stop_offer(iox_pub_t
const self);
142bool iox_pub_is_offered(iox_pub_t
const self);
147bool iox_pub_has_subscribers(iox_pub_t
const self);
options to be set for a publisher
Definition: publisher.h:31
const char * nodeName
Name of the node the publisher belongs to.
Definition: publisher.h:37
uint64_t initCheck
this value will be set exclusively by iox_pub_options_init and is not supposed to be modified otherwi...
Definition: publisher.h:46
ENUM iox_ConsumerTooSlowPolicy subscriberTooSlowPolicy
describes whether a publisher blocks when subscriber queue is full
Definition: publisher.h:43
bool offerOnCreate
The option whether the publisher should already be offered when creating it.
Definition: publisher.h:40
uint64_t historyCapacity
Size of the history chunk queue.
Definition: publisher.h:33
Definition: service_description.h:25