Implemented ipfs_pin_has_child

This commit is contained in:
Jose Marcial Vieira Bisneto 2017-01-05 19:01:24 -03:00
parent 4c330e29be
commit 6448a35a72
2 changed files with 39 additions and 0 deletions

View file

@ -40,4 +40,8 @@
// Return array index or -1 if fail.
PinMode ipfs_string_to_pin_mode (char *str);
int ipfs_pin_is_pinned (struct Pinned *p);
// Find out if the child is in the hash.
int ipfs_pin_has_child (struct FSRepo *ds,
unsigned char *hash, size_t hash_size,
unsigned char *child, size_t child_size);
#endif // IPFS_PIN_H