Skip to content
  • Daniel Drake's avatar
    Improve print_data structure and on-disk format · 294f9ad4
    Daniel Drake authored
    Drivers now have an ID number. These will be assigned by me and documented
    on the wiki. 0 cannot be used.
    
    Drivers now define a devtype for each device they initialise. This is to
    cope with the situation where a driver can support varying devices where
    their print data is incompatible (i.e. image scaling is totally changed).
    This doesn't apply to any existing supported devices.
    
    Print data no longer includes driver name, and includes driver ID instead.
    
    Paths to saved print data now include driver ID and devtype, and no longer
    include driver name.
    
    APIs exposed for converting a print_data into a blob which can then
    be loaded back again later. Useful for systems who don't want to use
    my simple storage system (which is only aimed at a single user).
    
    File format is now defined and will be documented on the wiki. The header
    is larger as we can no longer rely on directory paths in all scenarios.
    
    Print data compat check now checks devtype and driver ID.
    294f9ad4