1/* 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 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 * 14 * Copyright 1992 Claude Lecommandeur. 15 */ 16 17#ifndef _CTWM_LIST_H 18#define _CTWM_LIST_H 19 20struct name_list { 21 name_list *next; /* pointer to the next name */ 22 char *name; /* the name of the window */ 23 void *ptr; /* list dependent data */ 24}; 25 26void AddToList(name_list **list_head, const char *name, void *ptr); 27void *LookInList(name_list *list_head, const char *name, 28 XClassHint *class); 29void *LookInNameList(name_list *list_head, const char *name); 30void *LookInListWin(name_list *list_head, TwmWindow *twin); 31bool IsInList(name_list *list_head, TwmWindow *twin); 32void *LookPatternInList(name_list *list_head, const char *name, 33 XClassHint *class); 34void *LookPatternInNameList(name_list *list_head, const char *name); 35bool GetColorFromList(name_list *list_head, char *name, 36 XClassHint *class, Pixel *ptr); 37void FreeList(name_list **list); 38 39bool match(const char *pattern, const char *string); 40 41#endif /* _CTWM_LIST_H */ 42 43