CTWM
Toggle main menu visibility
Loading...
Searching...
No Matches
/usr/src/RPM/BUILD/ctwm-4.1.0/list.h
Go to the documentation of this file.
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
20
struct
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
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);
30
void
*
LookInListWin
(
name_list
*list_head,
TwmWindow
*twin);
31
bool
IsInList
(
name_list
*list_head,
TwmWindow
*twin);
32
void
*
LookPatternInList
(
name_list
*list_head,
const
char
*name,
33
XClassHint *
class
);
34
void
*
LookPatternInNameList
(
name_list
*list_head,
const
char
*name);
35
bool
GetColorFromList
(
name_list
*list_head,
char
*name,
36
XClassHint *
class
, Pixel *ptr);
37
void
FreeList
(
name_list
**list);
38
39
bool
match
(
const
char
*pattern,
const
char
*
string
);
40
41
#endif
/* _CTWM_LIST_H */
42
GetColorFromList
bool GetColorFromList(name_list *list_head, char *name, XClassHint *class, Pixel *ptr)
Definition
list.c:194
LookInNameList
void * LookInNameList(name_list *list_head, const char *name)
Definition
list.c:130
match
int match(const char *p, const char *t)
Definition
list.c:433
IsInList
bool IsInList(name_list *list_head, TwmWindow *twin)
Definition
list.c:140
LookInListWin
void * LookInListWin(name_list *list_head, TwmWindow *twin)
Definition
list.c:135
FreeList
void FreeList(name_list **list)
Definition
list.c:239
LookPatternInList
void * LookPatternInList(name_list *list_head, const char *name, XClassHint *class)
Definition
list.c:145
AddToList
void AddToList(name_list **list_head, const char *name, void *ptr)
Definition
list.c:63
LookInList
void * LookInList(name_list *list_head, const char *name, XClassHint *class)
Definition
list.c:101
LookPatternInNameList
void * LookPatternInNameList(name_list *list_head, const char *name)
Definition
list.c:169
TwmWindow
Info and control for every X Window we take over.
Definition
twm_window_struct.h:34
name_list
Definition
list.h:20
name_list::next
name_list * next
Definition
list.h:21
name_list::ptr
void * ptr
Definition
list.h:23
name_list::name
char * name
Definition
list.h:22
list.h
Generated by
1.18.0