Permalink
Browse files

add irssi abi check function

Irssi 0.8.18 introduces versioning for module ABI
  • Loading branch information...
horgh committed Mar 10, 2016
1 parent 2f40781 commit bfdc4160371ee47cbb46cb4b9ea01c28b54f0be1
Showing with 15 additions and 0 deletions.
  1. +10 −0 src/module.c
  2. +5 −0 src/module.h
@@ -80,3 +80,13 @@ tcl_deinit(void) {
deinit_commands();
deinit_signals();
}

#ifdef IRSSI_ABI_VERSION
/*
* Irssi abi check
*/
void
tcl_abicheck(int * version) {
*version = IRSSI_ABI_VERSION;
}
#endif
@@ -17,4 +17,9 @@ tcl_init(void);
void
tcl_deinit(void);

#ifdef IRSSI_ABI_VERSION
void
tcl_abicheck(int *);
#endif

#endif

0 comments on commit bfdc416

Please sign in to comment.