datastore_put now accepts a DatastoreRecord struct

yamux
jmjatlanta 2017-09-13 12:39:50 -05:00
parent 09e2a2291f
commit 5712e920d1
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ struct Datastore {
// function pointers for datastore operations
int (*datastore_open)(int argc, char** argv, 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_cursor_open)(struct Datastore* datastore);
int (*datastore_cursor_close)(struct Datastore* datastore);

View File

@ -91,7 +91,7 @@ int test_secio_handshake() {
// attempt to write the protocol, and see what comes back
char* protocol = "/secio/1.0.0\n";
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;
size_t bytes_read = 0;