This file contains 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
[target.armv7-linux-androideabi] | |
linker = "/Users/bpetersen/android-ndk-r20b/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi16-clang" | |
[target.aarch64-linux-android] | |
linker = "/Users/bpetersen/android-ndk-r20b/toolchains/llvm/prebuilt/darwin-x86_64/bin/aarch64-linux-android21-clang" | |
[target.i686-linux-android] | |
linker = "/Users/bpetersen/android-ndk-r20b/toolchains/llvm/prebuilt/darwin-x86_64/bin/i686-linux-android16-clang" | |
[target.x86_64-linux-android] |
This file contains 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 snippet does not care about freeing allocated objects! | |
dc_context_t* context = dc_context_new(NULL, NULL, NULL); | |
dc_delete_file(context, "/tmp/somefile"); | |
dc_open(context, "/tmp/somefile", NULL); | |
int contact_id1 = dc_create_contact(context, "some1", "[email protected]"); | |
int contact_id2 = dc_create_contact(context, "some2", "[email protected]"); | |
int chat_id = dc_create_group_chat(context, 0, "title1"); | |
dc_add_contact_to_chat(context, chat_id, contact_id1); |