Skip to content

Commit

Permalink
Add authors to core_info.c
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Nov 7, 2013
1 parent 3124dff commit 460533a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ core_info_list_t *core_info_list_new(const char *modules_path)
if (config_get_string(core_info[i].data, "supported_extensions", &core_info[i].supported_extensions) &&
core_info[i].supported_extensions)
core_info[i].supported_extensions_list = string_split(core_info[i].supported_extensions, "|");

if (config_get_string(core_info[i].data, "authors", &core_info[i].authors) &&
core_info[i].authors)
core_info[i].authors_list = string_split(core_info[i].authors, "|");
}

if (!core_info[i].display_name)
Expand Down Expand Up @@ -129,7 +133,9 @@ void core_info_list_free(core_info_list_t *core_info_list)
free(core_info_list->list[i].path);
free(core_info_list->list[i].display_name);
free(core_info_list->list[i].supported_extensions);
free(core_info_list->list[i].authors);
string_list_free(core_info_list->list[i].supported_extensions_list);
string_list_free(core_info_list->list[i].authors_list);
config_file_free(core_info_list->list[i].data);
}

Expand Down
2 changes: 2 additions & 0 deletions core_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ typedef struct {
config_file_t *data;
char *display_name;
char *supported_extensions;
char *authors;
struct string_list *supported_extensions_list;
struct string_list *authors_list;
} core_info_t;

typedef struct {
Expand Down

0 comments on commit 460533a

Please sign in to comment.