commit 7354b302b40b67c126020d84c182a8ec363c9cbe Author: Håvard Pettersson Date: Tue Sep 2 12:37:00 2014 +0200 Initial commit. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..378eac2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..b9d2e2d --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.0) + +project(tox-weechat) + +add_definitions(-std=c11) + +add_library(tox SHARED + src/tox-weechat.c +) + +# remove lib prefix +set_target_properties(tox PROPERTIES PREFIX "") + +target_link_libraries(tox toxcore) + +install(FILES build/tox.so DESTINATION ~/.weechat/plugins) diff --git a/src/tox-weechat.c b/src/tox-weechat.c new file mode 100644 index 0000000..b676ee0 --- /dev/null +++ b/src/tox-weechat.c @@ -0,0 +1,20 @@ +#include + +WEECHAT_PLUGIN_NAME("tox"); +WEECHAT_PLUGIN_DESCRIPTION("Tox protocol"); +WEECHAT_PLUGIN_AUTHOR("Håvard Pettersson "); +WEECHAT_PLUGIN_VERSION("0.1"); +WEECHAT_PLUGIN_LICENSE("GPL3"); + +int +weechat_plugin_init(struct t_weechat_plugin *plugin, + int argc, char *argv[]) +{ + return WEECHAT_RC_OK; +} + +int +weechat_plugin_end(struct t_weechat_plugin *plugin) +{ + return WEECHAT_RC_OK; +} diff --git a/src/tox-weechat.h b/src/tox-weechat.h new file mode 100644 index 0000000..337732b --- /dev/null +++ b/src/tox-weechat.h @@ -0,0 +1,4 @@ +#ifndef TOX_WEECHAT_H +#define TOX_WEECHAT_H + +#endif // TOX_WEECHAT_H