diff options
| author | frosty <gabriel@bwaaa.monster> | 2026-03-05 04:50:32 +0000 |
|---|---|---|
| committer | frosty <gabriel@bwaaa.monster> | 2026-03-05 04:50:32 +0000 |
| commit | 24cec7a35072ac50e1fe902a925e69330866dbca (patch) | |
| tree | f60bb7c38b0b952e074f9b8f8d1cef758d7f8ec8 /src/Scraping/Scraping.h | |
| parent | 5ed5a6ecc749e8b557ea62f04a444e203f4e48f6 (diff) | |
| download | omnisearch-24cec7a35072ac50e1fe902a925e69330866dbca.tar.gz | |
made formatting more consistent
Diffstat (limited to 'src/Scraping/Scraping.h')
| -rw-r--r-- | src/Scraping/Scraping.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Scraping/Scraping.h b/src/Scraping/Scraping.h index 0865825..e33f529 100644 --- a/src/Scraping/Scraping.h +++ b/src/Scraping/Scraping.h @@ -11,7 +11,7 @@ typedef struct { } SearchResult; typedef int (*ParserFunc)(const char *engine_name, xmlDocPtr doc, - SearchResult **out_results, int max_results); + SearchResult **out_results, int max_results); typedef struct { const char *name; @@ -20,8 +20,8 @@ typedef struct { const char *referer; const char *page_param; - int page_multiplier; - int page_base; + int page_multiplier; + int page_base; ParserFunc parser; } SearchEngine; @@ -36,7 +36,7 @@ typedef struct { char *query; SearchResult **out_results; int max_results; - int page; + int page; CURL *handle; MemoryBuffer response; int results_count; @@ -46,7 +46,7 @@ extern const SearchEngine ENGINE_REGISTRY[]; extern const int ENGINE_COUNT; int scrape_engine(const SearchEngine *engine, const char *query, - SearchResult **out_results, int max_results); + SearchResult **out_results, int max_results); int scrape_engines_parallel(ScrapeJob *jobs, int num_jobs); |
