C generated get/put
vaind opened this issue · 3 comments
vaind commented
Having written the C example in README.md, I've realized more useful code could be generated for C users, e.g. get and put operations:
obx_id task_put(OBX_box* box, Task* task);
Task* task_read(OBX_store* store, OBX_box* box, obx_id id);
greenrobot commented
why task_read() and not task_get()?
vaind commented
No reason, it's just the way it rolled off my fingers when writing the example, it should be task_get()
for consistency.