Store output names as a linked list

Currently, only one name is ever added, and only the first name is
ever accessed; actually using the capability to store and access
multiple names comes in the following commits.
This commit is contained in:
Vladimir Panteleev
2017-09-09 07:37:37 +00:00
parent 30b1ab38b3
commit d01a59b922
5 changed files with 44 additions and 10 deletions

View File

@ -49,7 +49,7 @@ Output *get_output_from_string(Output *current_output, const char *output_str) {
*
*/
char *output_primary_name(Output *output) {
return output->name;
return SLIST_FIRST(&output->names_head)->name;
}
Output *get_output_for_con(Con *con) {