2024-03-30 04:39:02 +01:00
|
|
|
#ifndef ICONS_H_
|
|
|
|
#define ICONS_H_
|
|
|
|
|
2024-03-29 23:34:26 +01:00
|
|
|
#define MAX_NAME 30
|
2024-03-30 14:00:16 +01:00
|
|
|
#define TABLE_SIZE 100
|
2024-03-29 23:34:26 +01:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
char name[MAX_NAME];
|
2024-11-01 00:19:58 +01:00
|
|
|
char *icon;
|
2024-03-29 23:34:26 +01:00
|
|
|
} icon;
|
|
|
|
|
|
|
|
unsigned int hash(char *name);
|
2024-11-05 00:02:35 +01:00
|
|
|
void hashtable_init(void);
|
|
|
|
void hashtable_print(void);
|
2024-11-17 15:49:24 +01:00
|
|
|
int hashtable_add(icon *p);
|
2024-03-30 04:39:02 +01:00
|
|
|
icon *hashtable_search(char *name);
|
2024-03-29 23:34:26 +01:00
|
|
|
|
|
|
|
#endif
|