304.1.2
by Matthew Fuller
Run 'make indent' to reindent the world. |
1 |
/*
|
554.1.6
by Matthew Fuller
Collapse away redundant license texts in most .h files. These are all |
2 |
* TWM list handling external definitions
|
3 |
*
|
|
4 |
*
|
|
5 |
* Copyright 1988 by Evans & Sutherland Computer Corporation,
|
|
6 |
* Salt Lake City, Utah
|
|
7 |
* Portions Copyright 1989 by the Massachusetts Institute of Technology
|
|
8 |
* Cambridge, Massachusetts
|
|
1
by Claude Lecommandeur
CTWM version 1.1 |
9 |
*
|
10 |
* $XConsortium: list.h,v 1.12 90/09/14 14:54:42 converse Exp $
|
|
11 |
*
|
|
12 |
* 11-Apr-88 Tom LaStrange Initial Version.
|
|
13 |
*
|
|
554.1.6
by Matthew Fuller
Collapse away redundant license texts in most .h files. These are all |
14 |
* Copyright 1992 Claude Lecommandeur.
|
15 |
*/
|
|
1
by Claude Lecommandeur
CTWM version 1.1 |
16 |
|
484
by Matthew Fuller
Consistently rename all the include guards so they match the filename, |
17 |
#ifndef _CTWM_LIST_H
|
18 |
#define _CTWM_LIST_H
|
|
1
by Claude Lecommandeur
CTWM version 1.1 |
19 |
|
304.1.2
by Matthew Fuller
Run 'make indent' to reindent the world. |
20 |
struct name_list { |
21 |
name_list *next; /* pointer to the next name */ |
|
337.1.1
by Matthew Fuller
Alignify. |
22 |
char *name; /* the name of the window */ |
337.1.2
by Matthew Fuller
Make the whatever-type data in struct name_list a void * rather than a |
23 |
void *ptr; /* list dependent data */ |
1
by Claude Lecommandeur
CTWM version 1.1 |
24 |
};
|
25 |
||
492.2.29
by Matthew Fuller
Collapse away from unnecessary alignment whitespace. |
26 |
void AddToList(name_list **list_head, const char *name, void *ptr); |
27 |
void *LookInList(name_list *list_head, const char *name, |
|
28 |
XClassHint *class); |
|
29 |
void *LookInNameList(name_list *list_head, const char *name); |
|
556.1.36
by Matthew Fuller
Add another shortcut func to return the list stuff with our standard |
30 |
void *LookInListWin(name_list *list_head, TwmWindow *twin); |
556.1.21
by Matthew Fuller
Add a trivial wrapper to cover an overwhelmingly common case. |
31 |
bool IsInList(name_list *list_head, TwmWindow *twin); |
492.2.29
by Matthew Fuller
Collapse away from unnecessary alignment whitespace. |
32 |
void *LookPatternInList(name_list *list_head, const char *name, |
33 |
XClassHint *class); |
|
34 |
void *LookPatternInNameList(name_list *list_head, const char *name); |
|
492.2.96
by Matthew Fuller
bool-ify another couple boolean functions. |
35 |
bool GetColorFromList(name_list *list_head, char *name, |
492.2.29
by Matthew Fuller
Collapse away from unnecessary alignment whitespace. |
36 |
XClassHint *class, Pixel *ptr); |
37 |
void FreeList(name_list **list); |
|
93
by Richard Levitte
- Convert all functions to use proper prototypes. |
38 |
|
492.2.96
by Matthew Fuller
bool-ify another couple boolean functions. |
39 |
bool match(const char *pattern, const char *string); |
1
by Claude Lecommandeur
CTWM version 1.1 |
40 |
|
484
by Matthew Fuller
Consistently rename all the include guards so they match the filename, |
41 |
#endif /* _CTWM_LIST_H */ |
1
by Claude Lecommandeur
CTWM version 1.1 |
42 |