\param[in] type Index of the type in this plugin's uri's.
\param[out] handle Handle to the opened file structure, to be passed to other plugin functions.
*/
- int (*open)(void *fpctx,void *bhandle,int type,void **handle);
+ int (*open)(void *fpctx,void *bhandle,const char *uri,void **handle);
/** Close the file. Free data associated to a handle */
int (*close)(void *fpctx,void *handle);
return ret;
}
- if (pd[pi]->ops.open(pd[pi]->fpctx,bh,ci,&ph)) {
+ if (pd[pi]->ops.open(pd[pi]->fpctx,bh,class,&ph)) {
/* XXX: complain more visibly */
fputs("plugin open failed\n",stderr);
continue;
s2jp_tag(tag,&mytag);
/* XXX: assuming tag plugin handles just one type */
- if (pd[0]->ops.open(pd[0]->fpctx,file_be,0,&file_p)
+ if (pd[0]->ops.open(pd[0]->fpctx,file_be,GLITE_JP_FILETYPE_TAGS,&file_p)
|| pd[0]->ops.generic(pd[0]->fpctx,file_p,GLITE_JP_FPLUG_TAGS_APPEND,&mytag))
{
err2fault(ctx,soap);