Commit fe4bcf62 authored by iain's avatar iain

Remove the old files

parent 0f0d79ca
lib_LTLIBRARIES = libgeoclue.la
bin_PROGRAMS = geoclue-master
geoclue_master_SOURCES = geoclue_master.c \
geoclue_master_signal_marshal.c
service_in_files = org.freedesktop.geoclue.master.service.in
service_files = $(service_in_files:.service.in=.service)
# D-Bus service descriptor installation
servicedir = $(DBUS_SERVICES_DIR)
service_DATA = $(service_files)
execdir = @bindir@
$(service_DATA): $(service_in_files) Makefile
for f in $(service_in_files) ; do \
sed -e 's;@execdir@;$(execdir);' $< > $@ ;\
done
AM_CPPFLAGS = $(DEPS_CFLAGS) -I$(top_srcdir)
AM_LDFLAGS = $(DEPS_LIBS)
EXTRA_DIST = \
position_glue.xml \
position_signal_marshal.list \
find_glue.xml \
find_signal_marshal.list \
map_glue.xml \
map_signal_marshal.list \
master_glue.xml \
master_signal_marshal.list \
geoclue_master.h \
geocode_glue.xml \
$(service_in_files)
libgeoclue_la_SOURCES = position.c \
position_signal_marshal.c \
find.c \
find_signal_marshal.c \
map.c \
map_gtk.c \
map_gtk_layout.c \
map_signal_marshal.c \
geocode.c \
geoclue.c
libgeoclue_la_CFLAGS = $(DEPS_CFLAGS) -I$(top_srcdir)
libgeoclue_la_LIBADD = $(DEPS_LIBS)
libgeoclue_ladir=$(includedir)/geoclue
libgeoclue_la_HEADERS = position.h \
find.h \
map.h \
map_gtk.h \
map_gtk_layout.h \
geocode.h \
geoclue.h
BUILT_SOURCES = \
position_client_glue.h \
position_signal_marshal.h \
position_signal_marshal.c \
find_client_glue.h \
find_signal_marshal.h \
find_signal_marshal.c \
map_client_glue.h \
map_signal_marshal.h \
map_signal_marshal.c \
geoclue_master_signal_marshal.c \
geoclue_master_server_glue.h \
geoclue_master_client_glue.h \
geocode_client_glue.h \
$(service_files)
CLEANFILES = \
position_client_glue.h \
position_signal_marshal.h \
position_signal_marshal.c \
find_client_glue.h \
find_signal_marshal.h \
find_signal_marshal.c \
map_client_glue.h \
map_signal_marshal.h \
map_signal_marshal.c \
geoclue_master_signal_marshal.c \
geoclue_master_server_glue.h \
geoclue_master_client_glue.h \
geocode_client_glue.h \
$(service_files)
dbusspecdir = $(datadir)/geoclue/dbus
dbusspec_DATA = \
position_glue.xml \
position_signal_marshal.list \
find_glue.xml \
find_signal_marshal.list \
map_glue.xml \
map_signal_marshal.list \
geocode_glue.xml
position_client_glue.h:position_glue.xml
$(DBUS_BINDING_TOOL) --prefix=geoclue_position --mode=glib-client $< > $@
position_signal_marshal.h:position_signal_marshal.list
glib-genmarshal --prefix _geoclue_position --header $< > $@
position_signal_marshal.c:position_signal_marshal.list
glib-genmarshal --prefix _geoclue_position --body $< > $@
find_client_glue.h:find_glue.xml
$(DBUS_BINDING_TOOL) --prefix=geoclue_find --mode=glib-client $< > $@
find_signal_marshal.h:find_signal_marshal.list
glib-genmarshal --prefix _geoclue_find --header $< > $@
find_signal_marshal.c:find_signal_marshal.list
glib-genmarshal --prefix _geoclue_find --body $< > $@
map_client_glue.h:map_glue.xml
$(DBUS_BINDING_TOOL) --prefix=geoclue_map --mode=glib-client $< > $@
map_signal_marshal.h:map_signal_marshal.list
glib-genmarshal --prefix _geoclue_map --header $< > $@
map_signal_marshal.c:map_signal_marshal.list
glib-genmarshal --prefix _geoclue_map --body $< > $@
geoclue_master_server_glue.h:master_glue.xml
$(DBUS_BINDING_TOOL) --prefix=geoclue_master --mode=glib-server $< | sed 's;\data = user_data;\data = (DBusGAsyncData\*)user_data;g' > $@
geoclue_master_client_glue.h:master_glue.xml
$(DBUS_BINDING_TOOL) --prefix=geoclue_client --mode=glib-client $< | sed 's;\data = user_data;\data = (DBusGAsyncData\*)user_data;g' > $@
geoclue_master_signal_marshal.h:master_signal_marshal.list
glib-genmarshal --prefix _geoclue_master --header $< > $@
geoclue_master_signal_marshal.c:master_signal_marshal.list
glib-genmarshal --prefix _geoclue_master --body $< > $@
geocode_client_glue.h:geocode_glue.xml
$(DBUS_BINDING_TOOL) --prefix=geoclue_geocode --mode=glib-client $< > $@
This diff is collapsed.
/* Geoclue - A DBus api and wrapper for geography information
* Copyright (C) 2006-2007 by Garmin Ltd. or its subsidiaries
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2 as published by the Free Software Foundation;
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef __ORG_FREEDESKTOP_GEOCLUE_FIND_GEOCLUE_FIND_H__
#define __ORG_FREEDESKTOP_GEOCLUE_FIND_GEOCLUE_FIND_H__
#include <dbus/dbus-glib.h>
G_BEGIN_DECLS
typedef enum _geoclue_find_returncode
{
GEOCLUE_FIND_SUCCESS = 0,
GEOCLUE_FIND_NOT_INITIALIZED = -1,
GEOCLUE_FIND_DBUS_ERROR = -2,
GEOCLUE_FIND_SERVICE_NOT_AVAILABLE = -3,
GEOCLUE_FIND_METHOD_NOT_IMPLEMENTED = -4,
GEOCLUE_FIND_NO_SATELLITE_FIX = -5,
GEOCLUE_FIND_SATELLITE_NOT_IN_VIEW = -6
} GEOCLUE_FIND_RETURNCODE;
typedef enum _geoclue_find_fix
{
GEOCLUE_FIND_NO_FIX = -1,
GEOCLUE_FIND_TWO_DIMENSION = 1,
GEOCLUE_FIND_THREE_DIMENSION = 2,
GEOCLUE_FIND_TWO_DIMENSION_DIFFERENTIAL = 3,
GEOCLUE_FIND_THREE_DIMENSION_DIFFERENTIAL = 4
} GEOCLUE_FIND_FIX;
typedef void (*GEOCLUE_FIND_CALLBACK)(char** name, char** description, GArray* latitude, GArray* longitude , char** address, char** city , char** state, char** zip, void* userdata );
/*!
* \brief geoclue version
* \param major placeholder for version return
* \param minor
* \param micro
* \return TRUE Version returned sucessfully
* FALSE Error
*/
GEOCLUE_FIND_RETURNCODE geoclue_find_version(int* major, int* minor, int* micro);
/*!
* \brief geoclue init, must be called first. Uses default provider
* \return TRUE Version returned sucessfully
* FALSE Error
*/
GEOCLUE_FIND_RETURNCODE geoclue_find_init();
/*!
* \brief geoclue init, must be called first.
* \param service DBUS service path
* \param path DBUS path to object
* \return TRUE Version returned sucessfully
* FALSE Error
*/
GEOCLUE_FIND_RETURNCODE geoclue_find_init_specific(char* service, char* path);
/*!
* \brief query master for all providers of find
* \param service DBUS service path array
* \param path DBUS path to object array
* \param desc Text Description array
* \return TRUE Version returned sucessfully
* FALSE Error
*/
GEOCLUE_FIND_RETURNCODE geoclue_find_get_all_providers(char*** OUT_service, char*** OUT_path, char*** OUT_desc);
/*!
* \brief Clean up and free memory
* \return TRUE Version returned sucessfully
* FALSE Error
*/
GEOCLUE_FIND_RETURNCODE geoclue_find_close();
/*!
* \brief Text description of current provider
* \param name name of provider
* \return TRUE Version returned sucessfully
* FALSE Error
*/
GEOCLUE_FIND_RETURNCODE geoclue_find_service_provider(char** name);
GEOCLUE_FIND_RETURNCODE geoclue_find_top_level_categories (char *** OUT_names);
GEOCLUE_FIND_RETURNCODE geoclue_find_subcategories (const char * IN_category_name, char *** OUT_subcategory_names);
GEOCLUE_FIND_RETURNCODE geoclue_find_find_near (const gdouble IN_latitude, const gdouble IN_longitude, const char * IN_category_name, const char *IN_name, GEOCLUE_FIND_CALLBACK callback, void* userdata);
G_END_DECLS
#endif // __ORG_FREEDESKTOP_GEOCLUE_FIND_GEOCLUE_FIND_H__
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Geoclue - A DBus api and wrapper for geography information
* Copyright (C) 2006-2007 by Garmin Ltd. or its subsidiaries
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2 as published by the Free Software Foundation;
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
-->
<node name="/org/freedesktop/geoclue/find">
<interface name="org.freedesktop.geoclue.find">
<method name="version">
<arg type="i" name="major" direction="out" />
<arg type="i" name="minor" direction="out" />
<arg type="i" name="micro" direction="out" />
</method>
<method name="service_provider">
<arg type="s" name="name" direction="out" />
</method>
<method name="top_level_categories">
<arg type="as" name="names" direction="out" />
</method>
<method name="subcategories">
<arg type="s" name="category_name" direction="in" />
<arg type="as" name="subcategory_names" direction="out" />
</method>
<method name="find_near">
<arg type="d" name="latitude" direction="in" />
<arg type="d" name="longitude" direction="in" />
<arg type="s" name="category_name" direction="in" />
<arg type="s" name="name" direction="in" />
<arg type="i" name="search_id" direction="out" />
</method>
<signal name="results_found">
<arg type="i" name="search_id" direction="out" />
<arg type="as" name="name" direction="out" />
<arg type="as" name="description" direction="out" />
<arg type="ad" name="latitude" direction="out" />
<arg type="ad" name="longitude" direction="out" />
<arg type="as" name="address" direction="out" />
<arg type="as" name="city" direction="out" />
<arg type="as" name="state" direction="out" />
<arg type="as" name="zip" direction="out" />
</signal>
<method name="service_available">
<arg type="b" name="available" direction="out" />
<arg type="s" name="reason" direction="out" />
</method>
<method name="shutdown">
</method>
</interface>
</node>
VOID:INT,BOXED,BOXED,BOXED,BOXED,BOXED,BOXED,BOXED,BOXED
/* Geoclue - A DBus api and wrapper for geography information
* Copyright (C) 2006-2007 by Garmin Ltd. or its subsidiaries
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2 as published by the Free Software Foundation;
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#include <geoclue.h>
#include <config.h>
DBusBusType
geoclue_get_dbus_bus_type ()
{
return GEOCLUE_DBUS_BUS;
}
\ No newline at end of file
/* Geoclue - A DBus api and wrapper for geography information
* Copyright (C) 2006-2007 by Garmin Ltd. or its subsidiaries
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2 as published by the Free Software Foundation;
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef __ORG_FOINSE_PROJECT_GEOCLUE_GEOCLUE_H__
#define __ORG_FOINSE_PROJECT_GEOCLUE_GEOCLUE_H__
#include <geoclue/position.h>
#include <geoclue/geocode.h>
#include <geoclue/map.h>
#include <geoclue/find.h>
#include <config.h>
/** \mainpage
*
* \section intro_sec Introduction
*
* GeoClue is a D-Bus API and library that provides all kinds of geographic information to applications. The information may originally come in various forms from many sources (backends), but GeoClue offers it to applications in a simple, abstracted form.
*
* \section intro_sec Introduction
* Geoclue exist to try and establish a geographic information standard api as to facilitate application development around this information.
*
*
*
* \section basics_sec Sections
*
* These are the current apis offered by Geoclue
* \li \ref Position (Beta)
* \li Maps (Experimental)
* \li Geocoding (Experimental)
* \li Find (Experimental)
*
*
**/
#include <glib/gmacros.h>
#include <dbus/dbus-shared.h>
G_BEGIN_DECLS
DBusBusType
geoclue_get_dbus_bus_type ();
G_END_DECLS
#endif /* __ORG_FREEDESKTOP_GEOCLUE_GEOCLUE_H__ */
\ No newline at end of file
This diff is collapsed.
/* Geomap - A DBus api and wrapper for getting geography pictures
* Copyright (C) 2006-2007 by Garmin Ltd. or its subsidiaries
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2 as published by the Free Software Foundation;
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef __GEOCLUE_MASTER_H__
#define __GEOCLUE_MASTER_H__
#define DBUS_API_SUBJECT_TO_CHANGE
#include <dbus/dbus-glib.h>
#include <config.h>
#include <glib.h>
#include <stdio.h>
#include <string.h>
#include <gconf/gconf-client.h>
#define GEOCLUE_MASTER_DBUS_SERVICE "org.freedesktop.geoclue.master"
#define GEOCLUE_MASTER_DBUS_PATH "/org/freedesktop/geoclue/master"
#define GEOCLUE_MASTER_DBUS_INTERFACE "org.freedesktop.geoclue.master"
G_BEGIN_DECLS
typedef struct GeoclueMaster GeoclueMaster;
typedef struct GeoclueMasterClass GeoclueMasterClass;
GType geoclueserver_master_get_type (void);
struct GeoclueMaster
{
GObject parent;
GList* position_backends;
GList* map_backends;
GList* geocode_backends;
GList* find_backends;
GConfClient* client;
};
struct GeoclueMasterClass
{
GObjectClass parent;
DBusGConnection *connection;
};
#define TYPE_GEOCLUE_MASTER (geoclueserver_master_get_type ())
#define GEOCLUE_MASTER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), TYPE_GEOCLUE_MASTER, GeoclueMaster))
#define GEOCLUE_MASTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GEOCLUE_MASTER, GeoclueMasterClass))
#define IS_GEOCLUE_MASTER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), TYPE_GEOCLUE_MASTER))
#define IS_GEOCLUE_MASTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GEOCLUE_MASTER))
#define GEOCLUE_MASTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GEOCLUE_MASTER, GeoclueMasterClass))
gboolean geoclue_master_version (GeoclueMaster *obj, gint* OUT_major, gint* OUT_minor, gint* OUT_micro, GError **error);
gboolean geoclue_master_get_default_position_provider (GeoclueMaster *obj, char ** OUT_service, char ** OUT_path, char ** OUT_description, GError **error);
gboolean geoclue_master_get_all_position_providers (GeoclueMaster *obj, char *** OUT_service, char *** OUT_path, char *** OUT_description, GError **error);
gboolean geoclue_master_position_provider_update (GeoclueMaster *obj, const char * IN_service, const char * IN_path, const gint IN_accuracy, const gboolean IN_active, GError **error);
gboolean geoclue_master_get_default_map_provider (GeoclueMaster *obj, char ** OUT_service, char ** OUT_path, char ** OUT_description, GError **error);
gboolean geoclue_master_get_all_map_providers (GeoclueMaster *obj, char *** OUT_service, char *** OUT_path, char *** OUT_description, GError **error);
gboolean geoclue_master_map_provider_update (GeoclueMaster *obj, const char * IN_service, const char * IN_path, const gint IN_accuracy, const gboolean IN_active, GError **error);
gboolean geoclue_master_get_default_geocode_provider (GeoclueMaster *obj, char ** OUT_service, char ** OUT_path, char ** OUT_description, GError **error);
gboolean geoclue_master_get_all_geocode_providers (GeoclueMaster *obj, char *** OUT_service, char *** OUT_path, char *** OUT_description, GError **error);
gboolean geoclue_master_geocode_provider_update (GeoclueMaster *obj, const char * IN_service, const char * IN_path, const gint IN_accuracy, const gboolean IN_active, GError **error);
gboolean geoclue_master_get_default_find_provider (GeoclueMaster *obj, char ** OUT_service, char ** OUT_path, char ** OUT_description, GError **error);
gboolean geoclue_master_get_all_find_providers (GeoclueMaster *obj, char *** OUT_service, char *** OUT_path, char *** OUT_description, GError **error);
gboolean geoclue_master_find_provider_update (GeoclueMaster *obj, const char * IN_service, const char * IN_path, const gint IN_accuracy, const gboolean IN_active, GError **error);
G_END_DECLS
#endif
/* Geoclue - A DBus api and wrapper for geography information
* Copyright (C) 2006-2007 by Garmin Ltd. or its subsidiaries
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2 as published by the Free Software Foundation;
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#define DBUS_API_SUBJECT_TO_CHANGE
#include <dbus/dbus-glib.h>
#include <dbus/dbus-glib-lowlevel.h>
#include <dbus/dbus.h>
#include <geocode.h>
#include <geocode_client_glue.h>
#include <stdio.h>
#include <geoclue_master_client_glue.h>
#include <config.h>
#define GEOCLUE_GEOCODE_DBUS_SERVICE "org.freedesktop.geoclue.geocode.yahoo"
#define GEOCLUE_GEOCODE_DBUS_PATH "/org/freedesktop/geoclue/geocode/yahoo"
#define GEOCLUE_GEOCODE_DBUS_INTERFACE "org.freedesktop.geoclue.geocode"
static DBusGConnection* geoclue_geocode_connection = NULL;
static DBusGProxy* geoclue_geocode_proxy = NULL;
GEOCLUE_GEOCODE_RETURNCODE geoclue_geocode_version(int* major, int* minor, int* micro)
{
if(geoclue_geocode_connection == NULL)
return GEOCLUE_GEOCODE_NOT_INITIALIZED;
if(geoclue_geocode_proxy == NULL)
return GEOCLUE_GEOCODE_NOT_INITIALIZED;
GError* error = NULL;
org_freedesktop_geoclue_geocode_version ( geoclue_geocode_proxy, major, minor, micro, &error );
if( error != NULL )
{
g_printerr ("Error getting geoclue_geocode version: %s\n", error->message);
g_error_free (error);
return GEOCLUE_GEOCODE_DBUS_ERROR;
}
return GEOCLUE_GEOCODE_SUCCESS;
}
GEOCLUE_GEOCODE_RETURNCODE geoclue_geocode_service_provider(char** name)
{
if(geoclue_geocode_connection == NULL)
return GEOCLUE_GEOCODE_NOT_INITIALIZED;
if(geoclue_geocode_proxy == NULL)
return GEOCLUE_GEOCODE_NOT_INITIALIZED;
GError* error = NULL;
org_freedesktop_geoclue_geocode_service_provider ( geoclue_geocode_proxy, name, &error );
if( error != NULL )
{
g_printerr ("Error getting geoclue_geocode service provider: %s\n", error->message);
g_error_free (error);
return GEOCLUE_GEOCODE_DBUS_ERROR;
}
return GEOCLUE_GEOCODE_SUCCESS;
}
GEOCLUE_GEOCODE_RETURNCODE geoclue_geocode_init()
{
GError* error = NULL;
geoclue_geocode_connection = dbus_g_bus_get (GEOCLUE_DBUS_BUS, &error);
if (geoclue_geocode_connection == NULL)
{
g_printerr ("Failed to open connection to bus: %s\n", error->message);
g_error_free (error);
return GEOCLUE_GEOCODE_DBUS_ERROR;
}
geoclue_geocode_proxy = dbus_g_proxy_new_for_name (geoclue_geocode_connection,
GEOCLUE_GEOCODE_DBUS_SERVICE,
GEOCLUE_GEOCODE_DBUS_PATH,
GEOCLUE_GEOCODE_DBUS_INTERFACE);
return GEOCLUE_GEOCODE_SUCCESS;
}
GEOCLUE_GEOCODE_RETURNCODE geoclue_geocode_close()
{
g_object_unref (geoclue_geocode_proxy);
geoclue_geocode_proxy = NULL;
geoclue_geocode_connection = NULL;
return GEOCLUE_GEOCODE_SUCCESS;
}
GEOCLUE_GEOCODE_RETURNCODE geoclue_geocode_to_lat_lon ( const char * IN_street, const char * IN_city, const char * IN_state, const char * IN_zip, gdouble* OUT_latitude, gdouble* OUT_longitude, gint* OUT_return_code )
{
if(geoclue_geocode_connection == NULL)
return GEOCLUE_GEOCODE_NOT_INITIALIZED;
if(geoclue_geocode_proxy == NULL)
return GEOCLUE_GEOCODE_NOT_INITIALIZED;
GError* error = NULL;
org_freedesktop_geoclue_geocode_to_lat_lon ( geoclue_geocode_proxy, IN_street , IN_city , IN_state , IN_zip , OUT_latitude , OUT_longitude , OUT_return_code , &error );
if( error != NULL )
{
g_printerr ("Error getting geoclue_geocode geocode: %s\n", error->message);
g_error_free (error);
return GEOCLUE_GEOCODE_DBUS_ERROR;
}
return GEOCLUE_GEOCODE_SUCCESS;
}
GEOCLUE_GEOCODE_RETURNCODE geoclue_geocode_free_text_to_lat_lon ( const char * IN_free_text, gdouble* OUT_latitude, gdouble* OUT_longitude, gint* OUT_return_code )
{
if(geoclue_geocode_connection == NULL)
return GEOCLUE_GEOCODE_NOT_INITIALIZED;
if(geoclue_geocode_proxy == NULL)
return GEOCLUE_GEOCODE_NOT_INITIALIZED;
GError* error = NULL;
org_freedesktop_geoclue_geocode_free_text_to_lat_lon ( geoclue_geocode_proxy, IN_free_text , OUT_latitude , OUT_longitude , OUT_return_code , &error );
if( error != NULL )
{
g_printerr ("Error getting geoclue_geocode geocode_free_text: %s\n", error->message);
g_error_free (error);
return GEOCLUE_GEOCODE_DBUS_ERROR;
}
return GEOCLUE_GEOCODE_SUCCESS;
}
GEOCLUE_GEOCODE_RETURNCODE geoclue_geocode_lat_lon_to_address ( gdouble IN_latitude, gdouble IN_longitude, char ** OUT_street, char ** OUT_city, char ** OUT_state, char ** OUT_zip, gint* OUT_return_code )
{
if(geoclue_geocode_connection == NULL)
return GEOCLUE_GEOCODE_NOT_INITIALIZED;
if(geoclue_geocode_proxy == NULL)
return GEOCLUE_GEOCODE_NOT_INITIALIZED;
GError* error = NULL;
org_freedesktop_geoclue_geocode_lat_lon_to_address ( geoclue_geocode_proxy, IN_latitude, IN_longitude, OUT_street, OUT_city, OUT_state, OUT_zip, OUT_return_code , &error );
if( error != NULL )
{
g_printerr ("Error getting geoclue_geocode geocode lat lon to addres: %s\n", error->message);
g_error_free (error);
return GEOCLUE_GEOCODE_DBUS_ERROR;
}
return GEOCLUE_GEOCODE_SUCCESS;