Added pinned struct.

This commit is contained in:
Jose Marcial Vieira Bisneto 2016-12-30 02:55:25 -03:00
parent 9d194ad484
commit f7a029ade3
2 changed files with 54 additions and 0 deletions

View file

@ -28,9 +28,16 @@
typedef int PinMode;
struct Pinned {
struct Cid *Key;
PinMode Mode;
struct Cid *Via;
};
int ipfs_pin_init ();
// Return pointer to string or NULL if invalid.
char *ipfs_pin_mode_to_string (PinMode mode);
// Return array index or -1 if fail.
PinMode ipfs_string_to_pin_mode (char *str);
int ipfs_pin_is_pinned (struct Pinned *p);
#endif // IPFS_PIN_H