4f462928e0f3fb1aea9a6209d9f3d4c91b2b01f6 chinhli Wed Nov 13 10:21:56 2013 -0800 Added new function findNextMatchingTag() to htmlPage.c struct htmlTag *findNextMatchingTag(struct htmlTag *list, char *name); /* Return first tag in list that is of type name or NULL if not found. * */ diff --git src/inc/htmlPage.h src/inc/htmlPage.h index a5f74b8..54eb795 100644 --- src/inc/htmlPage.h +++ src/inc/htmlPage.h @@ -223,17 +223,21 @@ struct htmlPage *htmlPageGetWithCookies(char *url, struct htmlCookie *cookies); /* Get page from URL giving server the given cookies. Note only the * name and value parts of the cookies need to be filled in. */ struct htmlPage *htmlPageGet(char *url); /* Get page from URL (may be a file). */ struct htmlPage *htmlPageForwarded(char *url, struct htmlCookie *cookies); /* Get html page. If it's just a forwarding link then get do the * forwarding. Cookies is a possibly empty list of cookies with * name and value parts filled in. */ struct htmlPage *htmlPageForwardedNoAbort(char *url, struct htmlCookie *cookies); /* Try and get an HTML page. Print warning and return NULL if there's a problem. */ + +struct htmlTag *findNextMatchingTag(struct htmlTag *list, char *name); +/* Return first tag in list that is of type name or NULL if not found. */ + #endif /* HTMLPAGE_H */