X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fpython.hh;h=f1d701a81c8804303b6d4d2b1a37916a1210858b;hb=c217a730901137252cde2d3a39b59c4ebd53e879;hp=214586f528e418d8e32019f5e2b16cad934cac31;hpb=c88451f0c1e2586a5a06babb69b060bf808c9148;p=chaz%2Fopenbox diff --git a/src/python.hh b/src/python.hh index 214586f5..f1d701a8 100644 --- a/src/python.hh +++ b/src/python.hh @@ -14,7 +14,6 @@ extern "C" { #include -#include } #include @@ -232,11 +231,8 @@ typedef void (*EventCallback)(EventData*, void*); void python_init(char *argv0); void python_destroy(); -bool python_exec(const std::string &path); - -bool python_get_long(const char *name, long *value); -bool python_get_string(const char *name, otk::ustring *value); -bool python_get_stringlist(const char *name, std::vector *value); +//! Returns 0 for success, 1 for failing to open the file, 2 for an exception +int python_exec(const std::string &path); #endif // SWIG