////////////////////////////////////////////////////////// // Filename: BookmarkFileStructs.h // // Description: Bookmark Data Structure Definitions // // // // AUTHOR: Lucas Scharf, Jan 23 - Feb 17, 1998 // // // // REVISIONS: 1. Removed type BookmarkFileStruct // // 2. Made BookmarkDataStruct and // // FolderDataStruct suitable for use // // as doble-linked list nodes. // // // // VERSION: 2.00 // ////////////////////////////////////////////////////////// //////////////////////////////////////////////////////// // Multiple Inclusion Protection // //////////////////////////////////////////////////////// #ifndef BOOKMARKFILESTRUCTS_H #define BOOKMARKFILESTRUCTS_H //////////////////////////////////////////////////////// // Nexessary Information // //////////////////////////////////////////////////////// #include "Constants.h" //Global Constants ////////////////////////////////////////////////////////// // Data structure and assorted type declarations for // // holding the bookmark information. // ////////////////////////////////////////////////////////// //-- Declarations subordinate for BookmarkDataStruct -- //-- BookmarkDataStruct Declarations -- typedef struct BookmarkDataStructTag { //-- String Fields -- char Name[StringLength+1], //Title of the link URL[StringLength+1], //Text of the URL address Comment[StringLength+1]; //Optional text comment //-- Integer Fields -- int AddDate, //Timestamp of the date this URL was added to the Bookmark file LastVisit, //Timestamp of the last visit to this URL LastModified, //Timestamp of the last time this Bookmark entry was modified ParentEntryIndex; //EntryIndex of parent foler //-- Pointer Fields -- BookmarkDataStructTag *LinkPrevious, //Pointer to the previous BookmarkDataStruct in the double-linked list *LinkNext; //Pointer to the next BookmarkDataStruct in the double-linked list } BookmarkDataStruct; typedef BookmarkDataStruct *BookmarkDataPtr; //Pointer to Bookmark data ////////////////////////////////////////////////////////// // Data structure and assorted type declarations for // // holding the folder information // ////////////////////////////////////////////////////////// //-- Declarations subordinate for FolderDataStruct -- typedef struct FolderDataStructTag * FolderDataPtr; //Pointer to Folder data //-- FolderDataStruct Declarations -- typedef struct FolderDataStructTag { char Name[StringLength+1], //Title of the Folder Comment[StringLength+1]; //Optional text comment int AddDate, //Timestamp of the date this folder was added to the bookmark file EntryIndex, //ID of the parent of this folder, -1 if root ParentEntryIndex; //ID of the parent of this folder, -1 if root FolderDataPtr LinkPrevious, //Pointer to the previous FolderDataStruct in the double-linked list LinkNext; //Pointer to the next FolderDataStruct in the double-linked lsit } FolderDataStruct; #endif