Update
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
#ifndef TINYDFS_INCLUDED
|
||||
#define TINYDFS_INCLUDED
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef struct TinyDFS TinyDFS;
|
||||
|
||||
typedef enum {
|
||||
TINYDFS_RESULT_EMPTY,
|
||||
TINYDFS_RESULT_CREATE_ERROR,
|
||||
TINYDFS_RESULT_CREATE_SUCCESS,
|
||||
TINYDFS_RESULT_DELETE_ERROR,
|
||||
@@ -25,7 +27,7 @@ typedef struct {
|
||||
typedef int TinyDFS_Handle;
|
||||
#define TINYDFS_INVALID ((TinyDFS_Handle) -1)
|
||||
|
||||
TinyDFS* tinydfs_init(void);
|
||||
TinyDFS* tinydfs_init(char *addr, uint16_t port);
|
||||
void tinydfs_free(TinyDFS *tdfs);
|
||||
int tinydfs_wait(TinyDFS *tdfs, TinyDFS_Handle handle, TinyDFS_Result *result, int timeout);
|
||||
TinyDFS_Handle tinydfs_submit_create (TinyDFS *tdfs, char *path, int path_len, bool is_dir, unsigned int chunk_size);
|
||||
|
||||
Reference in New Issue
Block a user