X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fpython.hh;h=f1d701a81c8804303b6d4d2b1a37916a1210858b;hb=c217a730901137252cde2d3a39b59c4ebd53e879;hp=77a7bf5c676a02e4ae1c7bbc0627402f4dbb4b66;hpb=7c8c9e998ffc3a9b22e15feeffe77823142ce531;p=chaz%2Fopenbox diff --git a/src/python.hh b/src/python.hh index 77a7bf5c..f1d701a8 100644 --- a/src/python.hh +++ b/src/python.hh @@ -14,7 +14,6 @@ extern "C" { #include -#include } #include @@ -30,6 +29,7 @@ struct MouseContext { Titlebar, Handle, Window, + IconButton, MaximizeButton, CloseButton, IconifyButton, @@ -231,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