AM_INIT_AUTOMAKE([1.10.2 foreign -Wall -Werror])
# Check programs for making executable
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_INSTALL
location-satellite.c \\r
location-signaling-util.c \\r
location-common-util.c \\r
- location-gps.c \\r
- location-wps.c \\r
- location-cps.c \\r
+ location-gps.c \\r
+ location-wps.c \\r
+ location-cps.c \\r
location-hybrid.c\r
\r
liblocation_manager_la_CFLAGS = \\r
}
static int
-comp_int(int a, int b){
+comp_int(int a, int b)
+{
if (a < b) return -1;
if (a == b) return 0;
return 1;
}
static int
-comp_double_reverse(double a, double b) {
- if (a > b) return -1;
- else if (a == b) return 0;
- return 1;
+comp_double_reverse(double a, double b)
+{
+ if (a > b) return -1;
+ else if (a == b) return 0;
+ return 1;
}
int
{
g_return_val_if_fail(accuracy, NULL);
return location_accuracy_new(accuracy->level,
- accuracy->horizontal_accuracy,
- accuracy->vertical_accuracy);
+ accuracy->horizontal_accuracy,
+ accuracy->vertical_accuracy);
}
location_position_free(position);
}
-
EXPORT_API LocationBoundary *
location_boundary_new_for_rect (LocationPosition* left_top,
LocationPosition* right_bottom)
#include "location-setting.h"
#include "location-log.h"
-
int location_application_get_authority (void)
{
pid_t pid = getpid();
return LOCATION_ERROR_NONE;
}
-
int set_prop_removal_boundary(GList **prev_boundary_list, LocationBoundary* boundary)
{
g_return_val_if_fail(*prev_boundary_list, LOCATION_ERROR_PARAMETER);
if (check_list) {
LOCATION_LOGD("Found");
*prev_boundary_list = g_list_delete_link(*prev_boundary_list, check_list);
- g_slice_free(LocationBoundaryPrivate, remove_priv);
}
if (g_list_length(*prev_boundary_list) == 0 ) {
location_boundary_free(priv->boundary);
g_slice_free(LocationBoundaryPrivate, priv);
}
-
static guint32 signals[LAST_SIGNAL] = {0, };
static GParamSpec *properties[PROP_MAX] = {NULL, };
-
#define GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), LOCATION_TYPE_CPS, LocationCpsPrivate))
static void location_ielement_interface_init (LocationIElementInterface *iface);
G_DEFINE_TYPE_WITH_CODE (LocationCps, location_cps, G_TYPE_OBJECT,
- G_IMPLEMENT_INTERFACE (LOCATION_TYPE_IELEMENT,
- location_ielement_interface_init));
+ G_IMPLEMENT_INTERFACE (LOCATION_TYPE_IELEMENT,
+ location_ielement_interface_init));
static gboolean
_position_timeout_cb (gpointer data)
if (priv->pos) {
pos = location_position_copy(priv->pos);
- }
- else {
+ } else {
pos = location_position_new (0, 0.0, 0.0, 0.0, LOCATION_STATUS_NO_FIX);
}
if (priv->acc) {
acc = location_accuracy_copy (priv->acc);
- }
- else {
+ } else {
acc = location_accuracy_new (LOCATION_ACCURACY_LEVEL_NONE, 0.0, 0.0);
}
if (priv->vel) {
vel = location_velocity_copy(priv->vel);
- }
- else {
+ } else {
vel = location_velocity_new (0, 0.0, 0.0, 0.0);
}
if (priv->acc) {
acc = location_accuracy_copy (priv->acc);
- }
- else {
+ } else {
acc = location_accuracy_new (LOCATION_ACCURACY_LEVEL_NONE, 0.0, 0.0);
}
__reset_pos_data_from_priv(priv);
}
}
- }
- else {
+ } else {
if (1 == location_setting_get_int (VCONFKEY_LOCATION_NETWORK_ENABLED) && priv->mod->ops.start && !priv->is_started) {
LOCATION_LOGD("location resumed by setting");
ret = priv->mod->ops.start (priv->mod->handler, cps_status_cb, cps_position_ext_cb, NULL, self);
switch (property_id) {
case PROP_BOUNDARY:{
GList *boundary_list = (GList *)g_list_copy(g_value_get_pointer(value));
- ret = set_prop_boundary(&priv->boundary_list, boundary_list);
+ ret = set_prop_boundary(&priv->boundary_list, boundary_list);
if(ret != 0) LOCATION_LOGD("Set boundary. Error[%d]", ret);
break;
}
priv->pos_interval = interval;
else
priv->pos_interval = (guint) LOCATION_UPDATE_INTERVAL_MAX;
- }
- else {
+ } else {
priv->pos_interval = (guint) LOCATION_UPDATE_INTERVAL_DEFAULT;
}
priv->vel_interval = interval;
else
priv->vel_interval = (guint)LOCATION_UPDATE_INTERVAL_MAX;
- }
- else
+ } else
priv->vel_interval = (guint)LOCATION_UPDATE_INTERVAL_DEFAULT;
if (priv->vel_timer) {
if (priv->is_started == TRUE) return LOCATION_ERROR_NONE;
- int ret = LOCATION_ERROR_NONE;
+ int ret = LOCATION_ERROR_NOT_AVAILABLE;
if (!location_setting_get_int (VCONFKEY_LOCATION_NETWORK_ENABLED)) {
ret = LOCATION_ERROR_SETTING_OFF;
- }
- else {
+ } else {
ret = priv->mod->ops.start (priv->mod->handler, cps_status_cb, cps_position_ext_cb, NULL, self);
if (ret == LOCATION_ERROR_NONE) {
priv->is_started = TRUE;
return ret;
}
-
static int
location_cps_get_last_position (LocationCps *self,
LocationPosition **position,
{
LOCATION_LOGD("location_cps_get_last_position");
- /* Do not need to check GPS_ENABLED and NETWORK_ENABLED */
-
LocationCpsPrivate *priv = GET_PRIVATE(self);
g_return_val_if_fail (priv->mod, LOCATION_ERROR_NOT_AVAILABLE);
- LocationError ret = LOCATION_ERROR_NONE;
+ int ret = LOCATION_ERROR_NONE;
LocationVelocity *_velocity = NULL;
LocModCpsOps ops = priv->mod->ops;
g_return_val_if_fail (ops.get_last_position, LOCATION_ERROR_NOT_AVAILABLE);
ret = ops.get_last_position (priv->mod->handler, position, &_velocity, accuracy);
- if (!_velocity) location_velocity_free (_velocity);
+ if (_velocity) location_velocity_free(_velocity);
return ret;
}
LocationVelocity **velocity,
LocationAccuracy **accuracy)
{
- LOCATION_LOGD("location_cps_get_last_position");
-
- /* Do not need to check GPS_ENABLED and NETWORK_ENABLED */
+ LOCATION_LOGD("location_cps_get_last_position_ext");
LocationCpsPrivate *priv = GET_PRIVATE(self);
g_return_val_if_fail (priv->mod, LOCATION_ERROR_NOT_AVAILABLE);
- LocationError ret = LOCATION_ERROR_NONE;
-
LocModCpsOps ops = priv->mod->ops;
g_return_val_if_fail (priv->mod->handler, LOCATION_ERROR_NOT_AVAILABLE);
g_return_val_if_fail (ops.get_last_position, LOCATION_ERROR_NOT_AVAILABLE);
return ops.get_last_position (priv->mod->handler, position, velocity, accuracy);
}
-
static int
location_cps_get_velocity (LocationCps *self,
LocationVelocity **velocity,
g_object_class_install_properties (gobject_class,
PROP_MAX,
properties);
-
}
if (priv->pos) {
pos = location_position_copy(priv->pos);
- }
- else {
+ } else {
pos = location_position_new (0, 0.0, 0.0, 0.0, LOCATION_STATUS_NO_FIX);
}
if (priv->acc) {
acc = location_accuracy_copy (priv->acc);
- }
- else {
+ } else {
acc = location_accuracy_new (LOCATION_ACCURACY_LEVEL_NONE, 0.0, 0.0);
}
if (priv->vel) {
vel = location_velocity_copy(priv->vel);
- }
- else {
+ } else {
vel = location_velocity_new (0, 0.0, 0.0, 0.0);
}
if (priv->acc) {
acc = location_accuracy_copy (priv->acc);
- }
- else {
+ } else {
acc = location_accuracy_new (LOCATION_ACCURACY_LEVEL_NONE, 0.0, 0.0);
}
if (location_setting_get_key_val(key) == VCONFKEY_LOCATION_GPS_SEARCHING) {
if (!priv->pos_timer) priv->pos_timer = g_timeout_add (priv->pos_interval * 1000, _position_timeout_cb, self);
if (!priv->vel_timer) priv->vel_timer = g_timeout_add (priv->vel_interval * 1000, _velocity_timeout_cb, self);
- }
- else {
+ } else {
if (priv->pos_timer) g_source_remove (priv->pos_timer);
if (priv->vel_timer) g_source_remove (priv->vel_timer);
priv->pos_timer = 0;
priv->is_started = FALSE;
__reset_pos_data_from_priv(priv);
}
- }
- else if (1 == location_setting_get_key_val(key) && priv->mod->ops.start && !priv->is_started) {
+ } else if (1 == location_setting_get_key_val(key) && priv->mod->ops.start && !priv->is_started) {
LOCATION_LOGD("location resumed by setting");
ret = priv->mod->ops.start (priv->mod->handler, gps_status_cb, gps_position_ext_cb, gps_satellite_cb, self);
if (ret == LOCATION_ERROR_NONE) {
if (!location_setting_get_int(VCONFKEY_LOCATION_ENABLED)) {
ret = LOCATION_ERROR_SETTING_OFF;
- }
- else {
+ } else {
ret = priv->mod->ops.start (priv->mod->handler, gps_status_cb, gps_position_ext_cb, gps_satellite_cb, self);
if (ret == LOCATION_ERROR_NONE) {
priv->is_started = TRUE;
- }
- else {
+ } else {
return ret;
}
}
int ret = LOCATION_ERROR_NONE;
- if ( priv->is_started == TRUE) {
+ if (priv->is_started == TRUE) {
ret = priv->mod->ops.stop (priv->mod->handler);
if (ret == LOCATION_ERROR_NONE) {
priv->is_started = FALSE;
- }
- else {
+ } else {
LOCATION_LOGD("Failed to stop. Error[%d]", ret);
}
}
location_setting_ignore_notify (VCONFKEY_LOCATION_GPS_STATE, location_setting_search_cb);
priv->set_noti = FALSE;
}
-
}
static void
return ret;
}
-
static int
location_gps_get_last_position (LocationGps *self,
LocationPosition **position,
LocationAccuracy **accuracy)
{
LOCATION_LOGD("location_gps_get_last_position");
- // Enable to get a last position even though GPS_ENABLE dose not set on
LocationGpsPrivate *priv = GET_PRIVATE (self);
g_return_val_if_fail (priv->mod, LOCATION_ERROR_NOT_AVAILABLE);
- LocationError ret = LOCATION_ERROR_NOT_AVAILABLE;
+ int ret = LOCATION_ERROR_NONE;
LocationVelocity *_velocity = NULL;
LocModGpsOps ops = priv->mod->ops;
g_return_val_if_fail (priv->mod->handler, LOCATION_ERROR_NOT_AVAILABLE);
g_return_val_if_fail (ops.get_last_position, LOCATION_ERROR_NOT_AVAILABLE);
ret = ops.get_last_position(priv->mod->handler, position, &_velocity, accuracy);
-
- if (!_velocity) return LOCATION_ERROR_NOT_AVAILABLE;
+ if (_velocity) location_velocity_free(_velocity);
return ret;
}
LocationVelocity **velocity,
LocationAccuracy **accuracy)
{
- LOCATION_LOGD("location_gps_get_last_position");
- // Enable to get a last position even though GPS_ENABLE dose not set on
+ LOCATION_LOGD("location_gps_get_last_position_ext");
LocationGpsPrivate *priv = GET_PRIVATE (self);
g_return_val_if_fail (priv->mod, LOCATION_ERROR_NOT_AVAILABLE);
g_return_val_if_fail (priv->mod->handler, LOCATION_ERROR_NOT_AVAILABLE);
g_return_val_if_fail (ops.get_last_position, LOCATION_ERROR_NOT_AVAILABLE);
return ops.get_last_position(priv->mod->handler, position, velocity, accuracy);
-
}
g_return_val_if_fail (priv->mod, LOCATION_ERROR_NOT_AVAILABLE);
setting_retval_if_fail(VCONFKEY_LOCATION_ENABLED);
- LocationError ret = LOCATION_ERROR_NONE;
+ int ret = LOCATION_ERROR_NONE;
LocationPosition *_position = NULL;
LocModGpsOps ops = priv->mod->ops;
g_return_val_if_fail (priv->mod->handler, LOCATION_ERROR_NOT_AVAILABLE);
g_return_val_if_fail (ops.get_last_position, LOCATION_ERROR_NOT_AVAILABLE);
ret = ops.get_last_position(priv->mod->handler, &_position, velocity, accuracy);
- if (!_position) return LOCATION_ERROR_NOT_AVAILABLE;
+ if (_position) location_position_free(_position);
return ret;
}
priv->pos_timer = 0;
priv->vel_timer = 0;
-
}
static void
g_object_class_install_properties (gobject_class,
PROP_MAX,
properties);
-
}
#include <glib-object.h>
-
/**
* @file location-gps.h
* @brief This file contains the internal definitions and structures related to GPS.
{
LOCATION_LOGD("location_hybrid_start");
- int ret_gps = LOCATION_ERROR_NONE;
- int ret_wps = LOCATION_ERROR_NONE;
+ int ret_gps = LOCATION_ERROR_NOT_AVAILABLE;
+ int ret_wps = LOCATION_ERROR_NOT_AVAILABLE;
LocationHybridPrivate* priv = GET_PRIVATE(self);
if (priv->is_started == TRUE)
return LOCATION_ERROR_NONE;
- if(priv->gps) ret_gps = location_start(priv->gps);
- if(priv->wps) ret_wps = location_start(priv->wps);
+ if (priv->gps) ret_gps = location_start(priv->gps);
+ if (priv->wps) ret_wps = location_start(priv->wps);
- if (ret_gps != LOCATION_ERROR_NONE &&
- ret_wps != LOCATION_ERROR_NONE) {
- if (ret_gps == LOCATION_ERROR_SECURITY_DENIED ||
- ret_wps == LOCATION_ERROR_SECURITY_DENIED) {
+ if (ret_gps != LOCATION_ERROR_NONE && ret_wps != LOCATION_ERROR_NONE) {
+ if (ret_gps == LOCATION_ERROR_SECURITY_DENIED || ret_wps == LOCATION_ERROR_SECURITY_DENIED) {
return LOCATION_ERROR_SECURITY_DENIED;
} else if (ret_gps == LOCATION_ERROR_SETTING_OFF && ret_wps == LOCATION_ERROR_SETTING_OFF) {
return LOCATION_ERROR_SETTING_OFF;
priv->set_noti = TRUE;
}
-
return LOCATION_ERROR_NONE;
}
LOCATION_LOGD("location_hybrid_stop");
LocationHybridPrivate* priv = GET_PRIVATE(self);
- if( priv->is_started == FALSE)
+ if (priv->is_started == FALSE)
return LOCATION_ERROR_NONE;
- int ret_gps = LOCATION_ERROR_NONE;
- int ret_wps = LOCATION_ERROR_NONE;
+ int ret_gps = LOCATION_ERROR_NOT_AVAILABLE;
+ int ret_wps = LOCATION_ERROR_NOT_AVAILABLE;
- if(priv->gps) ret_gps = location_stop(priv->gps);
- if(priv->wps) ret_wps = location_stop(priv->wps);
+ if (priv->gps) ret_gps = location_stop(priv->gps);
+ if (priv->wps) ret_wps = location_stop(priv->wps);
priv->is_started = FALSE;
- if (ret_gps != LOCATION_ERROR_NONE &&
- ret_wps != LOCATION_ERROR_NONE)
+ if (ret_gps != LOCATION_ERROR_NONE && ret_wps != LOCATION_ERROR_NONE)
return LOCATION_ERROR_NOT_AVAILABLE;
if (priv->pos_timer) g_source_remove (priv->pos_timer);
return ret;
}
-
static int
location_hybrid_get_velocity (LocationHybrid *self,
LocationVelocity **velocity,
int ret = LOCATION_ERROR_NONE;
LocationHybridPrivate *priv = GET_PRIVATE (self);
- if (priv->gps) ret = location_get_last_satellite (priv->gps, satellite);
- else {
+ if (priv->gps) {
+ ret = location_get_last_satellite (priv->gps, satellite);
+ } else {
*satellite = NULL;
ret = LOCATION_ERROR_NOT_AVAILABLE;
}
g_object_class_install_properties (gobject_class,
PROP_MAX,
properties);
-
}
{
g_return_val_if_fail(path, -1);
int val = -1;
- if( vconf_get_int(path, &val)){
+ if(vconf_get_int(path, &val)){
LOCATION_LOGW("vconf_get_int: failed [%s]", path);
- val = -1;
} else if (val == 0)
LOCATION_LOGD("vconf_get_int: [%s]:[%d]", path, val);
return val;
{
g_return_val_if_fail(path, -1);
gboolean val = FALSE;
- if( vconf_get_bool(path, &val)){
+ if(vconf_get_bool(path, &val)){
LOCATION_LOGW("vconf_get_int: failed [%s]", path);
- val = FALSE;
}
return val;
}
g_return_val_if_fail(path, -1);
g_return_val_if_fail(self, -1);
- if( vconf_notify_key_changed(path, setting_cb, self)){
+ if(vconf_notify_key_changed(path, setting_cb, self)){
LOCATION_LOGW("vconf notify add failed [%s]", path);
return -1;
}
g_return_val_if_fail(path, -1);
g_return_val_if_fail(setting_cb, -1);
- if( vconf_ignore_key_changed(path, setting_cb)){
+ if(vconf_ignore_key_changed(path, setting_cb)){
LOCATION_LOGW("vconf notify remove failed [%s]", path);
return -1;
}
gint location_setting_ignore_notify(const gchar* path, SettingCB setting_cb);
#define setting_retval_if_fail(path) {\
- if(!location_setting_get_int(path)){\
+ int val = location_setting_get_int(path);\
+ if (val == -1){\
return LOCATION_ERROR_UNKNOWN;\
+ } else if (val == 0) {\
+ return LOCATION_ERROR_SETTING_OFF;\
}\
}
-#define setting_ret_if_fail(path) {\
- if(!location_setting_get_int(path)){\
- return;\
- }\
-}
-
-
#endif
if (priv->pos) {
pos = location_position_copy(priv->pos);
- }
- else {
+ } else {
pos = location_position_new (0, 0.0, 0.0, 0.0, LOCATION_STATUS_NO_FIX);
}
if (priv->acc) {
acc = location_accuracy_copy (priv->acc);
- }
- else {
+ } else {
acc = location_accuracy_new (LOCATION_ACCURACY_LEVEL_NONE, 0.0, 0.0);
}
if (priv->vel) {
vel = location_velocity_copy(priv->vel);
- }
- else {
+ } else {
vel = location_velocity_new (0, 0.0, 0.0, 0.0);
}
if (priv->acc) {
acc = location_accuracy_copy (priv->acc);
- }
- else {
+ } else {
acc = location_accuracy_new (LOCATION_ACCURACY_LEVEL_NONE, 0.0, 0.0);
}
if (!location_setting_get_int(VCONFKEY_LOCATION_NETWORK_ENABLED)) {
ret = LOCATION_ERROR_SETTING_OFF;
- }
- else {
+ } else {
ret = priv->mod->ops.start (priv->mod->handler, wps_status_cb, wps_position_ext_cb, NULL, self);
if (ret == LOCATION_ERROR_NONE) {
priv->is_started = TRUE;
{
LOCATION_LOGD("location_wps_get_last_position");
- /* Do not need to check VCONFKEY_LOCATION_ENABLED and VCONFKEY_LOCATION_NETWORK_ENABLED */
-
LocationWpsPrivate *priv = GET_PRIVATE (self);
g_return_val_if_fail (priv->mod, LOCATION_ERROR_NOT_AVAILABLE);
- LocationError ret = LOCATION_ERROR_NONE;
+ int ret = LOCATION_ERROR_NONE;
LocationVelocity *_velocity = NULL;
LocModWpsOps ops = priv->mod->ops;
g_return_val_if_fail (ops.get_last_position, LOCATION_ERROR_NOT_AVAILABLE);
ret = ops.get_last_position(priv->mod->handler, position, &_velocity, accuracy);
- if (!_velocity) location_velocity_free (_velocity);
+ if (_velocity) location_velocity_free(_velocity);
return ret;
}
{
LOCATION_LOGD("location_wps_get_last_position_ext");
- /* Do not need to check VCONFKEY_LOCATION_ENABLED and VCONFKEY_LOCATION_NETWORK_ENABLED */
-
LocationWpsPrivate *priv = GET_PRIVATE (self);
g_return_val_if_fail (priv->mod, LOCATION_ERROR_NOT_AVAILABLE);
g_return_val_if_fail (ops.get_last_position, LOCATION_ERROR_NOT_AVAILABLE);
return ops.get_last_position(priv->mod->handler, position, velocity, accuracy);
-
}
{
LOCATION_LOGD("location_wps_get_last_velocity");
- /* Do not need to check VCONFKEY_LOCATION_ENABLED and VCONFKEY_LOCATION_NETWORK_ENABLED */
-
LocationWpsPrivate *priv = GET_PRIVATE (self);
g_return_val_if_fail (priv->mod, LOCATION_ERROR_NOT_AVAILABLE);
- LocationError ret = LOCATION_ERROR_NONE;
+ int ret = LOCATION_ERROR_NONE;
LocationPosition *_position = NULL;
LocModWpsOps ops = priv->mod->ops;
g_return_val_if_fail (satellite, LOCATION_ERROR_PARAMETER);
int ret = LOCATION_ERROR_NONE;
-
ret = location_ielement_get_satellite (LOCATION_IELEMENT(obj), satellite);
if (ret != LOCATION_ERROR_NONE) LOCATION_LOGD("Fail to get_satellite. Error [%d]", ret);
location_send_command(const char *cmd)
{
g_return_val_if_fail (cmd, LOCATION_ERROR_PARAMETER);
- int ret = 0;
+ int ret = LOCATION_ERROR_NOT_AVAILABLE;
if (0 == g_strcmp0(cmd, "ADD_APPLIST")) {
- ret = location_application_add_app_to_applist ();
- if (ret == FALSE) {
+ if (location_application_add_app_to_applist () == FALSE) {
LOCATION_LOGD("Fail to add to applist");
- return LOCATION_ERROR_UNKNOWN;
+ ret = LOCATION_ERROR_UNKNOWN;
+ } else {
+ ret = LOCATION_ERROR_NONE;
}
} else if (0 == g_strcmp0(cmd, "ACCESSIBILITY:1")) {
ret = location_set_accessibility_state(LOCATION_ACCESS_ALLOWED);
if (ret != LOCATION_ERROR_NONE) {
LOCATION_LOGD("Fail to set ACCESSIBILITY:1 [ret = %d]", ret);
- return ret;
}
} else if (0 == g_strcmp0(cmd, "ACCESSIBILITY:0")) {
ret = location_set_accessibility_state(LOCATION_ACCESS_DENIED);
if (ret != LOCATION_ERROR_NONE) {
LOCATION_LOGD("Fail to set ACCESSIBILITY:0 [ret = %d]", ret);
- return ret;
}
} else {
LOCATION_LOGD("Invalid CMD[%s]", cmd);
}
- return LOCATION_ERROR_NONE;
+ return ret;
}
-
Name: libslp-location
Summary: Location Based Service
-Version: 0.4.4
+Version: 0.4.6
Release: 1
Group: System/Libraries
License: Apache Licensc, Version 2.0
%build
./autogen.sh
-./configure --prefix=%{_prefix} --enable-dlog --enable-debug
+%configure --enable-dlog --enable-debug
-# Call make instruction with smp support
make %{?jobs:-j%jobs}
%install
-rm -rf %{buildroot}
%make_install
-%clean
-rm -rf %{buildroot}
-
-
%post
/sbin/ldconfig
vconftool set -t int db/location/last/gps/Timestamp "0" -f
g_printf("10. location_is_supported_method\n");
g_printf("11. location_is_enabled_gps\n");
g_printf("99. location_send_command\n");
- g_printf("99a. location_send_command(get_auth)\n");
- g_printf("99b. location_send_command(add_to_list)\n");
g_printf("a?. signals:(1)'service-enabled',(2)'service-disabled',(3)'service-updated',(4)'zone-in',(5)'zone-out'\n");
g_printf("b?. disconnect signals:(1)'service-enabled',(2)'service-disabled',(3)'service-updated',(4)'zone-in',(5)'zone-out'\n");
g_printf("c?. (1)Set boundary, (2)Get boundary, (3) Remove boundary, (4) Remove all boundaries, (5)Set device name, \n");