static guint32 signals[LAST_SIGNAL] = {0, };
static GParamSpec *properties[PROP_MAX] = {NULL, };
-#define GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), LOCATION_TYPE_FUSED, LocationFusedPrivate))
+#define GET_PRIVATE(o) (location_fused_get_instance_private((LocationFused *)(o)))
static void location_ielement_interface_init(LocationIElementInterface *iface);
-G_DEFINE_TYPE_WITH_CODE(LocationFused, location_fused, G_TYPE_OBJECT,
+G_DEFINE_TYPE_WITH_CODE(LocationFused, location_fused, G_TYPE_OBJECT,G_ADD_PRIVATE(LocationFused)
G_IMPLEMENT_INTERFACE(LOCATION_TYPE_IELEMENT, location_ielement_interface_init));
static void fused_position_cb(gboolean enabled, LocationPosition *pos, LocationVelocity *vel, LocationAccuracy *acc, gpointer self);
gobject_class->dispose = location_fused_dispose;
gobject_class->finalize = location_fused_finalize;
- g_type_class_add_private(klass, sizeof(LocationFusedPrivate));
-
signals[SERVICE_ENABLED] =
g_signal_new("service-enabled", G_TYPE_FROM_CLASS(klass),
G_SIGNAL_RUN_FIRST | G_SIGNAL_NO_RECURSE,
static guint32 signals[LAST_SIGNAL] = {0, };
static GParamSpec *properties[PROP_MAX] = {NULL, };
-#define GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), LOCATION_TYPE_GPS, LocationGpsPrivate))
+#define GET_PRIVATE(o) (location_gps_get_instance_private((LocationGps *)(o)))
static void location_ielement_interface_init(LocationIElementInterface *iface);
static int location_gps_cancel_single_location(LocationGps *self);
-G_DEFINE_TYPE_WITH_CODE(LocationGps, location_gps, G_TYPE_OBJECT,
+G_DEFINE_TYPE_WITH_CODE(LocationGps, location_gps, G_TYPE_OBJECT,G_ADD_PRIVATE(LocationGps)
G_IMPLEMENT_INTERFACE(LOCATION_TYPE_IELEMENT, location_ielement_interface_init));
static void
gobject_class->dispose = location_gps_dispose;
gobject_class->finalize = location_gps_finalize;
- g_type_class_add_private(klass, sizeof(LocationGpsPrivate));
-
signals[SERVICE_ENABLED] =
g_signal_new("service-enabled", G_TYPE_FROM_CLASS(klass),
G_SIGNAL_RUN_FIRST | G_SIGNAL_NO_RECURSE,
static guint32 signals[LAST_SIGNAL] = {0, };
static GParamSpec *properties[PROP_MAX] = {NULL, };
-#define GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), LOCATION_TYPE_HYBRID, LocationHybridPrivate))
+#define GET_PRIVATE(o) (location_hybrid_get_instance_private((LocationHybrid *)(o)))
static void location_ielement_interface_init(LocationIElementInterface *iface);
-G_DEFINE_TYPE_WITH_CODE(LocationHybrid, location_hybrid, G_TYPE_OBJECT, G_IMPLEMENT_INTERFACE(LOCATION_TYPE_IELEMENT, location_ielement_interface_init));
+G_DEFINE_TYPE_WITH_CODE(LocationHybrid, location_hybrid, G_TYPE_OBJECT, G_ADD_PRIVATE(LocationHybrid)G_IMPLEMENT_INTERFACE(LOCATION_TYPE_IELEMENT, location_ielement_interface_init));
static int
__get_availability_use_location(gpointer self)
gobject_class->dispose = location_hybrid_dispose;
gobject_class->finalize = location_hybrid_finalize;
- g_type_class_add_private(klass, sizeof(LocationHybridPrivate));
-
signals[SERVICE_ENABLED] =
g_signal_new("service-enabled", G_TYPE_FROM_CLASS(klass),
G_SIGNAL_RUN_FIRST | G_SIGNAL_NO_RECURSE,
static guint32 signals[LAST_SIGNAL] = {0, };
static GParamSpec *properties[PROP_MAX] = {NULL, };
-#define GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), LOCATION_TYPE_PASSIVE, LocationPassivePrivate))
+#define GET_PRIVATE(o) (location_passive_get_instance_private((LocationPassive *)(o)))
static void location_ielement_interface_init(LocationIElementInterface *iface);
-G_DEFINE_TYPE_WITH_CODE(LocationPassive, location_passive, G_TYPE_OBJECT,
+G_DEFINE_TYPE_WITH_CODE(LocationPassive, location_passive, G_TYPE_OBJECT,G_ADD_PRIVATE(LocationPassive)
G_IMPLEMENT_INTERFACE(LOCATION_TYPE_IELEMENT, location_ielement_interface_init));
static void
gobject_class->dispose = location_passive_dispose;
gobject_class->finalize = location_passive_finalize;
- g_type_class_add_private(klass, sizeof(LocationPassivePrivate));
-
signals[SERVICE_ENABLED] =
g_signal_new("service-enabled", G_TYPE_FROM_CLASS(klass),
G_SIGNAL_RUN_FIRST | G_SIGNAL_NO_RECURSE,
static guint32 signals[LAST_SIGNAL] = {0, };
static GParamSpec *properties[PROP_MAX] = {NULL, };
-#define GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), LOCATION_TYPE_WPS, LocationWpsPrivate))
+#define GET_PRIVATE(o) (location_wps_get_instance_private((LocationWps *)(o)))
static void location_ielement_interface_init(LocationIElementInterface *iface);
static int location_wps_cancel_single_location(LocationWps *self);
-G_DEFINE_TYPE_WITH_CODE(LocationWps, location_wps, G_TYPE_OBJECT,
+G_DEFINE_TYPE_WITH_CODE(LocationWps, location_wps, G_TYPE_OBJECT,G_ADD_PRIVATE(LocationWps)
G_IMPLEMENT_INTERFACE(LOCATION_TYPE_IELEMENT, location_ielement_interface_init));
static void
gobject_class->dispose = location_wps_dispose;
gobject_class->finalize = location_wps_finalize;
- g_type_class_add_private(klass, sizeof(LocationWpsPrivate));
-
signals[SERVICE_ENABLED] =
g_signal_new("service-enabled", G_TYPE_FROM_CLASS(klass),
G_SIGNAL_RUN_FIRST | G_SIGNAL_NO_RECURSE,