X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fpython.hh;h=6acc538b6db4d2f4471637bd9f9f5f1290687cfb;hb=60cd451a23daa8df35d5a51b61101fdb5a63fa78;hp=214586f528e418d8e32019f5e2b16cad934cac31;hpb=c88451f0c1e2586a5a06babb69b060bf808c9148;p=chaz%2Fopenbox diff --git a/src/python.hh b/src/python.hh index 214586f5..6acc538b 100644 --- a/src/python.hh +++ b/src/python.hh @@ -14,7 +14,6 @@ extern "C" { #include -#include } #include @@ -38,7 +37,7 @@ struct MouseContext { Grip, Root, MenuItem -#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG)) +#ifndef DOXYGEN_IGNORE , NUM_MOUSE_CONTEXT #endif }; @@ -51,7 +50,7 @@ struct MouseAction { Click, DoubleClick, Motion -#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG)) +#ifndef DOXYGEN_IGNORE , NUM_MOUSE_ACTION #endif }; @@ -61,7 +60,7 @@ struct KeyContext { enum KC { Menu, All -#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG)) +#ifndef DOXYGEN_IGNORE , NUM_KEY_CONTEXT #endif }; @@ -71,7 +70,7 @@ struct KeyAction { enum KA { Press, Release -#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG)) +#ifndef DOXYGEN_IGNORE , NUM_KEY_ACTION #endif }; @@ -121,7 +120,7 @@ struct EventAction { The Client::urgent method can be used to get the status. */ UrgentWindow -#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG)) +#ifndef DOXYGEN_IGNORE , NUM_EVENT_ACTION #endif }; @@ -228,17 +227,10 @@ typedef void (*MouseCallback)(MouseData*, void*); typedef void (*KeyCallback)(KeyData*, void*); typedef void (*EventCallback)(EventData*, void*); -#ifndef SWIG - 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); - -#endif // SWIG +//! Returns 0 for success, 1 for failing to open the file, 2 for an exception +int python_exec(const std::string &path); }