summaryrefslogtreecommitdiff
path: root/src/number.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/number.h')
-rw-r--r--src/number.h24
1 files changed, 19 insertions, 5 deletions
diff --git a/src/number.h b/src/number.h
index caecff5..1fc6a09 100644
--- a/src/number.h
+++ b/src/number.h
@@ -22,10 +22,24 @@
#ifndef _RATPOISON_NUMBER_H
#define _RATPOISON_NUMBER_H 1
-int get_unique_window_number ();
-void return_window_number (int n);
-int add_window_number (int n);
-void init_numbers ();
-void free_numbers ();
+/* Keep track of a set of numbers. For frames and windows. */
+struct numset
+{
+ /* A list of the numbers taken. */
+ int *numbers_taken;
+
+/* the number of numbers currently stored in the numbers_taken
+ array. */
+ int num_taken;
+
+/* the size of the numbers_taken array. */
+ int max_taken;
+};
+
+struct numset *numset_new ();
+void numset_free (struct numset *ns);
+void numset_release (struct numset *ns, int n);
+int numset_request (struct numset *ns);
+int numset_add_num (struct numset *ns, int n);
#endif /* ! _RATPOISON_NUMBER_H */