Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

.Dd December 19, 2018
.Dt SQLITE3REBASER_REBASE 3
.Os
.Sh NAME
.Nm sqlite3rebaser_rebase
.Nd Rebase a changeset
.Sh SYNOPSIS
.Ft int 
.Fo sqlite3rebaser_rebase
.Fa "sqlite3_rebaser*"
.Fa "int nIn"
.Fa "const void *pIn"
.Fa "int *pnOut"
.Fa "void **ppOut "
.Fc
.Sh DESCRIPTION
Argument pIn must point to a buffer containing a changeset nIn bytes
in size.
This function allocates and populates a buffer with a copy of the changeset
rebased rebased according to the configuration of the rebaser object
passed as the first argument.
If successful, (*ppOut) is set to point to the new buffer containing
the rebased changset and (*pnOut) to its size in bytes and SQLITE_OK
returned.
It is the responsibility of the caller to eventually free the new buffer
using sqlite3_free().
Otherwise, if an error occurs, (*ppOut) and (*pnOut) are set to zero
and an SQLite error code returned.