Code documentation
[aaf.git] / main.c
diff --git a/main.c b/main.c
index 58a6bf9183a58034d49fe26139635929195fcf07..a661c51e401544b56e5b7c648a484748e1d64b18 100644 (file)
--- 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);
        }