X-Git-Url: https://git.dlugolecki.net.pl/?p=aaf.git;a=blobdiff_plain;f=main.c;h=a661c51e401544b56e5b7c648a484748e1d64b18;hp=58a6bf9183a58034d49fe26139635929195fcf07;hb=840fcc0b624fc8fc14a96f05f55e96bb3916b6a1;hpb=e6c6b3292f3c26b784fa1188ea95ec3ec50a7b6a diff --git a/main.c b/main.c index 58a6bf9..a661c51 100644 --- a/main.c +++ b/main.c @@ -24,13 +24,13 @@ int main(int argc, char ** argv) return errno; } - if (read_aaf(in, &_aaf) != 0) { + if (aaf_read(in, &_aaf) != 0) { fprintf(stderr, "Problem occured when trying to read AAF file\n"); fclose(in); return 1; } - glyph_data = read_aaf_glyph_data(in, &_aaf); + glyph_data = aaf_read_glyph_data(in, &_aaf); if (glyph_data == NULL) { fprintf(stderr, "Problem occured when trying to read AAF glyph data\n"); fclose(in); @@ -63,22 +63,22 @@ int main(int argc, char ** argv) out = fopen(filename, "w"); if (out == NULL) { perror("Unable to open file for writing glyph"); - free_aaf_glyph_data(glyph_data); + aaf_free_glyph_data(glyph_data); fclose(in); return 3; } - if (write_aaf_glyph_as_pgm(out, glyph, data)) { + if (aaf_write_glyph_as_pgm(out, glyph, data)) { fprintf(stderr, "Error occured when trying to write glyph into PGM\n"); fclose(out); - free_aaf_glyph_data(glyph_data); + aaf_free_glyph_data(glyph_data); fclose(in); return 4; } fclose(out); } - free_aaf_glyph_data(glyph_data); + aaf_free_glyph_data(glyph_data); fclose(in); }