desktop-shell: remove warnings
authorJaehoon Jeong <jh01.j@samsung.com>
Tue, 28 Jul 2015 05:01:07 +0000 (14:01 +0900)
committerJaehoon Jeong <jh01.j@samsung.com>
Tue, 28 Jul 2015 05:01:07 +0000 (14:01 +0900)
Change-Id: Ice633c42c993cb51a79f0c1aa50e25f03a07e3a9

src/lib/desktop-shell/desktop-shell-internal.h
src/lib/desktop-shell/shell-surface.c

index 4169620..52ceb0b 100644 (file)
@@ -182,5 +182,42 @@ void
 shell_surface_set_transient(shell_surface_t *shsurf, pepper_surface_t *parent,
                             int32_t x, int32_t y, uint32_t flags);
 
+void
+shell_surface_ack_configure(shell_surface_t *shsurf, uint32_t serial);
+
+void
+shell_surface_set_geometry(shell_surface_t *shsurf, int32_t x, int32_t y, int32_t w, int32_t h);
+
+void
+shell_surface_set_maximized(shell_surface_t *shsurf, pepper_output_t *output);
+
+void
+shell_surface_unset_maximized(shell_surface_t *shsurf);
+
+void
+shell_surface_set_fullscreen(shell_surface_t *shsurf, pepper_output_t *output,
+                             uint32_t method, uint32_t framerate);
+
+void
+shell_surface_unset_fullscreen(shell_surface_t *shsurf);
+
+void
+shell_surface_set_minimized(shell_surface_t *shsurf);
+
+void
+shell_get_output_workarea(desktop_shell_t *shell, pepper_output_t *output,
+                          pixman_rectangle32_t  *area);
+
+
 pepper_bool_t
 init_wl_shell(desktop_shell_t *shell);
+
+void
+fini_wl_shell(desktop_shell_t *shell);
+
+pepper_bool_t
+init_xdg_shell(desktop_shell_t *shell);
+
+void
+fini_xdg_shell(desktop_shell_t *shell);
+
index 754e2e4..d0f4fbf 100644 (file)
@@ -544,7 +544,7 @@ shell_surface_set_class(shell_surface_t *shsurf, const char* class_)
 static void
 shell_surface_map_toplevel(shell_surface_t *shsurf)
 {
-    int32_t x = 0, y = 0, w = 0, h = 0;
+    int32_t x = 0, y = 0;
 
     /* Restore original geometry */
     if (shsurf->type == SHELL_SURFACE_TYPE_FULLSCREEN ||
@@ -688,7 +688,7 @@ shell_surface_center_on_output_by_scale(shell_surface_t                 *shsurf,
 static void
 switch_output_mode(pepper_output_t *output, pepper_output_mode_t *mode)
 {
-    pepper_output_mode_t *new_mode;
+    pepper_output_mode_t *new_mode = NULL;;
 
     /* TODO: Find the output mode to the smallest mode that can fit */
 
@@ -748,7 +748,7 @@ shell_surface_map_fullscreen(shell_surface_t *shsurf)
 
     /* TODO: Create background black view */
     {
-        pepper_surface_t *surface;
+        pepper_surface_t *surface = NULL;
 
         /**
          * surface->x = output_geom->w;