diff options
Diffstat (limited to 'navit/vehicle/maemo/vehicle_maemo.c')
-rw-r--r-- | navit/vehicle/maemo/vehicle_maemo.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/navit/vehicle/maemo/vehicle_maemo.c b/navit/vehicle/maemo/vehicle_maemo.c index badbde9c5..4717deb04 100644 --- a/navit/vehicle/maemo/vehicle_maemo.c +++ b/navit/vehicle/maemo/vehicle_maemo.c @@ -143,8 +143,7 @@ static void vehicle_maemo_error(LocationGPSDControl *control, LocationGPSDContro /** * Instantiate liblocation objects */ -static void -vehicle_maemo_open(struct vehicle_priv *priv) { +static void vehicle_maemo_open(struct vehicle_priv *priv) { priv->control = location_gpsd_control_get_default(); priv->device = g_object_new(LOCATION_TYPE_GPS_DEVICE, NULL); @@ -210,8 +209,7 @@ vehicle_maemo_open(struct vehicle_priv *priv) { return; } -static void -vehicle_maemo_destroy(struct vehicle_priv *priv) { +static void vehicle_maemo_destroy(struct vehicle_priv *priv) { location_gpsd_control_stop(priv->control); g_object_unref(priv->device); @@ -220,9 +218,8 @@ vehicle_maemo_destroy(struct vehicle_priv *priv) { return; } -static int -vehicle_maemo_position_attr_get(struct vehicle_priv *priv, - enum attr_type type, struct attr *attr) { +static int vehicle_maemo_position_attr_get(struct vehicle_priv *priv, + enum attr_type type, struct attr *attr) { struct attr * active=NULL; switch (type) { case attr_position_fix_type: @@ -291,10 +288,9 @@ struct vehicle_methods vehicle_maemo_methods = { vehicle_maemo_position_attr_get, }; -static struct vehicle_priv * -vehicle_maemo_new_maemo(struct vehicle_methods - *meth, struct callback_list - *cbl, struct attr **attrs) { +static struct vehicle_priv *vehicle_maemo_new_maemo(struct vehicle_methods + *meth, struct callback_list + *cbl, struct attr **attrs) { struct vehicle_priv *ret; struct attr *source, *retry_int; @@ -321,8 +317,7 @@ vehicle_maemo_new_maemo(struct vehicle_methods return ret; } -void -plugin_init(void) { +void plugin_init(void) { dbg(lvl_debug, "enter"); plugin_register_category_vehicle("maemo", vehicle_maemo_new_maemo); } |