net/mqtt: Add missing function prototypes

Some public function prototypes are missing, so this commit adds
them to the mqtt.h header.

Change-Id: I57a50ce346f086f55e499bfc8c815fd161a52f7b
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
This commit is contained in:
Flavio Santes 2016-12-15 23:15:58 -06:00 committed by Tomasz Bursztyka
parent edfaeba73d
commit ab042f2997

View file

@ -196,6 +196,14 @@ struct mqtt_ctx {
uint8_t connected:1;
};
/**
* @brief mqtt_init Initializes the MQTT context structure
* @param ctx MQTT context structure
* @param app_type See enum mqtt_app
* @return 0, always.
*/
int mqtt_init(struct mqtt_ctx *ctx, enum mqtt_app app_type);
/**
* @brief mqtt_tx_connect Sends the MQTT CONNECT message
* @param [in] ctx MQTT context structure
@ -386,4 +394,13 @@ int mqtt_rx_pingresp(struct mqtt_ctx *ctx, struct net_buf *rx);
*/
int mqtt_rx_suback(struct mqtt_ctx *ctx, struct net_buf *rx);
/**
* @brief mqtt_rx_unsuback Parses the MQTT UNSUBACK message
* @param [in] ctx MQTT context structure
* @param [in] rx RX buffer from the IP stack
* @return 0 on success
* @return -EINVAL on error
*/
int mqtt_rx_unsuback(struct mqtt_ctx *ctx, struct net_buf *rx);
#endif