Graphviz 14.1.3~dev.20260124.0732
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 "config.h"
12
13#include <stddef.h>
14#include <gvc/gvc.h>
15#include <gvc/gvplugin.h>
16#include <gvc/gvcjob.h>
17#include <gvc/gvcint.h>
18#include "gv_channel.h"
19#include <util/agxbuf.h>
20
21static size_t gv_string_writer(GVJ_t *job, const char *s, size_t len)
22{
23 agxbuf *const buffer = (agxbuf *)job->output_file;
24 return agxbput_n(buffer, s, len);
25}
26
31
32static size_t gv_channel_writer(GVJ_t *job, const char *s, size_t len)
33{
34 (void)job;
35 (void)s;
36 return len;
37}
38
43
Dynamically expanding string buffers.
static size_t agxbput_n(agxbuf *xb, const char *s, size_t ssz)
append string s of length ssz into xb
Definition agxbuf.h:268
static double len(glCompPoint p)
Definition glutils.c:138
node NULL
Definition grammar.y:181
static GVC_t * gvc
Definition gv.cpp:27
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