diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2019-04-19 22:44:11 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2019-04-19 22:44:11 -0400 |
| commit | 4d23e818bc168ddf37f2dabda026399fc8c702c2 (patch) | |
| tree | 96535c4292d14ca1e5315d387f0282f78cd7167a /common | |
| parent | 32b2f057682d0bf063052eb060ea8f0ba4c2c2c5 (diff) | |
swaynag: revamp type configs
This revamps the type configs for swaynag. All sizing attributes for
swaynag are now `ssize_t` instead of `uint32_t` to allow for a default
value of `-1`, which allows for `0` to be a valid value. Additionally,
the initialization of the type configs has been changed from a simple
calloc to use a new function `swaynag_type_new`. `swaynag_type_new`
calloc's the memory, checks for an allocation failure, sets the name,
and all sizes to -1. The layering order has also been changed to
default, general config, type config, and as highest priority command
line arguments. Finally, `swaynag_type_merge` has been modified to
handle the layering and sizing changes.
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions
