build/: Allow to build the compositor w/o waltham
[src/agl-compositor.git] / src / shell.c
index 2ecf4c0..f059de6 100644 (file)
@@ -107,6 +107,7 @@ ivi_set_desktop_surface_fullscreen(struct ivi_surface *surface)
        agl_shell_desktop_advertise_application_id(ivi, surface);
 }
 
+#ifdef HAVE_WALTHAM
 void
 ivi_destroy_waltham_destroy(struct ivi_surface *surface)
 {
@@ -177,6 +178,17 @@ ivi_output_notify_waltham_plugin(struct ivi_surface *surface)
            api->surface_push_to_remote(weston_surface, app_id, trans_remote, NULL);
 }
 
+#else
+void
+ivi_destroy_waltham_destroy(struct ivi_surface *surface)
+{
+}
+static void
+ivi_output_notify_waltham_plugin(struct ivi_surface *surface)
+{
+}
+#endif
+
 static void
 ivi_set_desktop_surface_remote(struct ivi_surface *surface)
 {