Graphviz 14.0.3~dev.20251028.0232
Loading...
Searching...
No Matches
gv_java_init.c
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (c) 2011 AT&T Intellectual Property
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * https://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors: Details at https://graphviz.org
9 *************************************************************************/
10
11#include <stddef.h>
12#include <gvc/gvc.h>
13#include <gvc/gvplugin.h>
14#include <gvc/gvcjob.h>
15#include <gvc/gvcint.h>
16#include "gv_channel.h"
17#include <util/agxbuf.h>
18
19static size_t gv_string_writer(GVJ_t *job, const char *s, size_t len)
20{
21 agxbuf *const buffer = (agxbuf *)job->output_file;
22 return agxbput_n(buffer, s, len);
23}
24
29
30static size_t gv_channel_writer(GVJ_t *job, const char *s, size_t len)
31{
32 (void)job;
33 (void)s;
34 return len;
35}
36
41
static size_t agxbput_n(agxbuf *xb, const char *s, size_t ssz)
append string s of length ssz into xb
Definition agxbuf.h:248
static double len(glCompPoint p)
Definition glutils.c:136
node NULL
Definition grammar.y:181
static GVC_t * gvc
Definition gv.cpp:25
language-specific bindings API
static size_t gv_channel_writer(GVJ_t *job, const char *s, size_t len)
void gv_channel_writer_init(GVC_t *gvc)
void gv_writer_reset(GVC_t *gvc)
static size_t gv_string_writer(GVJ_t *job, const char *s, size_t len)
void gv_string_writer_init(GVC_t *gvc)
Graphviz context library.
Definition gvcint.h:81
size_t(* write_fn)(GVJ_t *job, const char *s, size_t len)
Definition gvcint.h:104
FILE * output_file
Definition gvcjob.h:277
Definition grammar.c:90