Implemented conversion between PinMode and string.
This commit is contained in:
parent
ef380f2a69
commit
9d194ad484
2 changed files with 26 additions and 0 deletions
|
@ -29,4 +29,8 @@
|
|||
typedef int PinMode;
|
||||
|
||||
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);
|
||||
#endif // IPFS_PIN_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue