File:
[Public] /
libwww /
Robot /
src /
HTQueue.c
Revision
1.1:
download - view:
text,
annotated -
select for diffs
Mon Oct 26 22:45:34 1998 UTC (25 years, 7 months ago) by
frystyk
Branches:
MAIN
CVS tags:
repeat-requests,
candidate-5-4-1,
before_webdav,
Release-5-4-0,
Release-5-3-1,
Release-5-2-8,
Release-5-2-6,
Release-5-2,
HEAD,
Before-New-Trace-Messages
New version of libwww webbot hacked up by John Punin: Conatins a full robots.txt parser and breadth first search algorithm
/*
** @(#) $Id: HTQueue.c,v 1.1 1998/10/26 22:45:34 frystyk Exp $
**
** W3C Webbot can be found at "http://www.w3.org/Robot/"
**
** Copyright 1995-1998 World Wide Web Consortium, (Massachusetts
** Institute of Technology, Institut National de Recherche en
** Informatique et en Automatique, Keio University). All Rights
** Reserved. This program is distributed under the W3C's Software
** Intellectual Property License. This program is distributed in the hope
** that it will be useful, but WITHOUT ANY WARRANTY; without even the
** implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
** PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
** details.
**
** Authors:
** JP John Punin
**
** History:
** Oct 1998 Written
*/
#include "HTQueue.h"
HTList * HTQueue_new(void)
{
return HTList_new();
}
BOOL HTQueue_delete(HTList *me)
{
return HTList_delete(me);
}
BOOL HTQueue_enqueue(HTList *me,void *newObject)
{
return HTList_addObject(me,newObject);
}
BOOL HTQueue_append(HTList *me,void *newObject)
{
return HTList_appendObject(me,newObject);
}
BOOL HTQueue_dequeue(HTList *me)
{
return HTList_removeFirstObject(me) ? YES : NO;
}
BOOL HTQueue_isEmpty(HTList *me)
{
return HTList_isEmpty(me);
}
void * HTQueue_headOfQueue(HTList *me)
{
return HTList_firstObject(me);
}
int HTQueue_count(HTList *me)
{
return HTList_count(me);
}
Webmaster