]> git.sur5r.net Git - i3/i3/blobdiff - include/table.h
Bugfix: null-terminate buffer
[i3/i3] / include / table.h
index de83c7d0357972e70681be2880d3da8042b23b4e..6236bef56e1283c0ae85dd65583ae8476bd29908 100644 (file)
@@ -21,7 +21,8 @@
 #define CUR_CELL (CUR_TABLE[current_col][current_row])
 
 extern Workspace *c_ws;
-extern Workspace workspaces[10];
+extern TAILQ_HEAD(workspaces_head, Workspace) *workspaces;
+//extern int num_workspaces;
 extern int current_col;
 extern int current_row;
 
@@ -37,19 +38,35 @@ void expand_table_rows_at_head(Workspace *workspace);
 /** Add one column to the table */
 void expand_table_cols(Workspace *workspace);
 
-/** Inserts one column at the table’s head */
+/**
+ * Inserts one column at the table’s head
+ *
+ */
 void expand_table_cols_at_head(Workspace *workspace);
 
-/** Performs simple bounds checking for the given column/row */
-bool cell_exists(int col, int row);
+/**
+ * Performs simple bounds checking for the given column/row
+ *
+ */
+bool cell_exists(Workspace *ws, int col, int row);
 
-/** Shrinks the table by "compacting" it, that is, removing completely empty rows/columns */
+/**
+ * Shrinks the table by "compacting" it, that is, removing completely empty
+ * rows/columns
+ *
+ */
 void cleanup_table(xcb_connection_t *conn, Workspace *workspace);
 
-/** Fixes col/rowspan (makes sure there are no overlapping windows) */
+/**
+ * Fixes col/rowspan (makes sure there are no overlapping windows)
+ *
+ */
 void fix_colrowspan(xcb_connection_t *conn, Workspace *workspace);
 
-/** Prints the table’s contents in human-readable form for debugging */
+/**
+ * Prints the table’s contents in human-readable form for debugging
+ *
+ */
 void dump_table(xcb_connection_t *conn, Workspace *workspace);
 
 #endif