radareorg / r2pm

Radare2 cross platform package manager
GNU Lesser General Public License v3.0
34 stars 12 forks source link

Accept and return C types #14

Closed qbarrand closed 5 years ago

qbarrand commented 5 years ago

This MR makes the library accept and return C types instead of Go ones. It also brings c/r2pm.c which is a very basic example of how to call the library from C code.

radare commented 5 years ago

Just use r2 -H for this

On 10 Aug 2019, at 20:53, Maijin notifications@github.com wrote:

@Maijin commented on this pull request.

In c/r2pm.c:

@@ -0,0 +1,10 @@ +#include "libr2pm.h" + +int main() {

  • R2pmSetDebug(1);
  • char* path = "/home/quentin/.local/share/radare2/r2pm/"; should be user independent

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.