PR_PUBLIC_API(void) updateNewHistItem (DBT *key, DBT *data)
PR_PUBLIC_API(void) updateNewHistItem (DBT *key, DBT *data);	    extern	char	*profileDirURL; extern	char	*gGlobalHistoryURL;    extern	int	RDF_WEEKOF, RDF_WITHINLASTHOUR, RDF_TODAY, RDF_DAY_0; extern	int	RDF_RELATEDLINKSNAME;    PLHashTable     *hostHash = 0; RDFT grdf = NULL; RDFT gHistoryStore = 0; PRBool ByDateOpened = 0;    char    *prefixList[] = { "about:", "javascript:", "livescript:", "mailbox:", "mailto:", "mocha:", "news:", "pop3", "snews:", "view-source", "wysiwyg:", NULL };  char    *suffixList[] = { ".gif", ".jpg", ".jpeg", ".xbm", ".pfr", ".class", ".tmp", ".js", ".rdf", ".mcf", ".mco", NULL };  char   *intermediateList[] = { ".gif", ".GIF",  NULL };    void collateHistory (RDFT r, RDF_Resource u, PRBool byDateFlag)
PR_PUBLIC_API(void)updateNewHistItem (DBT *key, DBT *data){  time_t	last,first,numaccess;  int32 flg = (int32)*((char*)data->data + 3*sizeof(int32));  if (!displayHistoryItem((char*)key->data)) return;  if (grdf != NULL) {    HIST_COPY_INT32(&last, (time_t *)((char *)data->data));    HIST_COPY_INT32(&first, (time_t *)((char *)data->data + sizeof(int32)));    HIST_COPY_INT32(&numaccess, (time_t *)((char *)data->data + 2*sizeof(int32)));        if (hostHash) collateOneHist(grdf, gNavCenter->RDF_History, 				 (char*)key->data,                        /* url */				 ((char*)data->data + 4*sizeof(int32)),   /* title */				 last, first, numaccess, 0);    if (ByDateOpened) collateOneHist(grdf, gNavCenter->RDF_History, 				     (char*)key->data,                        /* url */				     ((char*)data->data + 4*sizeof(int32)),   /* title */				     last, first, numaccess, 1);  }}