Skip to content

Commit

Permalink
v1.36
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeduglas committed Sep 10, 2018
1 parent 9133a68 commit 6f4f8db
Show file tree
Hide file tree
Showing 6 changed files with 198 additions and 247 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ Click on the Save icon 'floppy disk' and the Green arrow to close.


## Recent changes
v1.36

- NEW: curl::StrError(CURLcode errcode) static function returns meaningful error message.
- FIX: TCurlMimeClass.SetDataCB(part,hugedata,TRUE) did not dispose allocated memory for hugedata.
- CHG: TCurlMailClass now uses curl mime api.

v1.35

- NEW: TCurlMimeClass.SetDataCB method sets a callback-based data source for a mime part's body.
Expand Down
6 changes: 6 additions & 0 deletions history/changes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
## Version history
v1.36

- NEW: curl::StrError(CURLcode errcode) static function returns meaningful error message.
- FIX: TCurlMimeClass.SetDataCB(part,hugedata,TRUE) did not dispose allocated memory for hugedata.
- CHG: TCurlMailClass now uses curl mime api.

v1.35

- NEW: TCurlMimeClass.SetDataCB method sets a callback-based data source for a mime part's body.
Expand Down
9 changes: 7 additions & 2 deletions libsrc/libcurl.clw
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
!** libcurl for Clarion v1.34
!** 01.09.2018
!** libcurl for Clarion v1.36
!** 10.09.2018
!** [email protected]

MEMBER
Expand Down Expand Up @@ -227,6 +227,11 @@ bRead BOOL
END

RETURN sData

curl::StrError PROCEDURE(CURLcode errcode)
CODE
RETURN curl_easy_strerror(errcode)

!!!endregion

!!!region curl global functions
Expand Down
9 changes: 7 additions & 2 deletions libsrc/libcurl.inc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
!** libcurl for Clarion v1.35
!** 04.09.2018
!** libcurl for Clarion v1.36
!** 10.09.2018
!** [email protected]

INCLUDE('DynStr.inc'), ONCE
Expand Down Expand Up @@ -777,6 +777,8 @@ filled LONG !bytes written
curl::GlobalInit(CURL_GLOBAL_ENUM pFlag = CURL_GLOBAL_DEFAULT), CURLcode, PROC
curl::GlobalCleanup()
curl::StrError(CURLcode errcode), STRING
END
! CreateFile, WriteFile, CloseHandle etc
Expand Down Expand Up @@ -1027,6 +1029,7 @@ SetOptions PROCEDURE(), CURLcode, PROC, VIRTUAL, PROTECTED
CreateHeader PROCEDURE(*TCurlMailData mail), PRIVATE
CreateBody PROCEDURE(*TCurlMailData mail), PRIVATE
CreateAttachments PROCEDURE(*TCurlMailData mail), PRIVATE
HasInlineAttachments PROCEDURE(), BOOL, PRIVATE
Server PROCEDURE(STRING pServer, LONG pPort, <STRING pHelo>) !smtp.gmail.com, 587
Expand Down Expand Up @@ -1432,4 +1435,6 @@ SetSubparts PROCEDURE(curl_mimepart part, TCurlMimeClass sub
!!!<param name="pHugeData">pointer to the data bytes.</param>
!!!<param name="pDoDispose">call DISPOSE(pHugeData) after the transfer terminates.</param>
SetDataCB PROCEDURE(curl_mimepart part, CONST *STRING pHugeData, BOOL pDoDispose = FALSE), CURLcode, PROC


END
Loading

0 comments on commit 6f4f8db

Please sign in to comment.