Allow users of libtoastyfs to operate on files/directories with specific version tags

This commit is contained in:
2025-11-24 14:34:57 +01:00
parent 1281bf0822
commit afad13f44f
6 changed files with 128 additions and 42 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ int main(void)
ToastyString path = TOASTY_STR("/first_file");
int ret = toasty_create_file(toasty, path, 1024);
int ret = toasty_create_file(toasty, path, 1024, NULL);
if (ret < 0) {
printf("Couldn't create file\n");
toasty_disconnect(toasty);
@@ -22,7 +22,7 @@ int main(void)
}
char data[] = "Hello, world!";
ret = toasty_write(toasty, path, 0, data, sizeof(data)-1);
ret = toasty_write(toasty, path, 0, data, sizeof(data)-1, 0);
if (ret < 0) {
printf("Couldn't write to file\n");
toasty_disconnect(toasty);