blob: d071c4f7212caeef66f329b8e35ea4acd98a7917 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "ext.h"
struct ASDFExtension asdfapi_ext_descriptor;
int asdfapi_ext_say_hello(const char *msg) {
printf("HELLO FROM %s:%s!\nMessage: %s\n", __FILE_NAME__, __FUNCTION__, msg);
return 0;
}
int asdfapi_ext_init() {
fprintf(stdout, "Initializing %s:%s\n", __FILE_NAME__ ,__FUNCTION__);
asdfapi_ext_new(&asdfapi_ext_descriptor, "Hello", "An extension that prints a hello message");
return 0;
}
|