MQTTUnsubscribe.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. #ifndef MQTTUNSUBSCRIBE_H_
  18. #define MQTTUNSUBSCRIBE_H_
  19. #if !defined(DLLImport)
  20. #define DLLImport
  21. #endif
  22. #if !defined(DLLExport)
  23. #define DLLExport
  24. #endif
  25. DLLExport int MQTTSerialize_unsubscribe(unsigned char* buf, int buflen, unsigned char dup, unsigned short packetid,
  26. int count, MQTTString topicFilters[]);
  27. DLLExport int MQTTDeserialize_unsubscribe(unsigned char* dup, unsigned short* packetid, int max_count, int* count, MQTTString topicFilters[],
  28. unsigned char* buf, int len);
  29. DLLExport int MQTTSerialize_unsuback(unsigned char* buf, int buflen, unsigned short packetid);
  30. DLLExport int MQTTDeserialize_unsuback(unsigned short* packetid, unsigned char* buf, int len);
  31. #endif /* MQTTUNSUBSCRIBE_H_ */