KPLOT_GET_DATACFG(3) Library Functions Manual KPLOT_GET_DATACFG(3)

NAME

kplot_get_datacfgget data configurations for a plot

LIBRARY

library “libkplot”

SYNOPSIS

#include <cairo.h>
#include <kplot.h>
int
kplot_get_datacfg(struct kplot *p, size_t pos, struct kdatacfg **cfgs, size_t *cfgsz);

DESCRIPTION

The kplot_get_datacfg function returns the struct kdatacfg assigned to data attached with kdata_attach_data(3), kdata_attach_datas(3), and kdata_attach_smooth(3). Since there may be more than one configuration per attachment, kplot_get_datacfg will assign the array to cfgs and the number of sources to cfgsz. The pos value refers to the order of attachment.

RETURN VALUES

kplot_get_datacfg returns 0 if there is no data source at that index, otherwise it returns non-zero and the cfgs and cfgsz are filled in.

SEE ALSO

kplot(3), kplot_attach_data(3), kplot_attach_datas(3), kplot_attach_smooth(3)
March 2, 2015 OpenBSD 5.8