]> git.sur5r.net Git - i3/i3/blobdiff - include/util.h
first step of the big refactoring ("tree" branch).
[i3/i3] / include / util.h
index d1384962b1fa3bfee0647a61faa20448eae42551..937e654b6f8975412fd859380ba80277a267a9d3 100644 (file)
@@ -62,6 +62,13 @@ void *smalloc(size_t size);
  */
 void *scalloc(size_t size);
 
+/**
+ * Safe-wrapper around realloc which exits if realloc returns NULL (meaning
+ * that there is no more memory available).
+ *
+ */
+void *srealloc(void *ptr, size_t size);
+
 /**
  * Safe-wrapper around strdup which exits if malloc returns NULL (meaning that
  * there is no more memory available)
@@ -118,6 +125,7 @@ void check_error(xcb_connection_t *conn, xcb_void_cookie_t cookie,
  */
 char *convert_utf8_to_ucs2(char *input, int *real_strlen);
 
+#if 0
 /**
  * Returns the client which comes next in focus stack (= was selected before) for
  * the given container, optionally excluding the given client.
@@ -125,7 +133,9 @@ char *convert_utf8_to_ucs2(char *input, int *real_strlen);
  */
 Client *get_last_focused_client(xcb_connection_t *conn, Container *container,
                                 Client *exclude);
+#endif
 
+#if 0
 /**
  * Sets the given client as focused by updating the data structures correctly,
  * updating the X input focus and finally re-decorating both windows (to
@@ -156,6 +166,7 @@ void switch_layout_mode(xcb_connection_t *conn, Container *container, int mode);
  */
 Client *get_matching_client(xcb_connection_t *conn,
                             const char *window_classtitle, Client *specific);
+#endif
 
 /*
  * Restart i3 in-place