Implemented conversion between PinMode and string.

This commit is contained in:
Jose Marcial Vieira Bisneto 2016-12-30 01:50:45 -03:00
parent ef380f2a69
commit 9d194ad484
2 changed files with 26 additions and 0 deletions

View file

@ -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