blob: dc74bccf9a38f260424cc729a2c33a7b63f63f71 (
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
28
29
30
|
#ifndef GROUP_H
#define GROUP_H
#include <stdbool.h>
#include "entry.h"
typedef struct group GROUP;
GROUP *create_group(const char *new_name, const int entry_count);
char *get_gname(GROUP *g);
char *get_gprog(GROUP *g);
void set_gprog(GROUP *g, char *p);
char *get_gflags(GROUP *g);
void set_gflags(GROUP *g, char *p);
ENTRY **get_gentries(GROUP *g);
void set_gentry(GROUP *g, int entry_index, ENTRY *new_entry);
int get_ecount(GROUP *g);
void set_ecount(GROUP *g, int new_count); //for use in hiding entries
#endif
|