/src/mosquitto/apps/db_dump/stubs.c
Line | Count | Source |
1 | | #include <stdlib.h> |
2 | | #include <string.h> |
3 | | |
4 | | #include "mosquitto_broker_internal.h" |
5 | | #include "mosquitto_internal.h" |
6 | | #include "util_mosq.h" |
7 | | |
8 | | #ifndef UNUSED |
9 | | # define UNUSED(A) (void)(A) |
10 | | #endif |
11 | | |
12 | | struct mosquitto *context__init(void) |
13 | | { |
14 | | return NULL; |
15 | | } |
16 | | |
17 | | |
18 | | void context__add_to_by_id(struct mosquitto *context) |
19 | 0 | { |
20 | 0 | UNUSED(context); |
21 | 0 | } |
22 | | |
23 | | |
24 | | int db__message_store(const struct mosquitto *source, struct mosquitto__base_msg *base_msg, uint32_t *message_expiry_interval, enum mosquitto_msg_origin origin) |
25 | 305k | { |
26 | 305k | UNUSED(source); UNUSED(base_msg); UNUSED(message_expiry_interval); UNUSED(origin); return 0; |
27 | 305k | } |
28 | | |
29 | | |
30 | | void db__msg_store_ref_inc(struct mosquitto__base_msg *base_msg) |
31 | 402 | { |
32 | 402 | UNUSED(base_msg); |
33 | 402 | } |
34 | | |
35 | | |
36 | | int log__printf(struct mosquitto *mosq, unsigned int level, const char *fmt, ...) |
37 | 12.2M | { |
38 | 12.2M | UNUSED(mosq); UNUSED(level); UNUSED(fmt); return 0; |
39 | 12.2M | } |
40 | | |
41 | | |
42 | | int retain__store(const char *topic, struct mosquitto__base_msg *base_msg, char **split_topics, bool persist) |
43 | 0 | { |
44 | 0 | UNUSED(topic); UNUSED(base_msg); UNUSED(split_topics); UNUSED(persist); return 0; |
45 | 0 | } |
46 | | |
47 | | |
48 | | int sub__add(struct mosquitto *context, const struct mosquitto_subscription *sub) |
49 | 0 | { |
50 | 0 | UNUSED(context); UNUSED(sub); return 0; |
51 | 0 | } |
52 | | |
53 | | |
54 | | void db__msg_add_to_inflight_stats(struct mosquitto_msg_data *msg_data, struct mosquitto__client_msg *msg) |
55 | 0 | { |
56 | 0 | UNUSED(msg_data); UNUSED(msg); |
57 | 0 | } |
58 | | |
59 | | |
60 | | void db__msg_add_to_queued_stats(struct mosquitto_msg_data *msg_data, struct mosquitto__client_msg *msg) |
61 | 0 | { |
62 | 0 | UNUSED(msg_data); UNUSED(msg); |
63 | 0 | } |
64 | | |
65 | | |
66 | | int session_expiry__add_from_persistence(struct mosquitto *context, time_t expiry_time) |
67 | 0 | { |
68 | 0 | UNUSED(context); UNUSED(expiry_time); return 0; |
69 | 0 | } |