1 /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
3 list.h for the Openbox compositor
4 Copyright (c) 2008 Dana Jansens
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 See the COPYING file for a copy of the GNU General Public License.
24 /* To make a new LocoList, create 2 pointers: one for the head, one for the
25 tail. Initialize them both to NULL. Then pass them to loco_list_prepend.
28 typedef struct _LocoList {
29 struct _LocoList *next;
30 struct _LocoList *prev;
31 struct _LocoWindow *window;
34 LocoList* loco_list_prepend(LocoList **top, LocoList **bottom,
35 struct _LocoWindow *window);
37 void loco_list_delete_link(LocoList **top, LocoList **bottom,
40 void loco_list_move_before(LocoList **top, LocoList **bottom,
41 LocoList *move, LocoList *before);