VPATH = ${top_srcdir}/src
# example source code is part of the org.glite.lb.client
-EXAMPLE_SOURCE_DIR=${stagedir}/share/doc/glite-lb-client-3.1.2/examples
+EXAMPLE_SOURCE_DIR=${top_srcdir}/examples
KPATH = TEXINPUTS=".:$(EXAMPLE_SOURCE_DIR):$(VPATH)//:"
KPATHBIB = BIBINPUTS=".:$(VPATH)//:"
$(INSTALL) -m 644 LBUG.pdf ${PREFIX}/share/doc/${package}-${version}
$(INSTALL) -m 644 LBAG.pdf ${PREFIX}/share/doc/${package}-${version}
$(INSTALL) -m 644 LBDG.pdf ${PREFIX}/share/doc/${package}-${version}
+ -mkdir -p ${PREFIX}/share/examples/dg
+# michal: install DG example sources
+ for p in ${top_srcdir}/examples/*; do \
+ ${INSTALL} -m 644 "$$p" "${PREFIX}/share/examples/dg"; \
+ done
clean:
rm -rvf LBUG* LBAG* LBDG* events.tex status.tex
+% -*- mode: latex -*-
+
\section{\LB\ Common}
\TODO{Add the information about LB common - list of header files, important functions and data types and their description, etc.}
+% -*- mode: latex -*-
+
\section{Introduction}
\TODO{Add the information from the "Best practices" workshop, i.e. information how the whole LB is coded, why C, what were the general techniques - context, connection pool, .T templates description, etc.}
+% -*- mode: latex -*-
\documentclass{egee}
\input{definitions}
(\LB) service API. Logging (producer), querying (consumer) and notification API as well as the Web Services
Interface is described in details together with programing examples. }
-\begin{document}
+\usepackage{listings}
+\begin{document}
+\lstset{language=C,basicstyle=\footnotesize,numbers=left,breaklines=true}
% ----- BEGIN COPY -----
% copied from org.glite.lb.client/doc/api/api.tex in hope it could be useful
+% -*- mode: latex -*-
+
\section{\LB\ Querying (Consumer) API}
\TODO{Complete review; create really functional (buildable) examples and use verbatiminput of relevant part of the code; add list of header files, important functions and data types and their description, etc.}
about a job with the ID\\
\texttt{https://lhun.ics.muni.cz:9000/OirOgeWh\_F9sfMZjnIPYhQ}.
-\verbatiminput{example1_code.c}
+\lstinputlisting{example1_code.c}
+
+%\verbatiminput{example1_code.c}
%\begin{verbatim}
% #include <glite/lb/consumer.h>
+% -*- mode: latex -*-
+
\section{\LB\ Notification API}
The purpose of this section is demonstrating the usage of the \LB\ notification API. Two examples of basic API usage are given.
+% -*- mode: latex -*-
+
\section{\LB\ Logging (Producer) API}
\TODO{Add the list of header files, important functions and data types and their description; add fully working (buildable) programing examples and use verbatiminput to include the important parts of the code.}
+% -*- mode: latex -*-
+
\section{Using \LB\ Web Service}
\TODO{Complete review, list of all relevant (WSDL) files, their location, etc.}