Rename the DB things.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3656 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
#include "ssb.export.h"
|
||||
|
||||
#include "ssb.db.h"
|
||||
#include "ssb.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
@ -51,7 +52,7 @@ void tf_ssb_export(tf_ssb_t* ssb, const char* key)
|
||||
|
||||
uint8_t* blob = NULL;
|
||||
size_t size = 0;
|
||||
if (!tf_ssb_blob_get(ssb, app_blob_id, &blob, &size)) {
|
||||
if (!tf_ssb_db_blob_get(ssb, app_blob_id, &blob, &size)) {
|
||||
printf("Did not find blob for %s: %s.\n", key, app_blob_id);
|
||||
return;
|
||||
}
|
||||
@ -75,7 +76,7 @@ void tf_ssb_export(tf_ssb_t* ssb, const char* key)
|
||||
|
||||
uint8_t* file_blob = NULL;
|
||||
size_t file_size = 0;
|
||||
if (tf_ssb_blob_get(ssb, blob_id, &file_blob, &file_size)) {
|
||||
if (tf_ssb_db_blob_get(ssb, blob_id, &file_blob, &file_size)) {
|
||||
snprintf(file_path, sizeof(file_path), "apps/%s/%s/%s", user, path, file_name);
|
||||
_write_file(file_path, file_blob, file_size);
|
||||
free(file_blob);
|
||||
|
Reference in New Issue
Block a user