Add Osso.Context
authorPhilipp Zabel <philipp.zabel@gmail.com>
Wed, 7 Oct 2009 09:48:26 +0000 (11:48 +0200)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Fri, 30 Oct 2009 16:43:57 +0000 (17:43 +0100)
Makefile
src/main.vala

index bf330b2..6cdb7ea 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 cinaest_SOURCES = \
        src/main.vala
 
-cinaest_VALAFLAGS = --pkg hildon-1
+cinaest_VALAFLAGS = --pkg hildon-1 --pkg libosso
 
 cinaest: ${cinaest_SOURCES}
        valac -o $@ ${cinaest_VALAFLAGS} ${cinaest_SOURCES}
index df122e3..8d513b7 100644 (file)
@@ -38,6 +38,11 @@ public class CinaestProgram : Hildon.Program {
        static int main (string[] args) {
                Gtk.init (ref args);
 
+               var osso_context = new Osso.Context ("org.maemo.cinaest", "0.0.1", true, null);
+               if (osso_context == null) {
+                       return Osso.Status.ERROR;
+               }
+
                CinaestProgram app = new CinaestProgram ();
                app.run ();