This is using extern "C" to write function declarations that can be linked with C code. Note that when we just write extern, it defaults to “C++” language linkage. So, all functions and variables declared extern have language linkage.

See Language Linkage - cppreference.com