mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
705a946882
Implementation of hooks using C interface basedon dlfcn. Added test plugin and makefile to build it. In order to test it add the followin into your profrc: [plugins] load=test-c-plugin.so and execute profanity piping stderr to some file. The file should contain all entries whenever the plugin function is triggered. It seem to be workin but some parts are missing.
13 lines
215 B
Makefile
13 lines
215 B
Makefile
|
|
all: test-c-plugin.so
|
|
|
|
%.so:%.o
|
|
$(CC) -shared -fpic -o $@ $^
|
|
|
|
%.o:%.c
|
|
$(CC) $(INCLUDE) -D_GNU_SOURCE -D_BSD_SOURCE -fpic -O3 -std=c99 \
|
|
-Wall -Wextra -pedantic -c -o $@ $<
|
|
|
|
clean:
|
|
$(RM) test-c-plugin.so
|