home | help
KPLOT_GET_DATACFG(3)	     Library Functions Manual	    KPLOT_GET_DATACFG(3)

NAME
     kplot_get_datacfg -- get data configurations for a plot

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_at-
     tach_smooth(3).  Since there may be more than one configuration per attach-
     ment, 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, oth-
     erwise 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_at-
     tach_smooth(3)

FreeBSD ports 15.quarterly	February 11, 2015	    KPLOT_GET_DATACFG(3)

home | help