summaryrefslogtreecommitdiff
path: root/group.c
diff options
context:
space:
mode:
authorlouie <lshprung@yahoo.com>2020-12-23 18:20:46 -0800
committerlouie <lshprung@yahoo.com>2020-12-23 18:20:46 -0800
commitf9227cef5bcbe9f3a3fe3487ed1cc358cff37932 (patch)
tree5a009fd6587f075c5a48a9b8c665347ed151507e /group.c
parentfa8e3992ef7060168770ccccabdfe3b2982ea700 (diff)
Fixed Windows configuration auto-generation, added new setLauncherRaw option
Diffstat (limited to 'group.c')
-rw-r--r--group.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/group.c b/group.c
index 821adf3..a34556f 100644
--- a/group.c
+++ b/group.c
@@ -17,6 +17,7 @@ typedef struct group{
struct entry *tail;
struct group *next;
int entry_count;
+ bool launcher_quotes; //set by a group option whether or not the launcher should be wrapped by quotes
} GROUP;
GROUP *create_group(char *new_name);
@@ -32,6 +33,8 @@ void set_gflags(GROUP *g, char *p);
ENTRY *get_ghead(GROUP *g);
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
@@ -50,6 +53,7 @@ GROUP *create_group(char *new_name){
new->tail = NULL;
new->next = NULL;
new->entry_count = 0;
+ new->launcher_quotes = true;
group_count++;
return new;
@@ -228,6 +232,15 @@ void set_ecount(GROUP *g, int new_count){
g->entry_count = new_count;
}
+void set_gquotes(GROUP *g, bool b){
+ assert(g != NULL);
+ g->launcher_quotes = b;
+}
+
+bool get_gquotes(GROUP *g){
+ return g->launcher_quotes;
+}
+
int get_gcount(){
return group_count;
}