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
15extern "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 {
27 Point coord;
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
46