Make it C++-compatible
This commit is contained in:
parent
53723e6e2f
commit
c8ef43e33b
23
minitar.h
23
minitar.h
@ -39,12 +39,21 @@ struct minitar_entry
|
|||||||
char* ptr;
|
char* ptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct minitar* minitar_open(const char* pathname);
|
#ifdef __cplusplus
|
||||||
struct minitar_entry* minitar_read_entry(struct minitar* mp);
|
extern "C"
|
||||||
void minitar_free_entry(struct minitar_entry* entry);
|
{
|
||||||
void minitar_rewind(struct minitar* mp);
|
#endif
|
||||||
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);
|
struct minitar* minitar_open(const char* pathname);
|
||||||
int minitar_close(struct minitar* mp);
|
struct minitar_entry* minitar_read_entry(struct minitar* mp);
|
||||||
|
void minitar_free_entry(struct minitar_entry* entry);
|
||||||
|
void minitar_rewind(struct minitar* mp);
|
||||||
|
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
|
#endif
|
Loading…
Reference in New Issue
Block a user