use Azimuth object
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Sun, 2 May 2010 10:51:52 +0000 (12:51 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Sun, 2 May 2010 10:51:52 +0000 (12:51 +0200)
src/main.c

index 75d636b..d413d5b 100644 (file)
@@ -1,23 +1,18 @@
 #include <glib.h>
 
-#include "position-publisher.h"
+#include "azimuth.h"
 
 int
 main (int argc,
     char **argv)
 {
-  GMainLoop *loop;
-  PositionPublisher *publisher;
+  Azimuth *azimuth;
 
   g_type_init ();
 
-  loop = g_main_loop_new (NULL, FALSE);
-  publisher = position_publisher_new ();
+  azimuth = azimuth_new ();
+  azimuth_run (azimuth);
 
-  g_print ("run\n");
-  g_main_loop_run (loop);
-
-  g_object_unref (publisher);
-  g_main_loop_unref (loop);
+  g_object_unref (azimuth);
   return 0;
 }