pulsar-client-cpp
Loading...
Searching...
No Matches
message_id.h
1
20#pragma once
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#include <pulsar/defines.h>
27#include <stddef.h>
28#include <stdint.h>
29
30typedef struct _pulsar_message_id pulsar_message_id_t;
31
35PULSAR_PUBLIC const pulsar_message_id_t *pulsar_message_id_earliest();
36
40PULSAR_PUBLIC const pulsar_message_id_t *pulsar_message_id_latest();
41
45PULSAR_PUBLIC void *pulsar_message_id_serialize(pulsar_message_id_t *messageId, int *len);
46
50PULSAR_PUBLIC pulsar_message_id_t *pulsar_message_id_deserialize(const void *buffer, uint32_t len);
51
52PULSAR_PUBLIC char *pulsar_message_id_str(pulsar_message_id_t *messageId);
53
54PULSAR_PUBLIC void pulsar_message_id_free(pulsar_message_id_t *messageId);
55
56#ifdef __cplusplus
57}
58#endif