Define function return codes.

This commit is contained in:
Håvard Pettersson 2015-04-09 21:39:48 +02:00
parent 7721a245f3
commit cacd200a5c

View File

@ -22,5 +22,14 @@
extern struct t_weechat_plugin *weechat_plugin; 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 #endif // TOX_WEECHAT_H