From cacd200a5cf8ed49910d25dcf00bd2190096427d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Thu, 9 Apr 2015 21:39:48 +0200 Subject: [PATCH] Define function return codes. --- src/twc.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/twc.h b/src/twc.h index 525115e..7646201 100644 --- a/src/twc.h +++ b/src/twc.h @@ -22,5 +22,14 @@ extern struct t_weechat_plugin *weechat_plugin; +/// Return codes used throughout Tox-WeeChat. +enum t_twc_rc { + TWC_RC_OK, + /// Generic error return code. + TWC_RC_ERROR, + /// Malloc error return code. + TWC_RC_ERROR_MALLOC, +}; + #endif // TOX_WEECHAT_H