home *** CD-ROM | disk | FTP | other *** search
- #ifndef __SOLUTION_H__
- #define __SOLUTION_H__
-
- // Do not modify this file
-
- #include <MacTypes.h>
- #include <Files.h>
-
- #ifdef __cplusplus
- extern "C" {
- #endif // __cplusplus
-
- typedef Handle StringsHandle; // Sequence of Pascal Strings packed together
- typedef Handle DatabaseHandle; // Must be a real handle
-
- pascal void DatabaseInit( DatabaseHandle *database, UInt32 field_count );
- pascal void DatabaseAddEntry( DatabaseHandle database, StringsHandle entry );
- pascal void DatabaseFindEntry( DatabaseHandle database, UInt32 field, ConstStr255Param match, StringsHandle *entry );
- pascal void DatabaseDeleteEntry( DatabaseHandle database, UInt32 field, ConstStr255Param match );
- pascal UInt32 DatabaseCount( DatabaseHandle database );
- pascal void DatabaseGetIndEntry( DatabaseHandle database, UInt32 index, StringsHandle *entry );
-
- #ifdef __cplusplus
- }
- #endif // __cplusplus
-
- #endif // __SOLUTION_H__