| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#include "EXTERN.h" |
| 5 |
#include "perl.h" |
| 6 |
#include "XSUB.h" |
| 7 |
|
| 8 |
#include "tagutils-common.h" |
| 9 |
#include "tagutils-flac.c" |
| 10 |
|
| 11 |
static PerlInterpreter *my_perl; |
| 12 |
|
| 13 |
int main(int argc, char** argv) { |
| 14 |
int i = 0; |
| 15 |
char* file = argv[1]; |
| 16 |
|
| 17 |
my_perl = perl_alloc(); |
| 18 |
perl_construct(my_perl); |
| 19 |
|
| 20 |
for (i = 0; i < 5000; i++) { |
| 21 |
HV* info = newHV(); |
| 22 |
HV* tags = newHV(); |
| 23 |
|
| 24 |
get_flac_metadata(file, info, tags); |
| 25 |
} |
| 26 |
|
| 27 |
perl_destruct(my_perl); |
| 28 |
perl_free(my_perl); |
| 29 |
|
| 30 |
return 0; |
| 31 |
} |