Skip to content

Instantly share code, notes, and snippets.

[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]
@r10s
r10s / test-delta-groups.c
Last active October 21, 2020 19:34
check delta chat group creation
// 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", "some1@hello.com");
int contact_id2 = dc_create_contact(context, "some2", "some2@hello.com");
int chat_id = dc_create_group_chat(context, 0, "title1");
dc_add_contact_to_chat(context, chat_id, contact_id1);