commit | 4a17932d6a090df49aeeec35458e439315a5c73f | [log] [tgz] |
---|---|---|
author | Flavio Santes <flavio.santes@intel.com> | Fri Jan 13 23:16:53 2017 -0600 |
committer | Jukka Rissanen <jukka.rissanen@linux.intel.com> | Fri Feb 03 15:59:18 2017 +0200 |
tree | 082f8ae99b8f0f7b3d9d4b88b35900dc931e7718 | |
parent | db6fda88353d01a624f61559f189fd779aad5809 [diff] |
net/mqtt: Simplify the MQTT high-level API 1) Remove some variables pointing to user-provided data. 2) Pass the context structure instead of those variables. 3) Homogenize the use of "ctx" for all the callbacks receiving the struct mqtt_ctx * pointer. Now users must use the CONTAINER_OF macro to access data required by the MQTT callbacks. Change-Id: I871c0bd8601a67b39187683215579f9ed0087cf9 Signed-off-by: Flavio Santes <flavio.santes@intel.com>