From 4e68f637300c0e360d49f8f672d0675d42da0d1f Mon Sep 17 00:00:00 2001 From: Louie Shprung Date: Sun, 11 Aug 2024 17:49:28 -0400 Subject: (Currently broken) reimplementation of group and entry --- src/include/group.h | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) (limited to 'src/include/group.h') diff --git a/src/include/group.h b/src/include/group.h index ab6f409..dc74bcc 100644 --- a/src/include/group.h +++ b/src/include/group.h @@ -1,17 +1,13 @@ #ifndef GROUP_H #define GROUP_H -typedef struct group GROUP; - -GROUP *create_group(char *new_name); - -void group_add(char *gname, ENTRY *addme); +#include -void group_rm(GROUP *g); +#include "entry.h" -void clean_groups(); //remove empty groups from linked list +typedef struct group GROUP; -GROUP **get_groups(); +GROUP *create_group(const char *new_name, const int entry_count); char *get_gname(GROUP *g); @@ -23,18 +19,12 @@ char *get_gflags(GROUP *g); void set_gflags(GROUP *g, char *p); -ENTRY *get_ghead(GROUP *g); +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 -void set_gquotes(GROUP *g, bool b); - -bool get_gquotes(GROUP *g); - -int get_gcount(); - -void group_debug(); //debug function to output all groups - #endif -- cgit From b5dd0df1808429a3c0ed1f86256962512b8273f5 Mon Sep 17 00:00:00 2001 From: Louie Shprung Date: Tue, 13 Aug 2024 21:06:03 -0400 Subject: Working implementation for lua config --- src/include/group.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include/group.h') diff --git a/src/include/group.h b/src/include/group.h index dc74bcc..89a8422 100644 --- a/src/include/group.h +++ b/src/include/group.h @@ -27,4 +27,7 @@ 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 -- cgit From 243853cd1692c56cae8642dd6bb35c3c75ff54f7 Mon Sep 17 00:00:00 2001 From: Louie Shprung Date: Wed, 14 Aug 2024 16:32:54 -0400 Subject: Working support for setting launcher --- src/include/group.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include/group.h') diff --git a/src/include/group.h b/src/include/group.h index 89a8422..751b629 100644 --- a/src/include/group.h +++ b/src/include/group.h @@ -13,7 +13,7 @@ char *get_gname(GROUP *g); char *get_gprog(GROUP *g); -void set_gprog(GROUP *g, char *p); +void set_gprog(GROUP *g, const char *p); char *get_gflags(GROUP *g); -- cgit From 9adae33d5ffa4a72771266ba127f9ccc9b4b5221 Mon Sep 17 00:00:00 2001 From: Louie Shprung Date: Wed, 14 Aug 2024 16:51:06 -0400 Subject: Working support for setting launcher flags --- src/include/group.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include/group.h') diff --git a/src/include/group.h b/src/include/group.h index 751b629..bad33a5 100644 --- a/src/include/group.h +++ b/src/include/group.h @@ -17,7 +17,7 @@ void set_gprog(GROUP *g, const char *p); char *get_gflags(GROUP *g); -void set_gflags(GROUP *g, char *p); +void set_gflags(GROUP *g, const char *p); ENTRY **get_gentries(GROUP *g); -- cgit