| 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 */ |
| 56 | |