Ejemplo n.º 1
0
uint32_t flux_matchtag_alloc (flux_t h, int flags)
{
    uint32_t tag;
    int tpflags = 0;

    if ((flags & FLUX_MATCHTAG_GROUP))
        tpflags |= TAGPOOL_FLAG_GROUP;
    tag = tagpool_alloc (h->tagpool, tpflags);
    if (tag == FLUX_MATCHTAG_NONE)
        errno = EBUSY; /* appropriate error? */
    return tag;
}
Ejemplo n.º 2
0
void *image_alloctag(mess_image *img, const char *tag, size_t size)
{
	return tagpool_alloc(&img->tagpool, tag, size);
}
Ejemplo n.º 3
0
void *floppy_create_tag(floppy_image *floppy, const char *tagname, size_t tagsize)
{
    return tagpool_alloc(&floppy->tags, tagname, tagsize);
}