preliminary support for plugins
authorMiloš Mulač <mulac@civ.zcu.cz>
Thu, 8 Sep 2005 12:25:26 +0000 (12:25 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Thu, 8 Sep 2005 12:25:26 +0000 (12:25 +0000)
org.glite.jp.index/src/bones_server.c
org.glite.jp.index/src/conf.c
org.glite.jp.index/src/conf.h

index 3c92ce7..ac81fbd 100644 (file)
@@ -74,6 +74,11 @@ int main(int argc, char *argv[])
        config_file = NULL;
        glite_jp_get_conf(argc, argv, config_file, &conf);
 
+       /* XXX preliminary support for plugins 
+       for (i=0; conf->plugins[i]; i++)
+               glite_jp_typeplugin_load(ctx,conf->plugins[i]);
+       */
+       
 
 #if GSOAP_VERSION <= 20602
        for (i=0; jpis__namespaces[i].id && strcmp(jpis__namespaces[i].id,"ns1"); i++);
index fc1328b..5e45113 100644 (file)
@@ -31,6 +31,9 @@ int glite_jp_get_conf(int argc, char **argv, char *config_file, glite_jp_is_conf
        conf->indexed_attrs[0] = strdup("owner");
        conf->indexed_attrs[1] = strdup("location");
 
+       // XXX: some plugin names should come here in future
+       conf->plugins = NULL;
+
        // all job since Epoche
        conf->query = calloc(2,sizeof(*conf->query));
        conf->query[0] = calloc(2,sizeof(**conf->query));
index 2b95243..b7ab90e 100644 (file)
@@ -14,6 +14,7 @@ typedef struct _glite_jp_is_conf {
        char    **attrs;                // atributes to obtain
        char    **PS_list;              // URLs of Primary Storage servers
        char    **indexed_attrs;        // list of indexed atributes
+       char    **plugins;              // list of plugin.so's
 
        glite_jp_query_rec_t    **query;        // query to Primary Server