\section{lib/gvc/gvc.c File Reference}
\label{gvc_8c}\index{lib/gvc/gvc.\-c@{lib/gvc/gvc.\-c}}
{\ttfamily \#include \char`\"{}config.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}gvc.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}const.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}gvcjob.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}gvcint.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}gvcproc.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}gvconfig.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}gvio.\-h\char`\"{}}\\*
{\ttfamily \#include $<$stdlib.\-h$>$}\\*
Include dependency graph for gvc.\-c\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gvc_8c__incl}
\end{center}
\end{figure}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bf O\-U\-T\-P\-U\-T\-\_\-\-D\-A\-T\-A\-\_\-\-I\-N\-I\-T\-I\-A\-L\-\_\-\-A\-L\-L\-O\-C\-A\-T\-I\-O\-N}~4096
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\bf G\-V\-C\-\_\-t} $\ast$ {\bf gv\-Context} (void)
\item 
{\bf G\-V\-C\-\_\-t} $\ast$ {\bf gv\-Context\-Plugins} (const {\bf lt\-\_\-symlist\-\_\-t} $\ast$builtins, {\bf int} demand\-\_\-loading)
\item 
{\bf int} {\bf gv\-Layout} ({\bf G\-V\-C\-\_\-t} $\ast${\bf gvc}, {\bf graph\-\_\-t} $\ast$g, const char $\ast$engine)
\item 
{\bf int} {\bf gv\-Render} ({\bf G\-V\-C\-\_\-t} $\ast${\bf gvc}, {\bf graph\-\_\-t} $\ast$g, const char $\ast$format, F\-I\-L\-E $\ast$out)
\item 
{\bf int} {\bf gv\-Render\-Filename} ({\bf G\-V\-C\-\_\-t} $\ast${\bf gvc}, {\bf graph\-\_\-t} $\ast$g, const char $\ast$format, const char $\ast$filename)
\item 
{\bf int} {\bf gv\-Render\-Context} ({\bf G\-V\-C\-\_\-t} $\ast${\bf gvc}, {\bf graph\-\_\-t} $\ast$g, const char $\ast$format, void $\ast$context)
\item 
{\bf int} {\bf gv\-Render\-Data} ({\bf G\-V\-C\-\_\-t} $\ast${\bf gvc}, {\bf graph\-\_\-t} $\ast$g, const char $\ast$format, char $\ast$$\ast$result, unsigned {\bf int} $\ast$length)
\item 
void {\bf gv\-Free\-Render\-Data} (char $\ast${\bf data})
\item 
void {\bf gv\-Add\-Library} ({\bf G\-V\-C\-\_\-t} $\ast${\bf gvc}, {\bf gvplugin\-\_\-library\-\_\-t} $\ast$lib)
\item 
char $\ast$$\ast$ {\bf gvc\-Info} ({\bf G\-V\-C\-\_\-t} $\ast${\bf gvc})
\item 
char $\ast$ {\bf gvc\-Version} ({\bf G\-V\-C\-\_\-t} $\ast${\bf gvc})
\item 
char $\ast$ {\bf gvc\-Build\-Date} ({\bf G\-V\-C\-\_\-t} $\ast${\bf gvc})
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\index{gvc.\-c@{gvc.\-c}!O\-U\-T\-P\-U\-T\-\_\-\-D\-A\-T\-A\-\_\-\-I\-N\-I\-T\-I\-A\-L\-\_\-\-A\-L\-L\-O\-C\-A\-T\-I\-O\-N@{O\-U\-T\-P\-U\-T\-\_\-\-D\-A\-T\-A\-\_\-\-I\-N\-I\-T\-I\-A\-L\-\_\-\-A\-L\-L\-O\-C\-A\-T\-I\-O\-N}}
\index{O\-U\-T\-P\-U\-T\-\_\-\-D\-A\-T\-A\-\_\-\-I\-N\-I\-T\-I\-A\-L\-\_\-\-A\-L\-L\-O\-C\-A\-T\-I\-O\-N@{O\-U\-T\-P\-U\-T\-\_\-\-D\-A\-T\-A\-\_\-\-I\-N\-I\-T\-I\-A\-L\-\_\-\-A\-L\-L\-O\-C\-A\-T\-I\-O\-N}!gvc.c@{gvc.\-c}}
\subsubsection[{O\-U\-T\-P\-U\-T\-\_\-\-D\-A\-T\-A\-\_\-\-I\-N\-I\-T\-I\-A\-L\-\_\-\-A\-L\-L\-O\-C\-A\-T\-I\-O\-N}]{\setlength{\rightskip}{0pt plus 5cm}\#define O\-U\-T\-P\-U\-T\-\_\-\-D\-A\-T\-A\-\_\-\-I\-N\-I\-T\-I\-A\-L\-\_\-\-A\-L\-L\-O\-C\-A\-T\-I\-O\-N~4096}\label{gvc_8c_ac98e90f3b822fbc5475f7667a8c9389c}


Referenced by gv\-Render\-Data().



\subsection{Function Documentation}
\index{gvc.\-c@{gvc.\-c}!gv\-Add\-Library@{gv\-Add\-Library}}
\index{gv\-Add\-Library@{gv\-Add\-Library}!gvc.c@{gvc.\-c}}
\subsubsection[{gv\-Add\-Library}]{\setlength{\rightskip}{0pt plus 5cm}void gv\-Add\-Library (
\begin{DoxyParamCaption}
\item[{{\bf G\-V\-C\-\_\-t} $\ast$}]{gvc, }
\item[{{\bf gvplugin\-\_\-library\-\_\-t} $\ast$}]{lib}
\end{DoxyParamCaption}
)}\label{gvc_8c_a16d7bba4d3b463feb5a0bfb001d4e275}
Add a library from your user application 
\begin{DoxyParams}{Parameters}
{\em gvc} & Graphviz context to add library to \\
\hline
{\em lib} & library to add \\
\hline
\end{DoxyParams}


Definition at line 237 of file gvc.\-c.



References gvconfig\-\_\-plugin\-\_\-install\-\_\-from\-\_\-library(), and N\-U\-L\-L.

\index{gvc.\-c@{gvc.\-c}!gvc\-Build\-Date@{gvc\-Build\-Date}}
\index{gvc\-Build\-Date@{gvc\-Build\-Date}!gvc.c@{gvc.\-c}}
\subsubsection[{gvc\-Build\-Date}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ gvc\-Build\-Date (
\begin{DoxyParamCaption}
\item[{{\bf G\-V\-C\-\_\-t} $\ast$}]{gvc}
\end{DoxyParamCaption}
)}\label{gvc_8c_aee4b65d8e36c2c49d550a98b8056f8fb}


Definition at line 244 of file gvc.\-c.



References G\-V\-C\-\_\-s\-::common, and G\-V\-C\-O\-M\-M\-O\-N\-\_\-s\-::info.

\index{gvc.\-c@{gvc.\-c}!gvc\-Info@{gvc\-Info}}
\index{gvc\-Info@{gvc\-Info}!gvc.c@{gvc.\-c}}
\subsubsection[{gvc\-Info}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$$\ast$ gvc\-Info (
\begin{DoxyParamCaption}
\item[{{\bf G\-V\-C\-\_\-t} $\ast$}]{gvc}
\end{DoxyParamCaption}
)}\label{gvc_8c_af50c5e9ef425c0579adef5232bcdf42e}


Definition at line 242 of file gvc.\-c.



References G\-V\-C\-\_\-s\-::common, and G\-V\-C\-O\-M\-M\-O\-N\-\_\-s\-::info.

\index{gvc.\-c@{gvc.\-c}!gv\-Context@{gv\-Context}}
\index{gv\-Context@{gv\-Context}!gvc.c@{gvc.\-c}}
\subsubsection[{gv\-Context}]{\setlength{\rightskip}{0pt plus 5cm}{\bf G\-V\-C\-\_\-t}$\ast$ gv\-Context (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{gvc_8c_aa64b972a885a52cdbaf5a1c9aff28041}


Definition at line 25 of file gvc.\-c.



References agattr(), A\-G\-N\-O\-D\-E, F\-A\-L\-S\-E, gvc, gvconfig(), gv\-N\-E\-Wcontext(), N\-O\-D\-E\-N\-A\-M\-E\-\_\-\-E\-S\-C, N\-U\-L\-L, and T\-R\-U\-E.

\index{gvc.\-c@{gvc.\-c}!gv\-Context\-Plugins@{gv\-Context\-Plugins}}
\index{gv\-Context\-Plugins@{gv\-Context\-Plugins}!gvc.c@{gvc.\-c}}
\subsubsection[{gv\-Context\-Plugins}]{\setlength{\rightskip}{0pt plus 5cm}{\bf G\-V\-C\-\_\-t}$\ast$ gv\-Context\-Plugins (
\begin{DoxyParamCaption}
\item[{const {\bf lt\-\_\-symlist\-\_\-t} $\ast$}]{builtins, }
\item[{{\bf int}}]{demand\-\_\-loading}
\end{DoxyParamCaption}
)}\label{gvc_8c_af83cbf12adb243149643880fd609e460}


Definition at line 36 of file gvc.\-c.



References agattr(), A\-G\-N\-O\-D\-E, F\-A\-L\-S\-E, gvc, gvconfig(), gv\-N\-E\-Wcontext(), N\-O\-D\-E\-N\-A\-M\-E\-\_\-\-E\-S\-C, and N\-U\-L\-L.



Referenced by main(), and Tcldot\-\_\-\-Init().

\index{gvc.\-c@{gvc.\-c}!gvc\-Version@{gvc\-Version}}
\index{gvc\-Version@{gvc\-Version}!gvc.c@{gvc.\-c}}
\subsubsection[{gvc\-Version}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ gvc\-Version (
\begin{DoxyParamCaption}
\item[{{\bf G\-V\-C\-\_\-t} $\ast$}]{gvc}
\end{DoxyParamCaption}
)}\label{gvc_8c_a75bfe96efd8c294b1dc59f8a28ebc9d5}


Definition at line 243 of file gvc.\-c.



References G\-V\-C\-\_\-s\-::common, and G\-V\-C\-O\-M\-M\-O\-N\-\_\-s\-::info.

\index{gvc.\-c@{gvc.\-c}!gv\-Free\-Render\-Data@{gv\-Free\-Render\-Data}}
\index{gv\-Free\-Render\-Data@{gv\-Free\-Render\-Data}!gvc.c@{gvc.\-c}}
\subsubsection[{gv\-Free\-Render\-Data}]{\setlength{\rightskip}{0pt plus 5cm}void gv\-Free\-Render\-Data (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{data}
\end{DoxyParamCaption}
)}\label{gvc_8c_abfe5c9ff1184a54f744b5f792322bef7}


Definition at line 232 of file gvc.\-c.

\index{gvc.\-c@{gvc.\-c}!gv\-Layout@{gv\-Layout}}
\index{gv\-Layout@{gv\-Layout}!gvc.c@{gvc.\-c}}
\subsubsection[{gv\-Layout}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} gv\-Layout (
\begin{DoxyParamCaption}
\item[{{\bf G\-V\-C\-\_\-t} $\ast$}]{gvc, }
\item[{{\bf graph\-\_\-t} $\ast$}]{g, }
\item[{const char $\ast$}]{engine}
\end{DoxyParamCaption}
)}\label{gvc_8c_a61596ae3c9c9373f4f5e4ac498941122}


Definition at line 53 of file gvc.\-c.



References agerr(), A\-G\-E\-R\-R, agsafeset(), G\-D\-\_\-bb, G\-D\-\_\-drawing, gvlayout\-\_\-select(), gv\-Layout\-Jobs(), gvplugin\-\_\-list(), N\-O\-\_\-\-S\-U\-P\-P\-O\-R\-T, and R\-O\-U\-N\-D.



Referenced by layout().

\index{gvc.\-c@{gvc.\-c}!gv\-Render@{gv\-Render}}
\index{gv\-Render@{gv\-Render}!gvc.c@{gvc.\-c}}
\subsubsection[{gv\-Render}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} gv\-Render (
\begin{DoxyParamCaption}
\item[{{\bf G\-V\-C\-\_\-t} $\ast$}]{gvc, }
\item[{{\bf graph\-\_\-t} $\ast$}]{g, }
\item[{const char $\ast$}]{format, }
\item[{F\-I\-L\-E $\ast$}]{out}
\end{DoxyParamCaption}
)}\label{gvc_8c_a6a428473e1d8a784491c564af2274a3a}


Definition at line 85 of file gvc.\-c.



References agerr(), A\-G\-E\-R\-R, agerrorf(), G\-V\-J\-\_\-s\-::flags, gvjobs\-\_\-delete(), gvjobs\-\_\-output\-\_\-langname(), gvplugin\-\_\-list(), gvrender\-\_\-end\-\_\-job(), gvrender\-\_\-select(), gv\-Render\-Jobs(), G\-V\-C\-\_\-s\-::job, L\-A\-Y\-O\-U\-T\-\_\-\-D\-O\-N\-E, L\-A\-Y\-O\-U\-T\-\_\-\-N\-O\-T\-\_\-\-R\-E\-Q\-U\-I\-R\-E\-D, N\-O\-\_\-\-S\-U\-P\-P\-O\-R\-T, N\-U\-L\-L, G\-V\-J\-\_\-s\-::output\-\_\-file, G\-V\-J\-\_\-s\-::output\-\_\-lang, G\-V\-J\-\_\-s\-::output\-\_\-langname, O\-U\-T\-P\-U\-T\-\_\-\-N\-O\-T\-\_\-\-R\-E\-Q\-U\-I\-R\-E\-D, and Agraph\-\_\-s\-::root.



Referenced by render(), renderchannel(), and renderresult().

\index{gvc.\-c@{gvc.\-c}!gv\-Render\-Context@{gv\-Render\-Context}}
\index{gv\-Render\-Context@{gv\-Render\-Context}!gvc.c@{gvc.\-c}}
\subsubsection[{gv\-Render\-Context}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} gv\-Render\-Context (
\begin{DoxyParamCaption}
\item[{{\bf G\-V\-C\-\_\-t} $\ast$}]{gvc, }
\item[{{\bf graph\-\_\-t} $\ast$}]{g, }
\item[{const char $\ast$}]{format, }
\item[{void $\ast$}]{context}
\end{DoxyParamCaption}
)}\label{gvc_8c_ad994c58c824976bfc749f02f197c348b}


Definition at line 148 of file gvc.\-c.



References agerr(), A\-G\-E\-R\-R, agerrorf(), G\-V\-J\-\_\-s\-::context, G\-V\-J\-\_\-s\-::external\-\_\-context, G\-V\-J\-\_\-s\-::flags, gvdevice\-\_\-finalize(), gvjobs\-\_\-delete(), gvjobs\-\_\-output\-\_\-langname(), gvplugin\-\_\-list(), gvrender\-\_\-end\-\_\-job(), gvrender\-\_\-select(), gv\-Render\-Jobs(), G\-V\-C\-\_\-s\-::job, L\-A\-Y\-O\-U\-T\-\_\-\-D\-O\-N\-E, L\-A\-Y\-O\-U\-T\-\_\-\-N\-O\-T\-\_\-\-R\-E\-Q\-U\-I\-R\-E\-D, N\-O\-\_\-\-S\-U\-P\-P\-O\-R\-T, G\-V\-J\-\_\-s\-::output\-\_\-lang, G\-V\-J\-\_\-s\-::output\-\_\-langname, Agraph\-\_\-s\-::root, and T\-R\-U\-E.

\index{gvc.\-c@{gvc.\-c}!gv\-Render\-Data@{gv\-Render\-Data}}
\index{gv\-Render\-Data@{gv\-Render\-Data}!gvc.c@{gvc.\-c}}
\subsubsection[{gv\-Render\-Data}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} gv\-Render\-Data (
\begin{DoxyParamCaption}
\item[{{\bf G\-V\-C\-\_\-t} $\ast$}]{gvc, }
\item[{{\bf graph\-\_\-t} $\ast$}]{g, }
\item[{const char $\ast$}]{format, }
\item[{char $\ast$$\ast$}]{result, }
\item[{unsigned {\bf int} $\ast$}]{length}
\end{DoxyParamCaption}
)}\label{gvc_8c_a805c0f03342cd13811f38f85611f298c}


Definition at line 182 of file gvc.\-c.



References agerr(), A\-G\-E\-R\-R, agerrorf(), G\-V\-J\-\_\-s\-::flags, gvjobs\-\_\-delete(), gvjobs\-\_\-output\-\_\-langname(), gvplugin\-\_\-list(), gvrender\-\_\-end\-\_\-job(), gvrender\-\_\-select(), gv\-Render\-Jobs(), G\-V\-C\-\_\-s\-::job, L\-A\-Y\-O\-U\-T\-\_\-\-D\-O\-N\-E, L\-A\-Y\-O\-U\-T\-\_\-\-N\-O\-T\-\_\-\-R\-E\-Q\-U\-I\-R\-E\-D, N\-O\-\_\-\-S\-U\-P\-P\-O\-R\-T, G\-V\-J\-\_\-s\-::output\-\_\-data, G\-V\-J\-\_\-s\-::output\-\_\-data\-\_\-allocated, O\-U\-T\-P\-U\-T\-\_\-\-D\-A\-T\-A\-\_\-\-I\-N\-I\-T\-I\-A\-L\-\_\-\-A\-L\-L\-O\-C\-A\-T\-I\-O\-N, G\-V\-J\-\_\-s\-::output\-\_\-data\-\_\-position, G\-V\-J\-\_\-s\-::output\-\_\-lang, G\-V\-J\-\_\-s\-::output\-\_\-langname, and Agraph\-\_\-s\-::root.



Referenced by renderdata().

\index{gvc.\-c@{gvc.\-c}!gv\-Render\-Filename@{gv\-Render\-Filename}}
\index{gv\-Render\-Filename@{gv\-Render\-Filename}!gvc.c@{gvc.\-c}}
\subsubsection[{gv\-Render\-Filename}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} gv\-Render\-Filename (
\begin{DoxyParamCaption}
\item[{{\bf G\-V\-C\-\_\-t} $\ast$}]{gvc, }
\item[{{\bf graph\-\_\-t} $\ast$}]{g, }
\item[{const char $\ast$}]{format, }
\item[{const char $\ast$}]{filename}
\end{DoxyParamCaption}
)}\label{gvc_8c_ae074e161c1dd2329956abe90763470c5}


Definition at line 117 of file gvc.\-c.



References agerr(), A\-G\-E\-R\-R, agerrorf(), G\-V\-J\-\_\-s\-::flags, gvdevice\-\_\-finalize(), gvjobs\-\_\-delete(), gvjobs\-\_\-output\-\_\-filename(), gvjobs\-\_\-output\-\_\-langname(), gvplugin\-\_\-list(), gvrender\-\_\-end\-\_\-job(), gvrender\-\_\-select(), gv\-Render\-Jobs(), G\-V\-C\-\_\-s\-::job, L\-A\-Y\-O\-U\-T\-\_\-\-D\-O\-N\-E, L\-A\-Y\-O\-U\-T\-\_\-\-N\-O\-T\-\_\-\-R\-E\-Q\-U\-I\-R\-E\-D, N\-O\-\_\-\-S\-U\-P\-P\-O\-R\-T, G\-V\-J\-\_\-s\-::output\-\_\-lang, G\-V\-J\-\_\-s\-::output\-\_\-langname, and Agraph\-\_\-s\-::root.



Referenced by render().

