Annotation of libwww/Robot/src/HTQueue.c, revision 1.1
1.1 ! frystyk 1: /*
! 2: ** @(#) $Id: HTFTP.c,v 1.98 1998/09/24 19:48:51 frystyk Exp $
! 3: **
! 4: ** W3C Webbot can be found at "http://www.w3.org/Robot/"
! 5: **
! 6: ** Copyright 1995-1998 World Wide Web Consortium, (Massachusetts
! 7: ** Institute of Technology, Institut National de Recherche en
! 8: ** Informatique et en Automatique, Keio University). All Rights
! 9: ** Reserved. This program is distributed under the W3C's Software
! 10: ** Intellectual Property License. This program is distributed in the hope
! 11: ** that it will be useful, but WITHOUT ANY WARRANTY; without even the
! 12: ** implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
! 13: ** PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
! 14: ** details.
! 15: **
! 16: ** Authors:
! 17: ** JP John Punin
! 18: **
! 19: ** History:
! 20: ** Oct 1998 Written
! 21: */
! 22:
! 23: #include "HTQueue.h"
! 24:
! 25: HTList * HTQueue_new(void)
! 26: {
! 27: return HTList_new();
! 28: }
! 29:
! 30: BOOL HTQueue_delete(HTList *me)
! 31: {
! 32: return HTList_delete(me);
! 33: }
! 34:
! 35: BOOL HTQueue_enqueue(HTList *me,void *newObject)
! 36: {
! 37: return HTList_addObject(me,newObject);
! 38: }
! 39: BOOL HTQueue_append(HTList *me,void *newObject)
! 40: {
! 41: return HTList_appendObject(me,newObject);
! 42: }
! 43:
! 44: BOOL HTQueue_dequeue(HTList *me)
! 45: {
! 46: return HTList_removeFirstObject(me) ? YES : NO;
! 47: }
! 48:
! 49: BOOL HTQueue_isEmpty(HTList *me)
! 50: {
! 51: return HTList_isEmpty(me);
! 52: }
! 53:
! 54: void * HTQueue_headOfQueue(HTList *me)
! 55: {
! 56: return HTList_firstObject(me);
! 57: }
! 58:
! 59: int HTQueue_count(HTList *me)
! 60: {
! 61: return HTList_count(me);
! 62: }
! 63:
Webmaster