Graphviz  2.41.20171026.1811
site.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 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 
19 
20 #ifndef SITE_H
21 #define SITE_H
22 
23 #include "geometry.h"
24 
25  /* Sites are also used as vertices on line segments */
26  typedef struct Site {
28  int sitenbr;
29  int refcnt;
30  } Site;
31 
32  extern int siteidx;
33  extern Site *bottomsite;
34 
35  extern void siteinit(void);
36  extern Site *getsite(void);
37  extern double dist(Site *, Site *); /* Distance between two sites */
38  extern void deref(Site *); /* Increment refcnt of site */
39  extern void ref(Site *); /* Decrement refcnt of site */
40  extern void makevertex(Site *); /* Transform a site into a vertex */
41 #endif
42 
43 #ifdef __cplusplus
44 }
45 #endif
int refcnt
Definition: site.h:29
Site * bottomsite
Definition: site.c:20
Site * getsite()
Definition: site.c:36
void siteinit()
Definition: site.c:25
Definition: site.h:26
int siteidx
Definition: site.c:19
void deref(Site *v)
Definition: site.c:63
void ref(Site *v)
Definition: site.c:70
Definition: geometry.h:26
struct Site Site
double dist(Site *s, Site *t)
Definition: site.c:41
Point coord
Definition: site.h:27
int sitenbr
Definition: site.h:28
void makevertex(Site *v)
Definition: site.c:53