summaryrefslogtreecommitdiff
path: root/src/process_url.h
diff options
context:
space:
mode:
authorMole Shang <[email protected]>2023-08-09 15:00:56 +0800
committerMole Shang <[email protected]>2023-08-09 17:27:16 +0800
commit0947040d657bea73042bffd7a2c5c172d9c312a7 (patch)
tree9b1df14b6641c4062d666cff99f70265d78766ec /src/process_url.h
parent750643d1c7dd0b278f767eb832bb4e570c01d83f (diff)
downloadhinata-0947040d657bea73042bffd7a2c5c172d9c312a7.tar.gz
hinata-0947040d657bea73042bffd7a2c5c172d9c312a7.tar.bz2
hinata-0947040d657bea73042bffd7a2c5c172d9c312a7.zip
process_url: expose some new functions to be control cookies and referer
Diffstat (limited to 'src/process_url.h')
-rw-r--r--src/process_url.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/process_url.h b/src/process_url.h
index 760ee49..00f7a74 100644
--- a/src/process_url.h
+++ b/src/process_url.h
@@ -58,9 +58,13 @@ void curl_cleanup(status_t *);
void poll_status(status_t *);
+void add_cookie(char *cookie);
+
+void set_referer(char *referer);
+
int get(const char *, char **);
-bool get_info(const char *URL, long *psize, char **p_content_type);
+bool get_info(const char *URL, long *psize, char **p_content_type, char **p_cookie);
void add_url(const char *, const char *, const char *, const char *, callback_t,
callback_struct_t *);