blob: 2a4d11681070b0340588673255a63cddc4c2d730 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef GROUP_H
#define GROUP_H
#include "../config.h"
// a group/category for entries to be put in
typedef struct {
int id; // id from database
char name[BUF_LEN];
char desc[BUF_LEN];
char url[BUF_LEN];
//bool column
} Group;
// getters
int group_get_id(Group *g);
char *group_get_name(Group *g);
char *group_get_desc(Group *g);
char *group_get_url(Group *g);
// setters
void group_set_id(Group *g, int id);
void group_set_name(Group *g, char *name);
void group_set_desc(Group *g, char *desc);
void group_set_url(Group *g, char *url);
#endif
|