net: mqtt: add user_data in mqtt client

add user_data to mqtt client to store
application related info

Signed-off-by: Karthikeyan Krishnasamy <karthikeyan@linumiz.com>
This commit is contained in:
Karthikeyan Krishnasamy 2024-04-24 17:57:28 +05:30 committed by Anas Nashif
parent 6b159c1221
commit fc5ae0c165

View file

@ -558,6 +558,9 @@ struct mqtt_client {
* Default is CONFIG_MQTT_CLEAN_SESSION.
*/
uint8_t clean_session : 1;
/* Userdata */
void *user_data;
};
/**