swaybar: Move swaybar_teardown to free_state

This commit is contained in:
Mikkel Oscar Lyderik 2016-01-24 01:03:08 +01:00
parent fcc47cb3bd
commit 6140f9c42c
6 changed files with 87 additions and 49 deletions

View file

@ -11,7 +11,7 @@ typedef enum {UNDEF, TEXT, I3BAR} command_protocol;
struct status_line {
list_t *block_line;
char *text_line;
const char *text_line;
command_protocol protocol;
};
@ -42,4 +42,9 @@ struct status_line *init_status_line();
*/
bool handle_status_line(struct swaybar_state *st);
/**
* Free status line struct.
*/
void free_status_line(struct status_line *line);
#endif /* _SWAYBAR_STATUS_LINE_H */