Skip to content

Improve Rules file handling #10

Description

@Teknomancer

See discussion in 62eb75a.

Activity

  1. Teknomancer commented on Apr 3, 2021

    @Teknomancer
    OwnerAuthor

    We should be able use our existing HashTable implementation for the extension to mime-type mapping.

  2. augiedoggie commented on Apr 3, 2021

    @augiedoggie
    Collaborator

    We could probably use a BMessage to get the data from the archivers now that I think about it. It allows storing multiple entries under a single key.

  3. augiedoggie commented on Apr 3, 2021

    @augiedoggie
    Collaborator

    In the archivers we could do ...

    m_rulesMsg->AddString("application/x-zstd", ".zst");
    m_rulesMsg->AddString("application/x-zstd", ".zstd");
    ...
    

    and then iterate through them in the add-on loading code. Or the other way around with file extension as the key.

  4. self-assigned this
    on Apr 3, 2021
  5. augiedoggie commented on Apr 3, 2021

    @augiedoggie
    Collaborator

    I'll assign this one to me and work on it in a day or two if you haven't already started on it. I have some ideas on how to change things around.

  6. Teknomancer commented on Apr 3, 2021

    @Teknomancer
    OwnerAuthor

    I haven't started on it, thanks!

    Yes, using BMessage sounds good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions