Skip to content
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

Problem: No ffi bindings for ndn-cpp-c #12

Merged
merged 2 commits into from
Oct 21, 2018

Conversation

clacke
Copy link
Member

@clacke clacke commented Oct 21, 2018

Solution: Define and start on ndn-cpp-c-bindings.

Start with common.h.

Solution: Define and start on ndn-cpp-c-bindings.

Start with common.h.
Solution: Create a test binary.

 - racket2nix looks in the build-time LD_LIBRARY_PATH for configuring
   the ffi lookup path.

Issues:

 - The camelCase convention won't work because the prefix is
   snake_case. Wrote the symbol name manually for now.
   We can write our own convention that adds the ndn_ prefix and makes
   the rest camelCase.
 - Types should also be dash-case, and they should have the _ prefix,
   as per Racket ffi convention.

    rkt-ndn/ndn-cpp-c-bindings$ nix-build
    [ . . . ]
    rkt-ndn/ndn-cpp-c-bindings$ ./result/bin/test-ndn-cpp-c-bindings
    epoch milliseconds: 1540153647999.7
@sjmackenzie sjmackenzie merged commit 562fc40 into fractalide:master Oct 21, 2018
@clacke clacke deleted the ndn-cpp-c-bindings branch October 21, 2018 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants