Added pinned struct.
This commit is contained in:
parent
9d194ad484
commit
f7a029ade3
2 changed files with 54 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue