]> git.pond.sub.org Git - empserver/commitdiff
Fix comments added in commit bf436a44.
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 6 Sep 2008 12:55:45 +0000 (08:55 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 9 Sep 2008 01:26:40 +0000 (21:26 -0400)
include/file.h

index 9e9b166e2180282503e96cd2c0b63b734c6eaee3..d73ee6cd84b913bf42e1066f47dd71c7a9cb097d 100644 (file)
@@ -61,17 +61,18 @@ struct empfile {
 
     /* User callbacks, may all be null */
     /*
-     * Called after read, with file type and element as arguments.
-     * May modify the element.  Modifications are visible to caller of
-     * ef_read(), but have no effect on the file.
+     * Called after read.  ID is the element id, and ELT is the
+     * element read.  May modify the element.  Modifications are
+     * visible to caller of ef_read(), but have no effect on the file.
      */
-    void (*postread)(int, void *);
+    void (*postread)(int id, void *elt);
     /*
-     * Called before write, with file type and element as arguments.
-     * May modify the element.  Modifications will be visible to
-     * caller of ef_write() and are written to the file.
+     * Called before write.  ID is the element id, and ELT is the
+     * element being written.  May modify the element.  Modifications
+     * will be visible to caller of ef_write() and are written to the
+     * file.
      */
-    void (*prewrite)(int, void *);
+    void (*prewrite)(int id, void *elt);
 };
 
 struct emptypedstr {