- CtdlLogPrintf(CTDL_ALERT, "Unable to initialize libcurl.\n");
-// goto abort;
- }
-
- evcurl_handle_start(IO);
-}
-
-citthread_mutex_t RSSQueueMutex; /* locks the access to the following vars: */
-HashList *RSSQueueRooms = NULL;
-HashList *RSSFetchUrls = NULL;
-
-
-/*
- while (fgets(buf, sizeof buf, fp) != NULL && !CtdlThreadCheckStop()) {
- buf[strlen(buf)-1] = 0;
-
- extract_token(instr, buf, 0, '|', sizeof instr);
- if (!strcasecmp(instr, "rssclient")) {
-
- use_this_rncptr = NULL;
-
- extract_token(feedurl, buf, 1, '|', sizeof feedurl);
-
- /* If any other rooms have requested the same feed, then we will just add this
- * room to the target list for that client request.
- * / TODO: how do we do this best?
- for (rncptr=rnclist; rncptr!=NULL; rncptr=rncptr->next) {
- if (!strcmp(ChrPtr(rncptr->Url), feedurl)) {
- use_this_rncptr = rncptr;
- }
- }
- * /
- /* Otherwise create a new client request * /
- if (use_this_rncptr == NULL) {
- rncptr = (rssnetcfg *) malloc(sizeof(rssnetcfg));
- memset(rncptr, 0, sizeof(rssnetcfg));
- rncptr->ItemType = RSS_UNSET;
-
- rncptr->Url = NewStrBufPlain(feedurl, -1);
- rncptr->rooms = NULL;
- rnclist = rncptr;
- use_this_rncptr = rncptr;
-
- }
-
- /* Add the room name to the request * /
- if (use_this_rncptr != NULL) {
- if (use_this_rncptr->rooms == NULL) {
- rncptr->rooms = strdup(qrbuf->QRname);
- }
- else {
- len = strlen(use_this_rncptr->rooms) + strlen(qrbuf->QRname) + 5;
- ptr = realloc(use_this_rncptr->rooms, len);
- if (ptr != NULL) {
- strcat(ptr, "|");
- strcat(ptr, qrbuf->QRname);
- use_this_rncptr->rooms = ptr;
- }
- }
- }
- }
-