Commit 229324c1 authored by Keith Preston's avatar Keith Preston

:Added backends correctly

parent b4dcca5e
bin_PROGRAMS = geoclue-map-server-yahoo
geoclue_map_server_yahoo_SOURCES = geoclue_map_server_yahoo.c \
geomapserver_signal_marshal.c
AM_CPPFLAGS = $(YAHOO_CFLAGS) -I$(top_srcdir)
AM_LDFLAGS = $(YAHOO_LIBS)
BUILT_SOURCES = \
geomapserver_signal_marshal.c \
geomapserver_signal_marshal.h \
geomapserver_server_glue.h
CLEANFILES = \
geomapserver_signal_marshal.c \
geomapserver_signal_marshal.h \
geomapserver_server_glue.h
geomapserver_server_glue.h:../../geoclue/map_glue.xml
$(DBUS_BINDING_TOOL) --prefix=geomapserver --mode=glib-server $< | sed 's;\data = user_data;\data = (DBusGAsyncData\*)user_data;g' > $@
geomapserver_signal_marshal.h:../../geoclue/map_signal_marshal.list
glib-genmarshal --prefix _geomapserver --header $< > $@
geomapserver_signal_marshal.c:../../geoclue/map_signal_marshal.list
glib-genmarshal --prefix _geomapserver --body $< > $@
This diff is collapsed.
/* Geomap - A DBus api and wrapper for getting geography pictures
* Copyright (C) 2006 Garmin
*
*
* 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 __GEOMAPSERVER_SERVER_H__
#define __GEOMAPSERVER_SERVER_H__
#define DBUS_API_SUBJECT_TO_CHANGE
#include <dbus/dbus-glib.h>
#include <glib.h>
#include <stdio.h>
#include <string.h>
#define GEOMAPSERVER_DBUS_SERVICE "org.foinse_project.geomap"
#define GEOMAPSERVER_DBUS_PATH "/org/foinse_project/geomap"
#define GEOMAPSERVER_DBUS_INTERFACE "org.foinse_project.geomap"
G_BEGIN_DECLS
//Let's create a geomapserver object that has one method of geomapserver
typedef struct Geomapserver Geomapserver;
typedef struct GeomapserverClass GeomapserverClass;
GType geomapserver_get_type (void);
struct Geomapserver
{
GObject parent;
char* buffer;
GArray* OUT_map_buffer;
gint width;
gint height;
gboolean pending_request;
};
struct GeomapserverClass
{
GObjectClass parent;
DBusGConnection *connection;
/* Signals */
void (*get_map_finished) (Geomapserver*, gint, GArray* , gchar* );
};
#define TYPE_GEOMAPSERVER (geomapserver_get_type ())
#define GEOMAPSERVER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), TYPE_GEOMAPSERVER, Geomapserver))
#define GEOMAPSERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GEOMAPSERVER, GeomapserverClass))
#define IS_GEOMAPSERVER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), TYPE_GEOMAPSERVER))
#define IS_GEOMAPSERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GEOMAPSERVER))
#define GEOMAPSERVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GEOMAPSERVER, GeomapserverClass))
gboolean geomapserver_version (Geomapserver *obj, gint* OUT_major, gint* OUT_minor, gint* OUT_micro, GError **error);
gboolean geomapserver_service_provider(Geomapserver *obj, char** name, GError **error);
gboolean geomapserver_max_zoom(Geomapserver *obj, int* max_zoom, GError **error);
gboolean geomapserver_min_zoom(Geomapserver *obj, int* min_zoom, GError **error);
gboolean geomapserver_max_height(Geomapserver *obj, int* max_height, GError **error);
gboolean geomapserver_min_height(Geomapserver *obj, int* min_height, GError **error);
gboolean geomapserver_max_width(Geomapserver *obj, int* max_width, GError **error);
gboolean geomapserver_min_width(Geomapserver *obj, int* min_width, GError **error);
gboolean geomapserver_get_map (Geomapserver *obj, const gdouble IN_latitude, const gdouble IN_longitude, const gint IN_width, const gint IN_height, const gint IN_zoom, int* return_code, GError **error);
gboolean geomapserver_latlong_to_offset(Geomapserver *obj, const gdouble IN_latitude, const gdouble IN_longitude, const gint IN_zoom, const gdouble IN_center_latitude, const gdouble IN_center_longitude, int* OUT_x_offset, int* OUT_y_offset, GError **error);
gboolean geomapserver_offset_to_latlong(Geomapserver *obj, const int IN_x_offset,const int IN_y_offset, const gint IN_zoom, const gdouble IN_center_latitude, const gdouble IN_center_longitude, gdouble* OUT_latitude, gdouble* OUT_longitude, GError **error );
gboolean geomapserver_find_zoom_level (Geomapserver *obj, const gdouble IN_latitude_top_left, const gdouble IN_longitude_top_left, const gdouble IN_latitude_bottom_right, const gdouble IN_longitude_bottom_right, const gint IN_width, const gint IN_height, gint* OUT_zoom, GError** error);
G_END_DECLS
#endif
bin_PROGRAMS = geoclue-position-server-yahoo
geoclue_position_server_yahoo_SOURCES = geoclue_position_server_yahoo.c \
geoclueserver_signal_marshal.c
AM_CPPFLAGS = $(YAHOO_CFLAGS) -I$(top_srcdir)
AM_LDFLAGS = $(YAHOO_LIBS)
BUILT_SOURCES = \
geoclueserver_signal_marshal.c \
geoclueserver_signal_marshal.h \
geoclueserver_server_glue.h
CLEANFILES = \
geoclueserver_signal_marshal.c \
geoclueserver_signal_marshal.h \
geoclueserver_server_glue.h
geoclueserver_server_glue.h:../../geoclue/position_glue.xml
$(DBUS_BINDING_TOOL) --prefix=geoclueserver --mode=glib-server $< | sed 's;\data = user_data;\data = (DBusGAsyncData\*)user_data;g' > $@
geoclueserver_signal_marshal.h:../../geoclue/position_signal_marshal.list
glib-genmarshal --prefix _geoclueserver --header $< > $@
geoclueserver_signal_marshal.c:../../geoclue/position_signal_marshal.list
glib-genmarshal --prefix _geoclueserver --body $< > $@
This diff is collapsed.
/* Geoclue - A DBus api and wrapper for geography information
* Copyright (C) 2006 Garmin
*
*
* 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 __GEOCLUESERVER_SERVER_H__
#define __GEOCLUESERVER_SERVER_H__
#define DBUS_API_SUBJECT_TO_CHANGE
#include <dbus/dbus-glib.h>
#include <glib.h>
#define GEOCLUESERVER_DBUS_SERVICE "org.foinse_project.geoclue"
#define GEOCLUESERVER_DBUS_PATH "/org/foinse_project/geoclue"
#define GEOCLUESERVER_DBUS_INTERFACE "org.foinse_project.geoclue"
G_BEGIN_DECLS
//Let's create a geoclueserver object that has one method of geoclueserver
typedef struct Geoclueserver Geoclueserver;
typedef struct GeoclueserverClass GeoclueserverClass;
GType geoclueserver_get_type (void);
struct Geoclueserver
{
GObject parent;
};
struct GeoclueserverClass
{
GObjectClass parent;
DBusGConnection *connection;
/* Signals */
void (*current_position_changed) (Geoclueserver*, gdouble, gdouble );
};
#define TYPE_GEOCLUESERVER (geoclueserver_get_type ())
#define GEOCLUESERVER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), TYPE_GEOCLUESERVER, Geoclueserver))
#define GEOCLUESERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GEOCLUESERVER, GeoclueserverClass))
#define IS_GEOCLUESERVER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), TYPE_GEOCLUESERVER))
#define IS_GEOCLUESERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GEOCLUESERVER))
#define GEOCLUESERVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GEOCLUESERVER, GeoclueserverClass))
gboolean geoclueserver_version (Geoclueserver *obj, gint* OUT_major, gint* OUT_minor, gint* OUT_micro, GError **error);
gboolean geoclueserver_service_provider(Geoclueserver *obj, char** name, GError **error);
gboolean geoclueserver_current_position(Geoclueserver *obj, gdouble* OUT_latitude, gdouble* OUT_longitude, GError **error );
gboolean geoclueserver_current_position_error(Geoclueserver *obj, gdouble* OUT_latitude_error, gdouble* OUT_longitude_error, GError **error );
gboolean geoclueserver_current_altitude(Geoclueserver *obj, gdouble* OUT_altitude, GError **error );
gboolean geoclueserver_current_velocity(Geoclueserver *obj, gdouble* OUT_north_velocity, gdouble* OUT_east_velocity, GError **error );
gboolean geoclueserver_current_time(Geoclueserver *obj, gint* OUT_year, gint* OUT_month, gint* OUT_day, gint* OUT_hours, gint* OUT_minutes, gint* OUT_seconds, GError **error );
gboolean geoclueserver_satellites_in_view(Geoclueserver *obj, GArray** OUT_prn_numbers, GError **error );
gboolean geoclueserver_satellites_data(Geoclueserver *obj, const gint IN_prn_number, gdouble* OUT_elevation, gdouble* OUT_azimuth, gdouble* OUT_signal_noise_ratio, GError **error );
gboolean geoclueserver_sun_rise(Geoclueserver *obj, const gdouble IN_latitude, const gdouble IN_longitude, const gint IN_year, const gint IN_month, const gint IN_day, gint* OUT_hours, gint* OUT_minutes, gint* OUT_seconds, GError **error );
gboolean geoclueserver_sun_set(Geoclueserver *obj, const gdouble IN_latitude, const gdouble IN_longitude, const gint IN_year, const gint IN_month, const gint IN_day, gint* OUT_hours, gint* OUT_minutes, gint* OUT_seconds, GError **error );
gboolean geoclueserver_moon_rise(Geoclueserver *obj, const gdouble IN_latitude, const gdouble IN_longitude, const gint IN_year, const gint IN_month, const gint IN_day, gint* OUT_hours, gint* OUT_minutes, gint* OUT_seconds, GError **error );
gboolean geoclueserver_moon_set(Geoclueserver *obj, const gdouble IN_latitude, const gdouble IN_longitude, const gint IN_year, const gint IN_month, const gint IN_day, gint* OUT_hours, gint* OUT_minutes, gint* OUT_seconds, GError **error );
gboolean geoclueserver_geocode(Geoclueserver *obj, 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, GError **error );
gboolean geoclueserver_geocode_free_text(Geoclueserver *obj, const char * IN_free_text, gdouble* OUT_latitude, gdouble* OUT_longitude, gint* OUT_return_code, GError **error );
G_END_DECLS
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment