summaryrefslogtreecommitdiff
path: root/src/include/group.h
blob: 89a8422c6a5c9e752bc020745f44335ea4a2831f (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, 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