Lines Matching refs:hvb_ops
27 #include "hvb_ops.h"
30 static struct struct hvb_ops *g_hvb_ops;
32 static enum hvb_io_errno hvb_read_partition(struct hvb_ops *ops,
93 static enum hvb_io_errno hvb_write_partition(struct hvb_ops *ops,
140 static enum hvb_io_errno hvb_read_rollback(struct hvb_ops *ops,
151 static enum hvb_io_errno hvb_write_rollback(struct hvb_ops *ops,
158 static enum hvb_io_errno hvb_get_partiton_uuid(struct hvb_ops *ops,
170 static enum hvb_io_errno hvb_get_partiton_size(struct hvb_ops *ops,
202 static struct hvb_ops *hvb_ops_user(void)
204 struct hvb_ops *hvb_ops;
206 hvb_ops = (struct hvb_ops *)hvb_malloc(sizeof(struct hvb_ops));
207 if (!hvb_ops) {
208 printf("Error malloc for hvb_ops.\n");
212 hvb_ops->user_data = hvb_ops;
213 hvb_ops->read_partition = hvb_read_partition;
214 hvb_ops->write_partition = hvb_write_partition;
215 hvb_ops->read_rollback = hvb_read_rollback;
216 hvb_ops->write_rollback = hvb_write_rollback;
217 hvb_ops->get_partiton_uuid = hvb_get_partiton_uuid;
218 hvb_ops->get_partiton_size = hvb_get_partiton_size;
220 return hvb_ops;