- return bool success indicator instead of void so that "func() or die()" idiom works
- Support language specific write() functions.
- Use PHPWRITE() for buffered output when PHP used from Apache
%description devil
Graphviz plugin for renderers based on DevIL. (Unless you absolutely have
to use BMP, TIF, or TGA, you are recommended to use the PNG format instead
-support directly by the cairo+pango based renderer in the base graphviz rpm.)
+supported directly by the cairo+pango based renderer in the base graphviz rpm.)
# run "dot -c" to generate plugin config in %{_libdir}/graphviz/config
%post devil
int numkeys;
void *keycodes;
+ /* externally provided write() displine */
+ size_t (*write_fn) (const char *s, int len);
+
/* FIXME - everything below should probably move to GVG_t */
/* gvrender_config() */
size_t gvdevice_write (GVJ_t * job, const unsigned char *s, unsigned int len)
{
+ if (job->gvc->write_fn) /* externally provided write dicipline */
+ return (job->gvc->write_fn)(s, len);
if (job->flags & GVDEVICE_COMPRESSED_FORMAT) {
#ifdef HAVE_LIBZ
return gzwrite((gzFile *) (job->output_file), s, len);