
/*-------------------------------------------------------------*/
typedef struct {
  netwib_uint32 recursionlevel;
  netwox_htmltag_elmtattr elmtattr;
  netwib_buf url;
} netwox_webspiderurl_item;

/*-------------------------------------------------------------*/
netwib_err netwox_webspiderurl_item_create(netwib_uint32 recursionlevel,
                                           netwox_htmltag_elmtattr elmtattr,
                                           netwib_constbuf *purl,
                                           netwib_ptr *ppitem);
netwib_err netwox_webspiderurl_item_erase(netwib_ptr pitem);

/*-------------------------------------------------------------*/
#define netwox_webspiderurl_ring_init(ppring) netwib_ring_init(&netwox_webspiderurl_item_erase,NULL,ppring)
#define netwox_webspiderurl_ring_close(ppring) netwib_ring_close(ppring,NETWIB_TRUE)

/*-------------------------------------------------------------*/
netwib_err netwox_webspiderurl_add(netwox_webspider *pwebspider,
                                   netwib_uint32 recursionlevel,/*start at 1*/
                                   netwox_htmltag_elmtattr elmtattr,
                                   netwib_constbuf *purl);

