yuezonghe | c78e2ef | 2025-02-13 17:57:46 -0800 | [diff] [blame^] | 1 | /******************************************************************************* |
| 2 | * Copyright (c) 2014 IBM Corp. |
| 3 | * |
| 4 | * All rights reserved. This program and the accompanying materials |
| 5 | * are made available under the terms of the Eclipse Public License v1.0 |
| 6 | * and Eclipse Distribution License v1.0 which accompany this distribution. |
| 7 | * |
| 8 | * The Eclipse Public License is available at |
| 9 | * http://www.eclipse.org/legal/epl-v10.html |
| 10 | * and the Eclipse Distribution License is available at |
| 11 | * http://www.eclipse.org/org/documents/edl-v10.php. |
| 12 | * |
| 13 | * Contributors: |
| 14 | * Ian Craggs - initial API and implementation and/or initial documentation |
| 15 | * Xiang Rong - 442039 Add makefile to Embedded C client |
| 16 | *******************************************************************************/ |
| 17 | |
| 18 | #ifndef MQTTSUBSCRIBE_H_ |
| 19 | #define MQTTSUBSCRIBE_H_ |
| 20 | |
| 21 | #if !defined(DLLImport) |
| 22 | #define DLLImport |
| 23 | #endif |
| 24 | #if !defined(DLLExport) |
| 25 | #define DLLExport |
| 26 | #endif |
| 27 | |
| 28 | DLLExport int32_t MQTTSerialize_subscribe(unsigned char* buf, int32_t buflen, unsigned char dup, unsigned short packetid, |
| 29 | int count, MQTTString topicFilters[], unsigned char requestedQoSs[]); |
| 30 | |
| 31 | DLLExport int32_t MQTTDeserialize_subscribe(unsigned char* dup, unsigned short* packetid, |
| 32 | int maxcount, int* count, MQTTString topicFilters[], unsigned char requestedQoSs[], unsigned char* buf, int32_t len); |
| 33 | |
| 34 | DLLExport int32_t MQTTSerialize_suback(unsigned char* buf, int32_t buflen, unsigned short packetid, int count, unsigned char* grantedQoSs); |
| 35 | |
| 36 | DLLExport int32_t MQTTDeserialize_suback(unsigned short* packetid, int maxcount, int* count, unsigned char grantedQoSs[], unsigned char* buf, int32_t len); |
| 37 | |
| 38 | |
| 39 | #endif /* MQTTSUBSCRIBE_H_ */ |