Exemple #1
0
static CompBool
iniInitPluginForObject (CompPlugin *p,
			CompObject *o)
{
    CompBool status;

    INI_CORE (&core);

    UNWRAP (ic, &core, initPluginForObject);
    status = (*core.initPluginForObject) (p, o);
    WRAP (ic, &core, initPluginForObject, iniInitPluginForObject);

    if (status && p->vTable->getObjectOptions)
    {
	static InitPluginForObjectProc dispTab[] = {
	    (InitPluginForObjectProc) 0, /* InitPluginForCore */
	    (InitPluginForObjectProc) iniInitPluginForDisplay,
	    (InitPluginForObjectProc) iniInitPluginForScreen
	};

	RETURN_DISPATCH (o, dispTab, ARRAY_SIZE (dispTab), TRUE, (p, o));
    }

    return status;
}
Exemple #2
0
static CompBool waterInitObject(CompPlugin * p, CompObject * o)
{
	static InitPluginObjectProc dispTab[] = {
		(InitPluginObjectProc) 0,	/* InitCore */
		(InitPluginObjectProc) waterInitDisplay,
		(InitPluginObjectProc) waterInitScreen
	};

	RETURN_DISPATCH(o, dispTab, ARRAY_SIZE(dispTab), TRUE, (p, o));
}
static CompBool
kconfigInitObject (CompPlugin *p,
		   CompObject *o)
{
    static InitPluginObjectProc dispTab[] = {
	(InitPluginObjectProc) kconfigInitCore
    };

    RETURN_DISPATCH (o, dispTab, ARRAY_SIZE (dispTab), TRUE, (p, o));
}
static CompBool
sessionInitObject (CompPlugin *p,
		   CompObject *o)
{
    static InitPluginObjectProc dispTab[] = {
	(InitPluginObjectProc) sessionInitCore,
	(InitPluginObjectProc) sessionInitDisplay
    };

    RETURN_DISPATCH (o, dispTab, ARRAY_SIZE (dispTab), TRUE, (p, o));
}
Exemple #5
0
static CompOption *waterGetObjectOptions(CompPlugin * plugin,
					 CompObject * object, int *count)
{
	static GetPluginObjectOptionsProc dispTab[] = {
		(GetPluginObjectOptionsProc) 0,	/* GetCoreOptions */
		(GetPluginObjectOptionsProc) waterGetDisplayOptions
	};

	*count = 0;
	RETURN_DISPATCH(object, dispTab, ARRAY_SIZE(dispTab),
			(void *)count, (plugin, object, count));
}
Exemple #6
0
static CompBool
waterSetObjectOption(CompPlugin * plugin,
		     CompObject * object,
		     const char *name, CompOptionValue * value)
{
	static SetPluginObjectOptionProc dispTab[] = {
		(SetPluginObjectOptionProc) 0,	/* SetCoreOption */
		(SetPluginObjectOptionProc) waterSetDisplayOption
	};

	RETURN_DISPATCH(object, dispTab, ARRAY_SIZE(dispTab), FALSE,
			(plugin, object, name, value));
}
static CompBool
decorInitObject (CompPlugin *p,
		 CompObject *o)
{
    static InitPluginObjectProc dispTab[] = {
	(InitPluginObjectProc) decorInitCore,
	(InitPluginObjectProc) decorInitDisplay,
	(InitPluginObjectProc) decorInitScreen,
	(InitPluginObjectProc) decorInitWindow
    };

    RETURN_DISPATCH (o, dispTab, ARRAY_SIZE (dispTab), TRUE, (p, o));
}
static CompBool
toggledecoInitObject (CompPlugin *p,
		      CompObject *o)
{
    static InitPluginObjectProc dispTab[] = {
	(InitPluginObjectProc) 0, /* InitCore */
	(InitPluginObjectProc) toggledecoInitDisplay,
	0,
	0
    };

    RETURN_DISPATCH (o, dispTab, ARRAY_SIZE (dispTab), TRUE, (p, o));
}
Exemple #9
0
static CompBool
commandsSetObjectOption(CompPlugin *p,
                        CompObject *o,
                        const char *name,
                        CompOptionValue *value)
{
   static SetPluginObjectOptionProc dispTab[] = {
      (SetPluginObjectOptionProc)0,    /* SetCoreOption */
      (SetPluginObjectOptionProc)commandsSetDisplayOption,
   };

   RETURN_DISPATCH(o, dispTab, ARRAY_SIZE(dispTab), FALSE,
                   (p, o, name, value));
}
Exemple #10
0
static CompOption *
commandsGetObjectOptions(CompPlugin *p,
                         CompObject *o,
                         int *count)
{
   static GetPluginObjectOptionsProc dispTab[] = {
      (GetPluginObjectOptionsProc)0,    /* GetCoreOptions */
      (GetPluginObjectOptionsProc)commandsGetDisplayOptions
   };

   *count = 0;
   RETURN_DISPATCH(o, dispTab, ARRAY_SIZE(dispTab),
                   (void *)count, (p, o, count));
}
Exemple #11
0
static CompOption *
coreGetObjectOptions (CompPlugin *plugin,
		      CompObject *object,
		      int	 *count)
{
    static GetPluginObjectOptionsProc dispTab[] = {
	(GetPluginObjectOptionsProc) 0, /* GetCoreOptions */
	(GetPluginObjectOptionsProc) getDisplayOptions,
	(GetPluginObjectOptionsProc) getScreenOptions
    };

    *count = 0;
    RETURN_DISPATCH (object, dispTab, ARRAY_SIZE (dispTab),
		     NULL, (plugin, object, count));
}