Graphviz 13.0.0~dev.20241222.1117
Loading...
Searching...
No Matches
gv_php_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 <php.h>
12#undef PACKAGE_BUGREPORT
13#undef PACKAGE_NAME
14#undef PACKAGE_STRING
15#undef PACKAGE_TARNAME
16#undef PACKAGE_VERSION
17
18#include <gvc/gvc.h>
19#include <gvc/gvplugin.h>
20#include <gvc/gvcjob.h>
21#include <gvc/gvcint.h>
22#include "gv_channel.h"
23
24static size_t gv_string_writer (GVJ_t *job, const char *s, size_t len)
25{
26 (void)job;
27 return PHPWRITE(s, len);
28}
29
30static size_t gv_channel_writer (GVJ_t *job, const char *s, size_t len)
31{
32 (void)job;
33 return PHPWRITE(s, len);
34}
35
40
45
static double len(glCompPoint p)
Definition glutils.c:150
node NULL
Definition grammar.y:163
static GVC_t * gvc
Definition gv.cpp:23
language-specific bindings API
static size_t gv_channel_writer(GVJ_t *job, const char *s, size_t len)
Definition gv_php_init.c:30
void gv_channel_writer_init(GVC_t *gvc)
Definition gv_php_init.c:41
void gv_writer_reset(GVC_t *gvc)
Definition gv_php_init.c:46
static size_t gv_string_writer(GVJ_t *job, const char *s, size_t len)
Definition gv_php_init.c:24
void gv_string_writer_init(GVC_t *gvc)
Definition gv_php_init.c:36
Graphviz context library.
Definition gvcint.h:80
size_t(* write_fn)(GVJ_t *job, const char *s, size_t len)
Definition gvcint.h:103
Definition grammar.c:93