1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-10 12:16:45 +02:00

Implemented a basic Python scripting engine, optional compilation.

This commit is contained in:
jakob
2017-05-15 20:17:23 -04:00
parent 09e2690211
commit 0e13a1f1bc
12 changed files with 258 additions and 5 deletions

View File

@ -75,6 +75,10 @@
ToxAV *av;
#endif /* AUDIO */
#ifdef PYTHON
#include "python_api.h"
#endif
#ifndef PACKAGE_DATADIR
#define PACKAGE_DATADIR "."
#endif
@ -162,6 +166,10 @@ void exit_toxic_success(Tox *m)
terminate_audio();
#endif /* AUDIO */
#ifdef PYTHON
terminate_python();
#endif /* PYTHON */
free_global_data();
tox_kill(m);
endwin();
@ -1211,6 +1219,12 @@ int main(int argc, char **argv)
#endif /* AUDIO */
#ifdef PYTHON
init_python();
#endif /* PYTHON */
init_notify(60, 3000);
/* screen/tmux auto-away timer */