Skip to content

Commit

Permalink
add irssi abi check function
Browse files Browse the repository at this point in the history
Irssi 0.8.18 introduces versioning for module ABI
  • Loading branch information
horgh committed Mar 10, 2016
1 parent 2f40781 commit bfdc416
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/module.c
Expand Up @@ -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
5 changes: 5 additions & 0 deletions src/module.h
Expand Up @@ -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.