pkg_check_modules(pkgs REQUIRED glib-2.0 gthread-2.0 gobject-2.0 gmodule-2.0
capi-appfw-app-manager capi-appfw-package-manager pkgmgr-info
- dlog vconf json-glib-1.0 bundle eventsystem ${PRIVACY_PKG})
+ dlog vconf json-glib-1.0 bundle eventsystem libtzplatform-config ${PRIVACY_PKG})
FOREACH(flag ${pkgs_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
#define MAX_BATCH_ITEM 8
#define BATCH_SENTENCE_SIZE 256
-#define BATCH_LOG "/opt/usr/media/lbs-server/location_batch.log"
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
+#include <tzplatform_config.h>
#include "location-batch.h"
#include "location-log.h"
LocationBatch *batch = location_batch_new(num_of_location);
batch->num_of_location = num_of_location;
- FILE *fd = fopen(BATCH_LOG, "r");
+ const char *batch_path = tzplatform_mkpath(TZ_USER_CONTENT, "lbs-server/location_batch.log");
+ FILE *fd = fopen(batch_path, "r");
if (fd != NULL) {
char buf[BATCH_SENTENCE_SIZE] = { 0, };
int i = 0;
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(bundle)
BuildRequires: pkgconfig(eventsystem)
+BuildRequires: pkgconfig(libtzplatform-config)
%description
Location Based Service Library
#include <string.h>
#include <stdlib.h>
#include <glib/gprintf.h>
+#include <tzplatform_config.h>
#include <location.h>
#include "location-api-test-util.h"
LocationObject *location_obj = NULL;
static GMainLoop *g_mainloop = NULL;
-#define LOCATION_API_TEST_JSON_FILE "/opt/data/location-api-test.json"
-
static gpointer GmainThread(gpointer data)
{
g_mainloop = g_main_loop_new(NULL, FALSE);
return 0;
}
- json_util_init(LOCATION_API_TEST_JSON_FILE);
+ const char *json_path = tzplatform_mkpath(TZ_SYS_DATA, "location-api-test.json");
+ json_util_init(json_path);
g_printf("--- Start LBS Test App ---\n");
while (1) {
print_menu();
LocationMapObject *map_obj = NULL;
static GMainLoop *g_mainloop = NULL;
-#define LOCATION_API_TEST_JSON_FILE "/opt/data/location-api-test.json"
-
static gpointer GmainThread(gpointer data)
{
g_mainloop = g_main_loop_new(NULL, FALSE);