-
Notifications
You must be signed in to change notification settings - Fork 31
feat: add c binding #1322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
2-towns
wants to merge
74
commits into
master
Choose a base branch
from
feat/c-binding
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
feat: add c binding #1322
Changes from all commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
dba938d
Init library
2-towns 1ea8e0b
Define pragma raises
2-towns 11c868c
Move the updateLogLevel in the main file in order to avoid gcsafe error
2-towns c6b2578
Catch exception when shutting down taskpool
2-towns 869759b
Refactor the config in order to share parse functions with json parse
2-towns 75803af
Set dynamic build as default
2-towns e5fd789
Log fatal when command line argument cannot be parsed
2-towns 3bb2bd0
Define raises pragma for the whole file
2-towns fcdb0df
Avoid raising errors in the spawn threads
2-towns f28f6a3
Simplify a bit by removing handleRequest func
2-towns 6f9557b
Add limitation doc
2-towns 820d535
Use await keyword as soon as possible to yield to the event event loop
2-towns e1f6977
Replace version git command to get the last tag
2-towns c9670e8
Return the Codex version
2-towns fc5d069
Add codex revision
2-towns 8fe29c6
Provide a better API with ACK and OK differenciation
2-towns aa2128d
Add repo and fix pointer freeing memory
2-towns e9da685
Remove ACK and CODEX_CALL in order to return the first RET value in t…
2-towns 2d578f9
Add async method with callabck for Codex start
2-towns 5ea6081
Expose config and node via getters
2-towns d124146
Add debug feature
2-towns c6febf2
Add spr
2-towns d4958f2
Add peer id and add debug request
2-towns 899a194
Add log level
2-towns 0ed1d5a
Remove log level from the conf because the log level has to be set wi…
2-towns 1000a14
Add peer connect
2-towns f6b0f7c
Add peer debug
2-towns 4eda7c7
Add upload feature
2-towns f02d4b2
Refactoring
2-towns 8119a1d
Fix empty codex version and revision empty
2-towns 5b57739
Add method to upload from a reader
2-towns 2e76aeb
Update chunk size to uint32
2-towns 614684c
Add upload file API
2-towns 378dbfe
Add progress callback for upload
2-towns c01c913
Cap the percent to 100 because of the difference between the block si…
2-towns 5d56a45
Use cancelSoon instead of cancel
2-towns d9cb745
Add async version for file upload
2-towns 1cd6a94
Use faststream, provide better cleanup and comments
2-towns 4f40be4
Provide better comments
2-towns 3333e91
Add more comment
2-towns 9a86c48
Provide better api for progress, fix memory pointer issues and improv…
2-towns e6330e2
Provide better logs (hopefully)
2-towns 3535b21
Rename OnBlockStored
2-towns 56cf2d4
Remove dead code
2-towns 792ba0e
Refactore upload for better memory management with thread and avoid s…
2-towns 56b01d5
Refactor to avoid memory issues and add download local
2-towns 8bee7ec
Add download streaming mode
2-towns 421c88b
Add comments
2-towns f883bba
Add manifest
2-towns f9aa69a
Add storage list
2-towns e4d1d22
Add node storage fetch (network download to local node)
2-towns 007f92c
Add node space
2-towns 74e7f08
Add storage delete (block or dataset delete)
2-towns ffae046
Define raises for async pragma for waitUntil
2-towns 1d24d1a
Cancel the download in the example to avoid to keep a future and stre…
2-towns eb562bc
Fix log message
2-towns db5109a
Fix mock clock
2-towns 40cc019
Make rest api server optional
2-towns fe7e9b3
Reraise cancelled error
2-towns 95a562e
Add chronicles build args to filter logs
2-towns 56d5db1
Add chronicles logging configuration
2-towns 2784c88
Separate stop and close features for restartability
2-towns c028073
Export shutdown proc
2-towns 5531c78
Pass build parameters to the task build library
2-towns 34b19cf
Add p2p build argument
2-towns 0285ac8
Add missing peerAddresses
2-towns bb81405
Add blockRetries parameter
2-towns c6652af
Split close and destroy in separate functions
2-towns 76772fb
Add dll library build for windows
2-towns 847136f
Add specific chronicles_sinks for windows
2-towns 3bf2161
Fix missing &
2-towns 2bc5371
Remove skipParentCfg build param
2-towns 263767d
Fib lib name on windows
2-towns 7ada6af
Fix lib name on windows
2-towns File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this already called in
setupLogging
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed it from the
setupLogging
because the compiler was complaining aboutgcsafe
issue.