datastore_put now accepts a DatastoreRecord struct
This commit is contained in:
parent
09e2a2291f
commit
5712e920d1
2 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ struct Datastore {
|
||||||
// function pointers for datastore operations
|
// function pointers for datastore operations
|
||||||
int (*datastore_open)(int argc, char** argv, struct Datastore* datastore);
|
int (*datastore_open)(int argc, char** argv, struct Datastore* datastore);
|
||||||
int (*datastore_close)(struct Datastore* datastore);
|
int (*datastore_close)(struct Datastore* datastore);
|
||||||
int (*datastore_put)(const unsigned char* key, size_t key_size, unsigned char* data, size_t data_length, const struct Datastore* datastore);
|
int (*datastore_put)(struct DatastoreRecord* record, const struct Datastore* datastore);
|
||||||
int (*datastore_get)(const unsigned char* key, size_t key_size, struct DatastoreRecord** record, const struct Datastore* datastore);
|
int (*datastore_get)(const unsigned char* key, size_t key_size, struct DatastoreRecord** record, const struct Datastore* datastore);
|
||||||
int (*datastore_cursor_open)(struct Datastore* datastore);
|
int (*datastore_cursor_open)(struct Datastore* datastore);
|
||||||
int (*datastore_cursor_close)(struct Datastore* datastore);
|
int (*datastore_cursor_close)(struct Datastore* datastore);
|
||||||
|
|
|
@ -91,7 +91,7 @@ int test_secio_handshake() {
|
||||||
// attempt to write the protocol, and see what comes back
|
// attempt to write the protocol, and see what comes back
|
||||||
char* protocol = "/secio/1.0.0\n";
|
char* protocol = "/secio/1.0.0\n";
|
||||||
int protocol_size = strlen(protocol);
|
int protocol_size = strlen(protocol);
|
||||||
secure_session.insecure_stream->write(&secure_session, protocol, protocol_size);
|
secure_session.insecure_stream->write(&secure_session, (unsigned char*)protocol, protocol_size);
|
||||||
|
|
||||||
unsigned char* buffer = NULL;
|
unsigned char* buffer = NULL;
|
||||||
size_t bytes_read = 0;
|
size_t bytes_read = 0;
|
||||||
|
|
Loading…
Reference in a new issue