aboutsummaryrefslogtreecommitdiff
path: root/extensions/ext_hello.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-07-08 09:45:14 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-07-08 09:45:14 -0400
commit6adfb65f6646537abb0ad717614eec26ff14761c (patch)
tree1bbe40dd148313d3cd61ff22bd7b76852ad07102 /extensions/ext_hello.c
downloadasdfapi-6adfb65f6646537abb0ad717614eec26ff14761c.tar.gz
Initial commit
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