-
Notifications
You must be signed in to change notification settings - Fork 2.4k
/
stubs.c
79 lines (63 loc) · 1.53 KB
/
stubs.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#include <stdlib.h>
#include <string.h>
#include "mosquitto_broker_internal.h"
#include "mosquitto_internal.h"
struct mosquitto *context__init(mosq_sock_t sock)
{
return NULL;
}
int db__message_store(const struct mosquitto *source, struct mosquitto_msg_store *stored, uint32_t message_expiry_interval, dbid_t store_id, enum mosquitto_msg_origin origin)
{
return 0;
}
void db__msg_store_ref_inc(struct mosquitto_msg_store *store)
{
}
int handle__packet(struct mosquitto *context)
{
return 0;
}
int log__printf(struct mosquitto *mosq, unsigned int level, const char *fmt, ...)
{
return 0;
}
FILE *mosquitto__fopen(const char *path, const char *mode, bool restrict_read)
{
return NULL;
}
enum mosquitto_client_state mosquitto__get_state(struct mosquitto *mosq)
{
return mosq_cs_new;
}
int mux__add_out(struct mosquitto *mosq)
{
return 0;
}
int mux__remove_out(struct mosquitto *mosq)
{
return 0;
}
ssize_t net__read(struct mosquitto *mosq, void *buf, size_t count)
{
return 0;
}
ssize_t net__write(struct mosquitto *mosq, const void *buf, size_t count)
{
return 0;
}
int retain__store(const char *topic, struct mosquitto_msg_store *stored, char **split_topics)
{
return 0;
}
int sub__add(struct mosquitto *context, const char *sub, uint8_t qos, uint32_t identifier, int options, struct mosquitto__subhier **root)
{
return 0;
}
int sub__messages_queue(const char *source_id, const char *topic, uint8_t qos, int retain, struct mosquitto_msg_store **stored)
{
return 0;
}
int keepalive__update(struct mosquitto *context)
{
return 0;
}