Commit 48893f8f authored by Matthieu Hautreux's avatar Matthieu Hautreux Committed by Morris Jette
Browse files

[PATCH 01/17] layouts_mgr: add shortkey field into layouts_keydef struct

The layouts_keydef struct only stored the associated key name prefixed by
the type of layouts (or mgr) inorder to have a unique identification of
all the keydefs in the central hash table.

To help accessing the original key name as specified in the layout conf
file, the shortkey field now stores a copy of the original key. This is
a short increase in the memory footprint of the layouts_keydef struct but
as this structure is only allocated once per key in a layout, the global
overhead is very small but provides an efficient way to retrieve the key
name.
parent 5fc68cae
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment