summaryrefslogtreecommitdiff
path: root/plugins/static/mime.h
blob: c3641b5ebc6fadcbd2939337fa6c8238c3ebdcbb (plain)
1
2
3
4
5
6
7
8
9
10
#pragma once


// Must be called at least once in the application, and those calls must not be
// simultaneous (because this function is not thread-safe itself).
void mime_init();

// Returns pointer to internal buffer, don't free
// This function is thread-safe.
const char* mime_detect(const char *path);