43 lines
906 B
C
43 lines
906 B
C
/*
|
|
* v1_key_to_path.h
|
|
*
|
|
* Maps a string key to a path within a volume.
|
|
*/
|
|
|
|
#ifndef _v1_key_to_path_H_
|
|
#define _v1_key_to_path_H_
|
|
|
|
#include <string.h>
|
|
#include "../external/cJSON.h"
|
|
#include "../include/list.h"
|
|
#include "../include/keyValuePair.h"
|
|
#include "../include/binary.h"
|
|
|
|
typedef struct v1_key_to_path_t v1_key_to_path_t;
|
|
|
|
|
|
|
|
|
|
typedef struct v1_key_to_path_t {
|
|
char *key; // string
|
|
int mode; //numeric
|
|
char *path; // string
|
|
|
|
int _library_owned; // Is the library responsible for freeing this object?
|
|
} v1_key_to_path_t;
|
|
|
|
__attribute__((deprecated)) v1_key_to_path_t *v1_key_to_path_create(
|
|
char *key,
|
|
int mode,
|
|
char *path
|
|
);
|
|
|
|
void v1_key_to_path_free(v1_key_to_path_t *v1_key_to_path);
|
|
|
|
v1_key_to_path_t *v1_key_to_path_parseFromJSON(cJSON *v1_key_to_pathJSON);
|
|
|
|
cJSON *v1_key_to_path_convertToJSON(v1_key_to_path_t *v1_key_to_path);
|
|
|
|
#endif /* _v1_key_to_path_H_ */
|
|
|