Commit de07ebb0 authored by Chyla Zbigniew's avatar Chyla Zbigniew
Browse files

Used "function_group" service.


* plugin-gda.c, plugin.xml:
Used "function_group" service.
parent 368d2543
2001-02-25 Zbigniew Chyla <cyba@gnome.pl>
* plugin-gda.c, plugin.xml:
Used "function_group" service.
2001-02-23 Jody Goldberg <jgoldberg@home.com>
* Release 0.63
......
......@@ -160,25 +160,9 @@ gnumeric_execSQL (FunctionEvalInfo *ei, Value **args)
return ret;
}
gboolean
plugin_can_deactivate_general (void)
{
FunctionDefinition *func;
func = func_lookup_by_name ("execSQL", NULL);
return func != NULL && func_get_ref_count (func) <= 1;
}
void
plugin_cleanup_general (ErrorInfo **ret_error)
plugin_cleanup (void)
{
FunctionDefinition *func;
*ret_error = NULL;
func = func_lookup_by_name ("execSQL", NULL);
if (func)
func_unref (func);
/* close the connection pool */
if (IS_GDA_CONNECTION_POOL(connection_pool)) {
gda_connection_pool_close_all(connection_pool);
......@@ -187,14 +171,7 @@ plugin_cleanup_general (ErrorInfo **ret_error)
}
}
void
plugin_init_general (ErrorInfo **ret_error)
{
FunctionCategory *cat;
*ret_error = NULL;
/* register functions */
cat = function_get_category_with_translation ("Database", _("Database"));
function_add_args(cat, "execSQL", "ssss", "dsn,username,password,sql", &help_execSQL, gnumeric_execSQL);
}
ModulePluginFunctionInfo gdaif_functions[] = {
{"execSQL", "ssss", "dsn,username,password,sql", &help_execSQL, &gnumeric_execSQL, NULL},
{NULL}
};
......@@ -6,7 +6,13 @@
<attribute name="module_file" value="gdaif.so"/>
</loader>
<services>
<service type="general"></service>
<service type="function_group" id="gdaif">
<category name="Database"/>
<category xml:lang="pl" name="Baza danych"/>
<functions>
<function name="execSQL"/>
</functions>
</service>
</services>
</plugin>
</gnumeric_plugin_group>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment