static int add_fop(const char *prefix, int type, struct ass_fileops *fop);
static const char *match_prefix(const char *str, const char *prefix);
-static int add_file(ass_file *file);
-static int remove_file(ass_file *file);
#define DEF_FLAGS (1 << ASS_OPEN_FALLTHROUGH)
}
file->file = mfile;
file->fop = m->fop;
-
- if(add_file(file) == -1) {
- m->fop->close(mfile, m->fop->udata);
- free(file);
- return 0;
- }
return file;
} else {
if(!(assflags & (1 << ASS_OPEN_FALLTHROUGH))) {
}
file->file = fp;
file->fop = 0;
-
- if(add_file(file) == -1) {
- fclose(fp);
- free(file);
- return 0;
- }
return file;
}
ass_errno = errno;
} else {
fclose(fp->file);
}
- remove_file(fp);
free(fp);
}
*ptr = 0;
return ptr == s ? 0 : s;
}
-
-
-static int add_file(ass_file *file)
-{
- return -1; /* TODO */
-}
-
-static int remove_file(ass_file *file)
-{
- return -1; /* TODO */
-}