blob: 751b6294924776a7ba0891203d659c7a4009bcaf (
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
31
32
33
|
#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, const 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
// print all group and entry information
void group_debug(GROUP *g);
#endif
|