read_handle.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. Copyright (c) 2010-2020 Roger Light <roger@atchoo.org>
  3. All rights reserved. This program and the accompanying materials
  4. are made available under the terms of the Eclipse Public License 2.0
  5. and Eclipse Distribution License v1.0 which accompany this distribution.
  6. The Eclipse Public License is available at
  7. https://www.eclipse.org/legal/epl-2.0/
  8. and the Eclipse Distribution License is available at
  9. http://www.eclipse.org/org/documents/edl-v10.php.
  10. SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
  11. Contributors:
  12. Roger Light - initial implementation and documentation.
  13. */
  14. #ifndef READ_HANDLE_H
  15. #define READ_HANDLE_H
  16. #include "mosquitto.h"
  17. struct mosquitto_db;
  18. int handle__pingreq(struct mosquitto *mosq);
  19. int handle__pingresp(struct mosquitto *mosq);
  20. #ifdef WITH_BROKER
  21. int handle__pubackcomp(struct mosquitto *mosq, const char *type);
  22. #else
  23. int handle__packet(struct mosquitto *mosq);
  24. int handle__connack(struct mosquitto *mosq);
  25. int handle__disconnect(struct mosquitto *mosq);
  26. int handle__pubackcomp(struct mosquitto *mosq, const char *type);
  27. int handle__publish(struct mosquitto *mosq);
  28. int handle__auth(struct mosquitto *mosq);
  29. #endif
  30. int handle__pubrec(struct mosquitto *mosq);
  31. int handle__pubrel(struct mosquitto *mosq);
  32. int handle__suback(struct mosquitto *mosq);
  33. int handle__unsuback(struct mosquitto *mosq);
  34. #endif