2012-08-01 04:34:13 +08:00
|
|
|
/*
|
|
|
|
* occurlfunction.h
|
|
|
|
*
|
|
|
|
* Created on: Mar 5, 2009
|
|
|
|
* Author: rikki
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _CURLFUNCTION_H_
|
|
|
|
#define _CURLFUNCTION_H_
|
|
|
|
|
|
|
|
|
2014-12-25 01:22:47 +08:00
|
|
|
extern OCerror ocset_curlopt(OCstate* state, int flag, void* value);
|
2014-12-27 03:37:07 +08:00
|
|
|
|
|
|
|
struct OCCURLFLAG* occurlflagbyflag(int flag);
|
|
|
|
struct OCCURLFLAG* occurlflagbyname(const char* name);
|
2014-12-25 01:22:47 +08:00
|
|
|
|
|
|
|
extern OCerror ocset_flags_perfetch(OCstate*);
|
|
|
|
extern OCerror ocset_flags_perlink(OCstate*);
|
2012-08-01 04:34:13 +08:00
|
|
|
|
2014-12-25 01:22:47 +08:00
|
|
|
extern OCerror ocset_curlflag(OCstate*,int);
|
|
|
|
extern OCerror ocset_curlstate(OCstate* state, int flag, void* value);
|
2012-08-01 04:34:13 +08:00
|
|
|
|
2014-12-25 01:22:47 +08:00
|
|
|
extern void oc_curl_debug(OCstate* state);
|
2012-08-01 04:34:13 +08:00
|
|
|
|
2014-12-25 01:22:47 +08:00
|
|
|
extern void oc_curl_printerror(OCstate* state);
|
|
|
|
extern int ocrc_netrc_required(OCstate* state);
|
|
|
|
extern void oc_curl_protocols(struct OCGLOBALSTATE*);
|
|
|
|
|
|
|
|
/* From occurlflags.c */
|
|
|
|
extern struct OCCURLFLAG* occurlflags(void);
|
|
|
|
extern struct OCCURLFLAG* occurlflagbyname(const char*);
|
|
|
|
extern struct OCCURLFLAG* occurlflagbyflag(int);
|
|
|
|
extern char* occombinehostport(const OCURI* uri);
|
|
|
|
|
|
|
|
#endif /*_CURLFUNCTION_H_*/
|