summaryrefslogtreecommitdiff
path: root/group.c
diff options
context:
space:
mode:
authorlouie <lshprung@yahoo.com>2020-06-26 17:26:04 -0700
committerlouie <lshprung@yahoo.com>2020-06-26 17:26:04 -0700
commit7985c945cf11c50559daa8bdb03f9a023deb2da3 (patch)
tree05551b47e2b976a84b90df1cbe1c3727ab232839 /group.c
parentf41dcb2b06bb379ff47a9f66cf509426706567f9 (diff)
Basic ability to launch entries
Diffstat (limited to 'group.c')
-rw-r--r--group.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/group.c b/group.c
index be2594d..7c6bc03 100644
--- a/group.c
+++ b/group.c
@@ -22,6 +22,7 @@ void group_add(char *gname, ENTRY *addme);
GROUP **get_groups();
char *get_gname(GROUP *g);
char *get_gprog(GROUP *g);
+void set_gprog(GROUP *g, char *p);
ENTRY *get_ghead(GROUP *g);
int get_ecount(GROUP *g);
int get_gcount();
@@ -128,6 +129,11 @@ char *get_gprog(GROUP *g){
return g->program;
}
+void set_gprog(GROUP *g, char *p){
+ assert(g != NULL);
+ strcpy(g->program, p);
+}
+
ENTRY *get_ghead(GROUP *g){
assert(g != NULL);
return g->head;