mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-10 09:46:45 +02:00
Implemented a basic Python scripting engine, optional compilation.
This commit is contained in:
14
src/toxic.c
14
src/toxic.c
@ -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 */
|
||||
|
Reference in New Issue
Block a user