}
for (i=0; attrs[i]; i++)
- if (!pd[pi]->ops.attr(pd[pi]->fpctx,ph,attrs[i],&oneval)) {
+ if (!pd[pi]->ops.attr(pd[pi]->fpctx,ph,"",attrs[i],&oneval)) {
/* XXX: ignore error */
for (j=0; oneval[j].name; j++);
vals = realloc(vals,(nvals+j+1) * sizeof *vals);
#include <assert.h>
#include <errno.h>
#include <stdlib.h>
+#include <stdarg.h>
+#include <assert.h>
+#include <stdint.h>
#include <glite/jp/types.h>
#include "tags.h"
/* magic name_len value_len binary sequence timestamp */
#define HEADER "JP#TAG# %05u %012lu %c %05u %012lu#"
#define HEADER_SIZE 48
+#define TAGS_MAGIC 0x74c016f2 /* two middle digits encode version, i.e. 01 */
+
-int glite_jpps_tag_append(
+/*int glite_jpps_tag_append(
glite_jp_context_t ctx,
void *handle,
const glite_jp_tagval_t *tag
err.desc = "No more tags in the file";
goto error_out;
}
- /* #define HEADER "JP#TAG# %05u %012lu %c %05u %012lu#" */
+ // #define HEADER "JP#TAG# %05u %012lu %c %05u %012lu#"
if (sscanf(hdr, HEADER, &nlen, &vlen, &binary, &sequence, ×tamp) < 5) {
err.code = EILSEQ;
err.desc = "Incorrect tag header format";
free(name);
free(value);
return glite_jp_stack_error(ctx,&err);
-}
+}*/
/*
int glite_jpps_tag_read(glite_jp_context_t, void *, off_t, glite_jp_tagval_t *, size_t);
int glite_jpps_tag_readall(glite_jp_context_t, void *, glite_jp_tagval_t **);
*/
-int glite_jpps_tag_readall(
+/*int glite_jpps_tag_readall(
glite_jp_context_t ctx,
void *handle,
glite_jp_tagval_t **tags_out
}
free(tags);
return glite_jp_stack_error(ctx,&err);
-}
+}*/
int tag_append(void *fpctx,void *bhandle,glite_jp_attrval_t * tag)
{
- va_list ap;
+ //va_list ap;
char *hdr,*rec;
glite_jp_context_t ctx = fpctx;
uint32_t magic,hlen,rlen,rlen_n;
};
int tag_append(void *fpctx,void *bhandle,glite_jp_attrval_t * tag);
-int glite_jpps_tag_append(glite_jp_context_t,void *,const char *, const char *);
+//int glite_jpps_tag_append(glite_jp_context_t,void *,const char *, const char *);
+//int glite_jpps_tag_append(glite_jp_context_t,void *,const glite_jp_tagval_t *);
int tag_attr(void *fpctx,void *handle,const char *attr,glite_jp_attrval_t **attrval);