first commit 🎉

This commit is contained in:
ari melody 2025-05-05 17:44:20 +01:00
commit b6a4bb5a58
Signed by: ari
GPG key ID: 60B5F0386E3DDB7E
8 changed files with 213 additions and 0 deletions

22
plugins/test/Makefile Normal file
View file

@ -0,0 +1,22 @@
CC = clang
CFLAGS = -std=c17 -g -Wall
LD = ld
LDFLAGS = -shared -g -lc
LIBRARY = test.so
SRCS = $(shell find . -name '*.c')
OBJS = $(SRCS:.c=.o)
.PHONY: all
all: $(LIBRARY)
$(LIBRARY): $(OBJS)
$(LD) $(LDFLAGS) -o $(LIBRARY) $(OBJS)
%.c.o: %.c
$(CC) $(CFLAGS) -o $@ -c $<
clean:
rm -f $(OBJS) $(LIBRARY)

12
plugins/test/test.c Normal file
View file

@ -0,0 +1,12 @@
#include <stdio.h>
#include "../../include/ariplugin.h"
int ari_plugin_load() {
printf("hello from test plugin!\n");
return 0;
}
int ari_plugin_unload() {
printf("test plugin unloaded successfully!\n");
return 0;
}