undecelared identifiers ? what is missing ?

undecelared identifiers ? what is missing ?

BY 27 Nov 2016 Native Application Development

The below code is not compiling. I get – use of undeclared identifier ‘APP_CONTROL_OPERATION_SETTING’.

Now where the hell is this deceleration in ? Which include am missing ?


#include <app_control.h>

 

static int
launch_setting(void)//might no be required
{
   int ret = 0;
   app_control_h service = NULL;
   app_control_create(&service);

   if (service == NULL)
   {
      dlog_print(DLOG_INFO, LOG_TAG, “Failed to create app control handler”);

      return -1;
   }

   app_control_set_operation(service, APP_CONTROL_OPERATION_SETTING);

   ret = app_control_send_launch_request(service, NULL, NULL);
   app_control_destroy(service);

   if (ret == APP_CONTROL_ERROR_NONE)
   {
      dlog_print(DLOG_INFO, LOG_TAG, “Succeeded to launch settings!\n”);

      return 0;
   }
   else
   {
      dlog_print(DLOG_INFO, LOG_TAG, “Failed to launch settings!\n”);

      return -1;
   }

   return 0;
}

 

Aashish

Written by