Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Updates for bindings #393

Merged
merged 4 commits into from
Oct 17, 2017
Merged

Updates for bindings #393

merged 4 commits into from
Oct 17, 2017

Conversation

braydonf
Copy link
Contributor

@braydonf braydonf commented Oct 17, 2017

Changes signatures for storj_bridge_revolve_file and storj_bridge_store_file to allocate upload and download state and return a pointer to it.

Alternative to solve issue raised in #391

@braydonf braydonf force-pushed the master branch 2 times, most recently from cf8dabf to a5c00aa Compare October 17, 2017 04:05
Braydon Fuller added 4 commits October 17, 2017 01:16
When implementing bindings such as in Ruby, allocating the download state within
storj_bridge_resolve_file will avoid the need to allocate from within Ruby in way
that Ruby garbage collection would be responsible for cleaning it up. In this case
the state is cleaned up within the function, so it should also be allocated with
the function.
Copy link
Contributor

@bryanchriswhite bryanchriswhite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me; tests passing in my env

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants