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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user