-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add callback functions #104
Conversation
4 similar comments
src/lceasy.c
Outdated
|
||
static int lcurl_easy_set_CHUNK_END_FUNCTION(lua_State *L){ | ||
lcurl_easy_t *p = lcurl_geteasy(L); | ||
return lcurl_easy_set_callback(L, p, &p->chunk_bgn, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix callback pointer
src/lceasy.c
Outdated
OPT_ENTRY(INFO_SSL_DATA_OUT ) | ||
OPT_ENTRY(INFO_SSL_DATA_IN ) | ||
#undef OPT_ENTRY | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add curl file types constants
src/lceasy.c
Outdated
lcurl_easy_t *p = lcurl_geteasy(L); | ||
return lcurl_easy_set_callback(L, p, &p->chunk_end, | ||
CURLOPT_CHUNK_END_FUNCTION, CURLOPT_CHUNK_DATA, | ||
"chunk_end", lcurl_chunk_bgn_callback |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe lcurl_chunk_end_callback?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really need tests :)
But this is FTP only functions and I do not know how to install ftp on travis without sudo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, for the Windows the library not compiled without the Lake. :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There MSVC project or luarocks make rockspecs/lua-curl-scm-0.rockspec
Close #103