Make it C++-compatible

This commit is contained in:
apio 2022-11-06 12:35:30 +01:00
parent 53723e6e2f
commit c8ef43e33b

View File

@ -39,6 +39,11 @@ struct minitar_entry
char* ptr;
};
#ifdef __cplusplus
extern "C"
{
#endif
struct minitar* minitar_open(const char* pathname);
struct minitar_entry* minitar_read_entry(struct minitar* mp);
void minitar_free_entry(struct minitar_entry* entry);
@ -47,4 +52,8 @@ struct minitar_entry* minitar_find_by_name(struct minitar* mp, const char* name)
struct minitar_entry* minitar_find_any_of(struct minitar* mp, enum minitar_file_type type);
int minitar_close(struct minitar* mp);
#ifdef __cplusplus
}
#endif
#endif