opencreport * ocrpt_datasource_get_opencreport(const ocrpt_datasource *ds);
const char * ocrpt_datasource_get_name(const ocrpt_datasource *ds);
const ocrpt_input * ocrpt_datasource_get_input(const ocrpt_datasource *ds);
void
ocrpt_datasource_set_private(ocrpt_datasource *ds,
void *priv);
void * ocrpt_datasource_get_private(ocrpt_datasource *ds);
Allocate a query structure and add the query name.
ocrpt_query *
ocrpt_query_alloc(const ocrpt_datasource *source,
const char *name);
ocrpt_datasource * ocrpt_query_get_source(const ocrpt_query *query);
void
ocrpt_query_set_private(ocrpt_query *query,
const void *priv);
void * ocrpt_query_get_private(const ocrpt_query *query);
void ocrpt_query_result_set_values_null(ocrpt_query *q);
Set the ith column value
in the current row of a query. The value
can be set to NULL if the isnull
parameter is true,
or to a valid value using the str
and the length parameters.
void
ocrpt_query_result_set_value(ocrpt_query *q,
int32_t i,
bool isnull,
iconv_t conv,
const char *str,
size_t len);