From 7354b302b40b67c126020d84c182a8ec363c9cbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Tue, 2 Sep 2014 12:37:00 +0200 Subject: [PATCH] Initial commit. --- .gitignore | 1 + CMakeLists.txt | 16 ++++++++++++++++ src/tox-weechat.c | 20 ++++++++++++++++++++ src/tox-weechat.h | 4 ++++ 4 files changed, 41 insertions(+) create mode 100644 .gitignore create mode 100644 CMakeLists.txt create mode 100644 src/tox-weechat.c create mode 100644 src/tox-weechat.h 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