Rev 4821 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4821 | Rev 5043 | ||
---|---|---|---|
Line 53... | Line 53... | ||
53 | #include "utils/ring.h" |
53 | #include "utils/ring.h" |
Line 54... | Line 54... | ||
54 | 54 | ||
55 | /* Define this to turn on verbose fetch logging */ |
55 | /* Define this to turn on verbose fetch logging */ |
Line -... | Line 56... | ||
- | 56 | #undef DEBUG_FETCH_VERBOSE |
|
- | 57 | ||
- | 58 | #ifdef DBG |
|
- | 59 | #undef DBG |
|
- | 60 | #endif |
|
- | 61 | //#define DBG(s) __menuet__debug_out(s) /* For the debug messages in BOARD */ |
|
56 | #undef DEBUG_FETCH_VERBOSE |
62 | #define DBG(s) LOG((s)) /* So that we see debug in Netsurf's LOG files */ |
Line 57... | Line 63... | ||
57 | 63 | ||
58 | bool fetch_active; /**< Fetches in progress, please call fetch_poll(). */ |
64 | bool fetch_active; /**< Fetches in progress, please call fetch_poll(). */ |
59 | 65 | ||
Line 512... | Line 518... | ||
512 | 518 | ||
513 | void fetch_poll(void) |
519 | void fetch_poll(void) |
514 | { |
520 | { |
515 | scheme_fetcher *fetcher = fetchers; |
521 | scheme_fetcher *fetcher = fetchers; |
516 | scheme_fetcher *next_fetcher; |
- | |
517 | 522 | scheme_fetcher *next_fetcher; |
|
Line 518... | Line 523... | ||
518 | fetch_dispatch_jobs(); |
523 | fetch_dispatch_jobs(); |
519 | 524 | ||
520 | if (!fetch_active) |
525 | if (!fetch_active) |
Line 526... | Line 531... | ||
526 | lwc_string_data(fetcher->scheme_name))); */ |
531 | lwc_string_data(fetcher->scheme_name))); */ |
527 | fetcher->poll_fetcher(fetcher->scheme_name); |
532 | fetcher->poll_fetcher(fetcher->scheme_name); |
528 | } |
533 | } |
529 | fetcher = next_fetcher; |
534 | fetcher = next_fetcher; |
530 | } |
535 | } |
- | 536 | /* LOG(("Returning from fetch_poll\n")); */ |
|
531 | } |
537 | } |
Line 532... | Line 538... | ||
532 | 538 | ||
533 | 539 | ||
Line 667... | Line 673... | ||
667 | } |
673 | } |
Line 668... | Line 674... | ||
668 | 674 | ||
669 | void |
675 | void |
670 | fetch_send_callback(const fetch_msg *msg, struct fetch *fetch) |
676 | fetch_send_callback(const fetch_msg *msg, struct fetch *fetch) |
671 | { |
677 | { |
672 | __menuet__debug_out("Inside fetch_send_callback\n"); |
- | |
673 | 678 | /* LOG(("Inside fetch_send_callback.\n")); */ |
|
674 | fetch->callback(msg, fetch->p); |
679 | fetch->callback(msg, fetch->p); |
675 | __menuet__debug_out("After fetch->callback \n"); |
680 | /* LOG(("After fetch->callback \n")); */ |
Line 676... | Line 681... | ||
676 | } |
681 | } |
677 | 682 |