aboutsummaryrefslogtreecommitdiff
path: root/test/interop/testclient.h
diff options
context:
space:
mode:
authorOskari Timperi <oskari.timperi@iki.fi>2017-02-19 16:03:56 +0200
committerOskari Timperi <oskari.timperi@iki.fi>2017-02-19 16:03:56 +0200
commit8198f6d6beb3c8af3768236070089112c094b92e (patch)
tree7dcddfde2133850077ec8dc34bc9264fcb4e469a /test/interop/testclient.h
parente6e625ed6c1300e382a36b9ebef48336a55550e9 (diff)
downloadmqtt-8198f6d6beb3c8af3768236070089112c094b92e.tar.gz
mqtt-8198f6d6beb3c8af3768236070089112c094b92e.zip
Add MqttClientSubscribeMany() and make necessary API changes
Diffstat (limited to 'test/interop/testclient.h')
-rw-r--r--test/interop/testclient.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/interop/testclient.h b/test/interop/testclient.h
index 70805c6..2aa229b 100644
--- a/test/interop/testclient.h
+++ b/test/interop/testclient.h
@@ -29,7 +29,8 @@ struct TestClient
/* OnSubscribe */
int subId;
- MqttSubscriptionStatus subStatus;
+ MqttSubscriptionStatus subStatus[16];
+ int subCount;
/* OnPublish */
int pubId;
@@ -54,6 +55,9 @@ void TestClientDisconnect(TestClient *client);
int TestClientSubscribe(TestClient *client, const char *topicFilter, int qos);
+int TestClientSubscribeMany(TestClient *client, const char **topicFilter,
+ int *qos, size_t count);
+
int TestClientPublish(TestClient *client, int qos, int retain,
const char *topic, const char *message);