.TH "hyle_source_store_ops_t" 3 "libhyle-source" \" -*- nroff -*- .ad l .nh .SH NAME hyle_source_store_ops_t \- Pluggable storage driver operations for hyle source persistence\&. .SH SYNOPSIS .br .PP .PP \fR#include \fP .SS "Data Fields" .in +1c .ti -1c .RI "int(* \fBscan\fP )(hyle_source_store_t *store, const struct \fBhyle_source_def_s\fP *def)" .br .RI "Scan the backend and populate def->source_hd with all known ids\&. " .ti -1c .RI "int(* \fBload\fP )(hyle_source_store_t *store, const struct \fBhyle_source_def_s\fP *def, const char *id, unsigned *row_out)" .br .RI "Load record \fRid\fP into row map \fRrow_out\fP\&. " .ti -1c .RI "int(* \fBput\fP )(hyle_source_store_t *store, const struct \fBhyle_source_def_s\fP *def, const char *id, unsigned data_handle)" .br .RI "Persist an entire record \fRid\fP represented by \fRdata_handle\fP\&. " .ti -1c .RI "int(* \fBput_field\fP )(hyle_source_store_t *store, const struct \fBhyle_source_def_s\fP *def, const char *id, const char *field, const char *value)" .br .RI "Update or persist a single field value for record \fRid\fP\&. " .ti -1c .RI "int(* \fBdel\fP )(hyle_source_store_t *store, const struct \fBhyle_source_def_s\fP *def, const char *id)" .br .RI "Delete record \fRid\fP from persistent storage\&. " .in -1c .SH "Detailed Description" .PP Pluggable storage driver operations for hyle source persistence\&. .SH "Field Documentation" .PP .SS "int(* hyle_source_store_ops_t::del) (hyle_source_store_t *store, const struct \fBhyle_source_def_s\fP *def, const char *id)" .PP Delete record \fRid\fP from persistent storage\&. .PP \fBParameters\fP .RS 4 \fIstore\fP Target store\&. .br \fIdef\fP Dataset definition\&. .br \fIid\fP Item id\&. .RE .PP \fBReturns\fP .RS 4 0 on success, negative error code on failure\&. .RE .PP .SS "int(* hyle_source_store_ops_t::load) (hyle_source_store_t *store, const struct \fBhyle_source_def_s\fP *def, const char *id, unsigned *row_out)" .PP Load record \fRid\fP into row map \fRrow_out\fP\&. .PP \fBParameters\fP .RS 4 \fIstore\fP Target store\&. .br \fIdef\fP Dataset definition\&. .br \fIid\fP Item id\&. .br \fIrow_out\fP Receives the loaded row handle\&. .RE .PP \fBReturns\fP .RS 4 0 on success, negative error code on failure\&. .RE .PP .SS "int(* hyle_source_store_ops_t::put) (hyle_source_store_t *store, const struct \fBhyle_source_def_s\fP *def, const char *id, unsigned data_handle)" .PP Persist an entire record \fRid\fP represented by \fRdata_handle\fP\&. .PP \fBParameters\fP .RS 4 \fIstore\fP Target store\&. .br \fIdef\fP Dataset definition\&. .br \fIid\fP Item id\&. .br \fIdata_handle\fP Corm handle of the record data\&. .RE .PP \fBReturns\fP .RS 4 0 on success, negative error code on failure\&. .RE .PP .SS "int(* hyle_source_store_ops_t::put_field) (hyle_source_store_t *store, const struct \fBhyle_source_def_s\fP *def, const char *id, const char *field, const char *value)" .PP Update or persist a single field value for record \fRid\fP\&. .PP \fBParameters\fP .RS 4 \fIstore\fP Target store\&. .br \fIdef\fP Dataset definition\&. .br \fIid\fP Item id\&. .br \fIfield\fP Field name\&. .br \fIvalue\fP New field value\&. .RE .PP \fBReturns\fP .RS 4 0 on success, negative error code on failure\&. .RE .PP .SS "int(* hyle_source_store_ops_t::scan) (hyle_source_store_t *store, const struct \fBhyle_source_def_s\fP *def)" .PP Scan the backend and populate def->source_hd with all known ids\&. .PP \fBParameters\fP .RS 4 \fIstore\fP Target store\&. .br \fIdef\fP Dataset definition\&. .RE .PP \fBReturns\fP .RS 4 0 on success, negative error code on failure\&. .RE .PP .SH "Author" .PP Generated automatically by Doxygen for libhyle-source from the source code\&.