Hello Sachin, List, SRMRegisterPersistentStorageHandler(), takes in the open, read, write, close, unlink... function pointers from the Application. The SVRDatabase file is as of now a text file storing JSON string. Will it remain the same going forward or the application writer has the liberty to store the data as he wants, e.g. using SQL DB, etc...?
If it is left to the application then the appliaction has to be aware of the JSON formatting used and all the fields incase he wants to manuipulate before storing and recreate while reading, As the SRM expects the JSON string to be read/written to DB file. All the persistent handler functions are expecting/using FILE pointer to work on. Instead I think the SUCCESS/FAILURE returns will be better way forward as the FILE pointer may not be in alignment to android space apps. If not then I guess SRM can handle the file I/O at its end only. Please share your thoughts. Thanks, Ashwini -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150624/a5e862d8/attachment.html>
