Code documentation
[aaf.git] / aaf.c
diff --git a/aaf.c b/aaf.c
index b692af8a2df4b56890ae6eafc18d0e50feeb0e97..4be250858a4606e21c5c2c53992dfa261c5f6ea9 100644 (file)
--- a/aaf.c
+++ b/aaf.c
@@ -7,7 +7,7 @@
 
 #include "aaf.h"
 
-int read_aaf(FILE * in, struct aaf * _aaf)
+int aaf_read(FILE * in, struct aaf * _aaf)
 {
        size_t elements = 0;
        int i;
@@ -40,7 +40,7 @@ int read_aaf(FILE * in, struct aaf * _aaf)
        return 0;
 }
 
-void free_aaf_glyph_data(struct aaf_glyph_data ** data)
+void aaf_free_glyph_data(struct aaf_glyph_data ** data)
 {
        int i;
 
@@ -58,7 +58,7 @@ void free_aaf_glyph_data(struct aaf_glyph_data ** data)
        data = NULL;
 }
 
-struct aaf_glyph_data ** read_aaf_glyph_data(FILE * in, struct aaf * _aaf)
+struct aaf_glyph_data ** aaf_read_glyph_data(FILE * in, struct aaf * _aaf)
 {
        struct aaf_glyph_data ** data = NULL;
        long offset;
@@ -83,7 +83,7 @@ struct aaf_glyph_data ** read_aaf_glyph_data(FILE * in, struct aaf * _aaf)
                data[i] = malloc(sizeof(struct aaf_glyph_data));
                if (data[i] == NULL) {
                        perror("Unable to allocate memory for glyph data");
-                       free_aaf_glyph_data(data);
+                       aaf_free_glyph_data(data);
                        fseek(in, offset, SEEK_SET);
                        return NULL;
                }
@@ -91,7 +91,7 @@ struct aaf_glyph_data ** read_aaf_glyph_data(FILE * in, struct aaf * _aaf)
                data[i]->pixels = malloc(sizeof(uint8_t) * glyph->w * glyph->h);
                if (data[i]->pixels == NULL) {
                        perror("Unable to allocate memory for glyph pixel data");
-                       free_aaf_glyph_data(data);
+                       aaf_free_glyph_data(data);
                        fseek(in, offset, SEEK_SET);
                        return NULL;
                }
@@ -105,7 +105,7 @@ struct aaf_glyph_data ** read_aaf_glyph_data(FILE * in, struct aaf * _aaf)
        return data;
 }
 
-int write_aaf_glyph_as_pgm(FILE * out, const struct aaf_glyph * glyph, const struct aaf_glyph_data * data)
+int aaf_write_glyph_as_pgm(FILE * out, const struct aaf_glyph * glyph, const struct aaf_glyph_data * data)
 {
        int w = 0;
        int h = 0;