|
From: Andre R. <and...@us...> - 2004-11-04 21:13:01
|
Update of /cvsroot/frontierkernel/Frontier/Common/headers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11877/Common/headers Modified Files: oplist.h Log Message: Moved definition of tylistrecord from oplist.h to oplist.c to make it opaque to all users. Added opgetisrecord, opsetisrecord, opsetreleaseitemcallback, and oplistvisit functions. Adapted users to use new accessor functions instead of accessing a list record directly. All this is in preparation for eventually replacing the implementations of the list and record data types. (Still to be discussed.) Index: oplist.h =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/headers/oplist.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** oplist.h 29 Oct 2004 09:02:16 -0000 1.2 --- oplist.h 4 Nov 2004 21:12:51 -0000 1.3 *************** *** 34,48 **** ! typedef struct tylistrecord { ! ! struct tyoutlinerecord ** houtline; /*the list is stored in an outline*/ ! ! long ctitems; /*number of items in the list, can be gotten without traversal*/ ! boolean isrecord; /*do items have names?*/ ! ! boolean (*releaseitemcallback) (Handle); /*routine that releases one of **your** handles*/ ! } tylistrecord, *ptrlistrecord, **hdllistrecord; --- 34,44 ---- + /*types*/ ! typedef struct tylistrecord **hdllistrecord; /* 2004-11-04 aradke: now opaque */ ! typedef boolean (*oplistreleaseitemcallback) (Handle); /* 2004-11-04 aradke: part of tylistrecord */ ! ! typedef boolean (*opvisitlistcallback) (Handle, ptrstring, ptrvoid); /* 2004-11-04 aradke */ *************** *** 73,76 **** --- 69,78 ---- extern long opcountlistitems (hdllistrecord); + extern boolean opgetisrecord (hdllistrecord); /* 2004-11-04 aradke */ + + extern void opsetisrecord (hdllistrecord hlist, boolean flisrecord); /* 2004-11-04 aradke */ + + extern oplistreleaseitemcallback opsetreleaseitemcallback (hdllistrecord, oplistreleaseitemcallback); /* 2004-11-04 aradke */ + extern boolean opdeletelistitem (hdllistrecord, long, ptrstring); *************** *** 83,87 **** extern boolean oploadstringlist (short, hdllistrecord *); ! ! --- 85,88 ---- extern boolean oploadstringlist (short, hdllistrecord *); ! extern boolean opvisitlist (hdllistrecord, opvisitlistcallback, ptrvoid); /* 2004-11-04 aradke */ |