2024-03-30 04:39:02 +01:00
|
|
|
#ifndef ICONS_H_
|
|
|
|
#define ICONS_H_
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <wchar.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-03-30 04:39:02 +01:00
|
|
|
wchar_t *icon;
|
2024-03-29 23:34:26 +01:00
|
|
|
} icon;
|
|
|
|
|
|
|
|
unsigned int hash(char *name);
|
2024-03-30 04:39:02 +01:00
|
|
|
void hashtable_init();
|
|
|
|
void hashtable_print();
|
|
|
|
bool hashtable_add(icon *p);
|
|
|
|
icon *hashtable_search(char *name);
|
2024-03-29 23:34:26 +01:00
|
|
|
|
|
|
|
#endif
|