aboutsummaryrefslogtreecommitdiff
path: root/extensions/ext_hello.c
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/ext_hello.c')
-rw-r--r--extensions/ext_hello.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/extensions/ext_hello.c b/extensions/ext_hello.c
new file mode 100644
index 0000000..d071c4f
--- /dev/null
+++ b/extensions/ext_hello.c
@@ -0,0 +1,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;
+} \ No newline at end of file