Pass old element to empfile callback prewrite()
Change sct_prewrite(), shp_prewrite(), pln_prewrite(), lnd_prewrite(), nuk_prewrite() accordingly. New argument isn't used for anything, yet.
This commit is contained in:
parent
0bcd0a8422
commit
c5482e4bfb
9 changed files with 33 additions and 33 deletions
|
@ -67,12 +67,12 @@ struct empfile {
|
|||
*/
|
||||
void (*postread)(int id, void *elt);
|
||||
/*
|
||||
* 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.
|
||||
* Called before write. ID is the element id, OLD is the element
|
||||
* being updated (null unless it is cached) 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 id, void *elt);
|
||||
void (*prewrite)(int id, void *old, void *elt);
|
||||
};
|
||||
|
||||
struct emptypedstr {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue