Bug-AGL: SPEC-3524
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I80a7bac4244e62f49ab4bf068476ad4e888085f1
if(ret == AFB_REQ_NOT_STARTED_APPLICATION) {
std::string id = g_hs_instance->app_info->getAppProperty(value, _keyId);
HS_AfmMainProxy afm_proxy;
if(ret == AFB_REQ_NOT_STARTED_APPLICATION) {
std::string id = g_hs_instance->app_info->getAppProperty(value, _keyId);
HS_AfmMainProxy afm_proxy;
- afm_proxy.start(request, id);
+ afm_proxy.start(g_hs_instance, request, id);
if(ret == AFB_REQ_NOT_STARTED_APPLICATION) {
std::string id = g_hs_instance->app_info->getAppProperty(value, _keyId);
HS_AfmMainProxy afm_proxy;
if(ret == AFB_REQ_NOT_STARTED_APPLICATION) {
std::string id = g_hs_instance->app_info->getAppProperty(value, _keyId);
HS_AfmMainProxy afm_proxy;
- afm_proxy.start(request, id);
+ afm_proxy.start(g_hs_instance, request, id);
* limitations under the License.
*/
* limitations under the License.
*/
#include "hs-proxy.h"
const char _afm_main[] = "afm-main";
#include "hs-proxy.h"
const char _afm_main[] = "afm-main";
-void HS_AfmMainProxy::start(afb_req_t request, const std::string &id)
+void HS_AfmMainProxy::start(struct hs_instance *instance, afb_req_t request, const std::string &id)
{
struct json_object *args = json_object_new_string(id.c_str());
api_call(request->api, _afm_main, __FUNCTION__, args);
{
struct json_object *args = json_object_new_string(id.c_str());
api_call(request->api, _afm_main, __FUNCTION__, args);
-}
\ No newline at end of file
int detail(afb_api_t api, const std::string &id, struct json_object **object);
// asynchronous call, reply in callback function
int detail(afb_api_t api, const std::string &id, struct json_object **object);
// asynchronous call, reply in callback function
- void start(afb_req_t request, const std::string &id);
+ void start(struct hs_instance *hs_instance, afb_req_t request, const std::string &id);
-#endif // HOMESCREEN_PROXY_H
\ No newline at end of file
+#endif // HOMESCREEN_PROXY_H