Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added the CalDAVSend subroutine which is used when uploading data.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Thu, 3 Mar 2016 03:38:46 +0000 (03:38 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Thu, 3 Mar 2016 03:38:46 +0000 (03:38 +0000)
source/objects/CalDAV/CalDAV.cpp

index 256bc25..d9d81e4 100644 (file)
@@ -32,6 +32,29 @@ size_t CalDAVReceive(char *ReceivedBuffer, size_t Size, size_t NewMemoryBytes, s
        
 }
 
+size_t CalDAVSend(char *SendBuffer, size_t Size, size_t NewMemoryBytes, void *DataStruct){
+
+       struct CalDAVSendData *UploadPtr = (struct CalDAVSendData *)DataStruct;
+       
+       if (UploadPtr->sizeleft){
+
+               UploadPtr->sizeleft--;
+               char CharSend;
+
+               CharSend = (*UploadPtr->readptr)[UploadPtr->seek];
+               
+               *SendBuffer = CharSend;
+               
+               UploadPtr->seek++;
+
+               return 1;
+
+       }
+
+       return 0;
+
+}
+
 CalDAV::CalDAV(){
 
        // Setup the objects within the CalDAV connection 
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy