36eedce Use dynamic structures instead of predefined ones

1 file Authored by Carlos Alberto Lopez Perez 5 years ago, Committed by ahs3 5 years ago,
    Use dynamic structures instead of predefined ones
    
     * The file /proc/acpi/wakeup can have much more than 25 entries.
       In my computer (Dell E6420) I have 27 entries.
       So instead of using an array of [x] entries better use dynamic
       vectors and push the new entries when a new line from the file
       is read.
    
     * The name of the device is not ever 4 characters. For example I
       have a device called "LID" which is 3 characters long.
       Instead of using a fixed size for the device we split the line
       on the first tab (\t) and use the first part.
    
        
file modified
+11 -12