Graphviz  2.41.20171026.1811
gvio.h
Go to the documentation of this file.
1 /* $Id$ $Revision$ */
2 /* vim:set shiftwidth=4 ts=8: */
3 
4 /*************************************************************************
5  * Copyright (c) 2011 AT&T Intellectual Property
6  * All rights reserved. This program and the accompanying materials
7  * are made available under the terms of the Eclipse Public License v1.0
8  * which accompanies this distribution, and is available at
9  * http://www.eclipse.org/legal/epl-v10.html
10  *
11  * Contributors: See CVS logs. Details at http://www.graphviz.org/
12  *************************************************************************/
13 
14 #ifndef GVDEVICE_H
15 #define GVDEVICE_H
16 
17 #include "gvcjob.h"
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 #ifdef GVDLL
24 #define extern __declspec(dllexport)
25 #else
26 #define extern
27 #endif
28 
29 /*visual studio*/
30 #ifdef _WIN32
31 #ifndef GVC_EXPORTS
32 #undef extern
33 #define extern __declspec(dllimport)
34 #endif
35 #endif
36 /*end visual studio*/
37 
38  extern size_t gvwrite (GVJ_t * job, const char *s, size_t len);
39  extern size_t gvfwrite (const void *ptr, size_t size, size_t nmemb, FILE *stream);
40  extern int gvferror (FILE *stream);
41  extern int gvputc(GVJ_t * job, int c);
42  extern int gvputs(GVJ_t * job, const char *s);
43  extern int gvflush (GVJ_t * job);
44  extern void gvprintf(GVJ_t * job, const char *format, ...);
45  extern void gvprintdouble(GVJ_t * job, double num);
46  extern void gvprintpointf(GVJ_t * job, pointf p);
47  extern void gvprintpointflist(GVJ_t * job, pointf *p, int n);
48 
49 #undef extern
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 
55 #endif /* GVDEVICE_H */
int gvputc(GVJ_t *job, int c)
Definition: gvdevice.c:280
void gvprintpointflist(GVJ_t *job, pointf *p, int n)
Definition: gvdevice.c:585
Definition: geom.h:28
Definition: gvcjob.h:271
int gvputs(GVJ_t *job, const char *s)
Definition: gvdevice.c:270
void gvprintpointf(GVJ_t *job, pointf p)
Definition: gvdevice.c:573
Definition: grammar.c:79
void gvprintdouble(GVJ_t *job, double num)
Definition: gvdevice.c:557
int gvferror(FILE *stream)
Definition: gvdevice.c:254
size_t gvfwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream)
Definition: gvdevice.c:264
int gvflush(GVJ_t *job)
Definition: gvdevice.c:290
size_t gvwrite(GVJ_t *job, const char *s, size_t len)
Definition: gvdevice.c:190
void gvprintf(GVJ_t *job, const char *format,...)
Definition: gvdevice.c:389