These are the functions exposed by a datastore adaptor:
Function | Parameters | Purpose |
0: init | Initialize adaptor instance | |
1: free | Clean up instance before shutting down | |
2: info | Return XML describing the adaptor | |
3: get | XML * datasheet const char * name |
Get named value using datasheet as a reference. The datasheet may be modified with markers. |
4: set | XML * datasheet const char * name |
Set named value using datasheet as a reference. Same caveat. |
5: store | XML * data | Takes the data XML itself and uses "id" and "value" attributes to write it. This was created for transparent write-through to e.g. DATASTORE_currecord. |
6: isnull | XML * datasheet const char * name |
Test named value for being null. Optional. |
7: makenull | XML * datasheet const char * name |
Make named value null. Optional. |
Implementations:
This code and documentation are released under the terms of the GNU license. They are additionally copyright (c) 2000, Vivtek. All rights reserved except those explicitly granted under the terms of the GNU license. This presentation was prepared with LPML. Try literate programming. You'll like it. |