* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
#include <tet_api.h>
#include <glib.h>
#include <location.h>
}
static void startup()
-{
+{
location_init();
loc = location_new(LOCATION_METHOD_GPS);
location_start(loc);
- loop = g_main_loop_new(NULL,FALSE);
+ loop = g_main_loop_new(NULL,FALSE);
LocationPosition *rb = location_position_new(0, 36.395, 25.41, 0, LOCATION_STATUS_2D_FIX);
LocationPosition *lt = location_position_new(0, 36.413, 25.388, 0, LOCATION_STATUS_2D_FIX);
LocationBoundary* bound = location_boundary_new_for_rect(lt, rb);
+ location_boundary_add(loc, bound);
+
location_position_free (rb);
location_position_free (lt);
- g_object_set(loc, "boundary", bound, NULL);
location_boundary_free (bound);
tet_printf("\n TC startup");
}
static void cleanup()
-{
+{
location_stop(loc);
location_free(loc);
tet_printf("\n TC End");
{
g_signal_connect (loc, "zone-out", G_CALLBACK(_cb_zone_out), loc);
g_timeout_add_seconds(60, exit_loop, NULL);
- g_main_loop_run (loop);
+ g_main_loop_run (loop);
}