Lines Matching defs:fops
28 lws_set_fops(struct lws_context *context, const struct lws_plat_file_ops *fops)
30 context->fops = fops;
56 ofs = fop_fd->fops->LWS_FOP_SEEK_CUR(fop_fd,
66 return fop_fd->fops->LWS_FOP_SEEK_CUR(fop_fd,
72 lws_vfs_select_fops(const struct lws_plat_file_ops *fops, const char *vfs_path,
81 /* no non-platform fops, just use that */
83 if (!fops->next)
84 return fops;
88 * handled by a specific fops
96 /* the first one is always platform fops, so skip */
97 pf = fops->next;
116 return fops;
120 lws_vfs_file_open(const struct lws_plat_file_ops *fops, const char *vfs_path,
126 selected = lws_vfs_select_fops(fops, vfs_path, &vpath);
128 return selected->LWS_FOP_OPEN(fops, vfs_path, vpath, flags);
135 return (struct lws_plat_file_ops *)context->fops;