Skip to content

Commit

Permalink
mxq_group: Retrieve and Publish tags
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Mar 29, 2021
1 parent 3526bbb commit fc04dee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mxq_group.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "mx_util.h"
#include "mx_mysql.h"

#define GROUP_FIELDS_CNT 36
#define GROUP_FIELDS_CNT 37
#define GROUP_FIELDS \
" group_id," \
" group_name," \
Expand All @@ -22,6 +22,7 @@
" group_blacklist," \
" group_whitelist," \
" prerequisites," \
" tags," \
" user_uid," \
" user_name," \
" user_gid," \
Expand Down Expand Up @@ -68,6 +69,7 @@ static int bind_result_group_fields(struct mx_mysql_bind *result, struct mxq_gro
res += mx_mysql_bind_var(result, idx++, string, &(g->group_blacklist));
res += mx_mysql_bind_var(result, idx++, string, &(g->group_whitelist));
res += mx_mysql_bind_var(result, idx++, string, &(g->prerequisites));
res += mx_mysql_bind_var(result, idx++, string, &(g->tags));

res += mx_mysql_bind_var(result, idx++, uint32, &(g->user_uid));
res += mx_mysql_bind_var(result, idx++, string, &(g->user_name));
Expand Down Expand Up @@ -112,6 +114,7 @@ static int bind_result_group_fields(struct mx_mysql_bind *result, struct mxq_gro
void mxq_group_free_content(struct mxq_group *g)
{
mx_free_null(g->prerequisites);
mx_free_null(g->tags);
mx_free_null(g->group_whitelist);
mx_free_null(g->group_blacklist);
mx_free_null(g->group_name);
Expand Down
1 change: 1 addition & 0 deletions mxq_group.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ struct mxq_group {
char * group_blacklist;
char * group_whitelist;
char * prerequisites;
char * tags;

uint32_t user_uid;
char * user_name;
Expand Down

0 comments on commit fc04dee

Please sign in to comment.