/* Automatically generated by mkexports.lua */
#include <libextl/extl.h>
#include <libextl/private.h>

/* quiet warnings for generated code */
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-macros"
#endif

EXTL_DEFCLASS(WMPlex);
EXTL_DEFCLASS(WFrame);
EXTL_DEFCLASS(WRegion);
EXTL_DEFCLASS(WScreen);
static bool l2chnd_b_o__WRegion(bool (*fn)(), ExtlL2Param *in, ExtlL2Param *out)
{
    if(!EXTL_CHKO1(in, 0, WRegion)) return FALSE;
    out[0].b=fn(in[0].o);
    return TRUE;
}
static bool l2chnd_b_os__WFrame_(bool (*fn)(), ExtlL2Param *in, ExtlL2Param *out)
{
    if(!EXTL_CHKO1(in, 0, WFrame)) return FALSE;
    out[0].b=fn(in[0].o, in[1].s);
    return TRUE;
}
static bool l2chnd_b_o__WScreen(bool (*fn)(), ExtlL2Param *in, ExtlL2Param *out)
{
    if(!EXTL_CHKO1(in, 0, WScreen)) return FALSE;
    out[0].b=fn(in[0].o);
    return TRUE;
}
static bool l2chnd_b_os__WMPlex_(bool (*fn)(), ExtlL2Param *in, ExtlL2Param *out)
{
    if(!EXTL_CHKO1(in, 0, WMPlex)) return FALSE;
    out[0].b=fn(in[0].o, in[1].s);
    return TRUE;
}

extern void mod_sp_set_shown();
extern void mod_sp_set_shown_on();
extern void mod_sp_is_scratchpad();
extern void mod_sp_create_scratchpad();


static ExtlExportedFnSpec mod_sp_exports[] = {
    {"set_shown", mod_sp_set_shown, "oS", "b", (ExtlL2CallHandler*)l2chnd_b_os__WFrame_, FALSE, FALSE, FALSE},
    {"set_shown_on", mod_sp_set_shown_on, "oS", "b", (ExtlL2CallHandler*)l2chnd_b_os__WMPlex_, FALSE, FALSE, FALSE},
    {"is_scratchpad", mod_sp_is_scratchpad, "o", "b", (ExtlL2CallHandler*)l2chnd_b_o__WRegion, TRUE, FALSE, FALSE},
    {"create_scratchpad", mod_sp_create_scratchpad, "o", "b", (ExtlL2CallHandler*)l2chnd_b_o__WScreen, FALSE, FALSE, FALSE},
    {NULL, NULL, NULL, NULL, NULL, FALSE, FALSE, FALSE}
};

#define WMPlex_exports NULL
#define WFrame_exports NULL
#define WRegion_exports NULL
#define WScreen_exports NULL
bool mod_sp_register_exports()
{
    if(!extl_register_module("mod_sp", mod_sp_exports)) return FALSE;
    return TRUE;
}

void mod_sp_unregister_exports()
{
    extl_unregister_module("mod_sp", mod_sp_exports);
}

