1bcd944584
FossilOrigin-Name: aad31b66d4026159283cb42fe630a61d892565c3a0d95a90de7bca7aaf6be9a8
27 lines
514 B
C
27 lines
514 B
C
/*
|
|
* Treebird - Lightweight frontend for Pleroma
|
|
*
|
|
* Licensed under the BSD 2-Clause License
|
|
*/
|
|
|
|
#ifndef MIME_H
|
|
#define MIME_H
|
|
#include <stddef.h>
|
|
|
|
struct http_form_info
|
|
{
|
|
char* name;
|
|
char* filename;
|
|
char* content_type;
|
|
char* value;
|
|
size_t value_size;
|
|
};
|
|
|
|
char* get_mime_boundary(char* content_type, char** res);
|
|
char* read_form_data(char* boundary,
|
|
char* begin,
|
|
struct http_form_info* info,
|
|
size_t size);
|
|
|
|
#endif /* MIME_H */
|