X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=tilda.h;h=cff67cd0e49f2323f7dde013cc944a8319a3468b;hb=93db48f0c2f7a1185d4da9d9ab7cde83b9a3aa94;hp=77dbe53a2fc88ea449cd31210f0bac907632114f;hpb=e1b2e8f7f88a9359ebb43efd3ff0513287ed7b0c;p=tilda-gobject.git diff --git a/tilda.h b/tilda.h index 77dbe53..cff67cd 100644 --- a/tilda.h +++ b/tilda.h @@ -1,11 +1,37 @@ #ifndef TILDA_H #define TILDA_H +#include #include +/* Optional debugging macros */ +#ifdef DEBUG + #define debug_enter() do { g_print ("debug enter: %s\n", __func__); } while (0) + #define debug_printf(args...) do { g_print ("debug: " args); } while (0) + #define debug_assert(args...) do { g_assert (args); } while (0) +#else + #define debug_enter() do { /* nothing */ } while (0) + #define debug_printf(args...) do { /* nothing */ } while (0) + #define debug_assert(args...) do { /* nothing */ } while (0) +#endif + +/* Optional gettext translation macros */ +#ifdef ENABLE_NLS + #include +#else + #define _(X) X + #define N_(X) X +#endif + +// FIXME: remove when the project is autoconfed +#define TILDA_VERSION "0.10.0pre" + /* Project-global variables */ extern DBusGConnection *dbus_connection; +/* API */ +void tilda_del_window (gint number); + #endif /* TILDA_H */ /* vim: set ts=4 sts=4 sw=4 noet tw=112: */