\doxysubsection{msg.\+c}
\label{msg_8c_source}\index{msg.c@{msg.c}}
\mbox{\hyperlink{msg_8c}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001 \textcolor{comment}{/*= -\/*-\/ c-\/basic-\/offset: 4; indent-\/tabs-\/mode: nil; -\/*-\/}}
\DoxyCodeLine{00002 \textcolor{comment}{ *}}
\DoxyCodeLine{00003 \textcolor{comment}{ * librsync -\/-\/ the library for network deltas}}
\DoxyCodeLine{00004 \textcolor{comment}{ *}}
\DoxyCodeLine{00005 \textcolor{comment}{ * Copyright (C) 2000, 2001 by Martin Pool <mbp@sourcefrog.net>}}
\DoxyCodeLine{00006 \textcolor{comment}{ *}}
\DoxyCodeLine{00007 \textcolor{comment}{ * This program is free software; you can redistribute it and/or}}
\DoxyCodeLine{00008 \textcolor{comment}{ * modify it under the terms of the GNU Lesser General Public License}}
\DoxyCodeLine{00009 \textcolor{comment}{ * as published by the Free Software Foundation; either version 2.1 of}}
\DoxyCodeLine{00010 \textcolor{comment}{ * the License, or (at your option) any later version.}}
\DoxyCodeLine{00011 \textcolor{comment}{ *}}
\DoxyCodeLine{00012 \textcolor{comment}{ * This program is distributed in the hope that it will be useful, but}}
\DoxyCodeLine{00013 \textcolor{comment}{ * WITHOUT ANY WARRANTY; without even the implied warranty of}}
\DoxyCodeLine{00014 \textcolor{comment}{ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU}}
\DoxyCodeLine{00015 \textcolor{comment}{ * Lesser General Public License for more details.}}
\DoxyCodeLine{00016 \textcolor{comment}{ *}}
\DoxyCodeLine{00017 \textcolor{comment}{ * You should have received a copy of the GNU Lesser General Public}}
\DoxyCodeLine{00018 \textcolor{comment}{ * License along with this program; if not, write to the Free Software}}
\DoxyCodeLine{00019 \textcolor{comment}{ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.}}
\DoxyCodeLine{00020 \textcolor{comment}{ */}}
\DoxyCodeLine{00021 }
\DoxyCodeLine{00022                               \textcolor{comment}{/*=}}
\DoxyCodeLine{00023 \textcolor{comment}{                               | Welcome to Arco AM/PM Mini-\/Market. We}}
\DoxyCodeLine{00024 \textcolor{comment}{                               | would like to advise our customers}}
\DoxyCodeLine{00025 \textcolor{comment}{                               | that any individual who offers to}}
\DoxyCodeLine{00026 \textcolor{comment}{                               | pump gas, wash windows or solicit}}
\DoxyCodeLine{00027 \textcolor{comment}{                               | products is not employed by or}}
\DoxyCodeLine{00028 \textcolor{comment}{                               | associated with this facility.  We}}
\DoxyCodeLine{00029 \textcolor{comment}{                               | discourage any contact with these}}
\DoxyCodeLine{00030 \textcolor{comment}{                               | individuals and ask that you report}}
\DoxyCodeLine{00031 \textcolor{comment}{                               | any problems to uniformed personal}}
\DoxyCodeLine{00032 \textcolor{comment}{                               | inside. Thankyou for shopping at}}
\DoxyCodeLine{00033 \textcolor{comment}{                               | Arco, and have a nice day.}}
\DoxyCodeLine{00034 \textcolor{comment}{                               */}}
\DoxyCodeLine{00035 \textcolor{comment}{}}
\DoxyCodeLine{00036 \textcolor{comment}{/** \(\backslash\)file msg.c}}
\DoxyCodeLine{00037 \textcolor{comment}{ * error messages for re\_result values.}}
\DoxyCodeLine{00038 \textcolor{comment}{ *}}
\DoxyCodeLine{00039 \textcolor{comment}{ * \(\backslash\)todo (Suggestion by tridge) Add a function which outputs a complete text}}
\DoxyCodeLine{00040 \textcolor{comment}{ * description of a job, including only the fields relevant to the current}}
\DoxyCodeLine{00041 \textcolor{comment}{ * encoding function. */}}
\DoxyCodeLine{00042 }
\DoxyCodeLine{00043 \textcolor{preprocessor}{\#include "{}config.h"{}}             \textcolor{comment}{/* IWYU pragma: keep */}}
\DoxyCodeLine{00044 \textcolor{preprocessor}{\#include "{}librsync.h"{}}}
\DoxyCodeLine{00045 }
\DoxyCodeLine{00046 \textcolor{keywordtype}{char} \textcolor{keyword}{const} *rs\_strerror(rs\_result r)}
\DoxyCodeLine{00047 \{}
\DoxyCodeLine{00048     \textcolor{keywordflow}{switch} (r) \{}
\DoxyCodeLine{00049     \textcolor{keywordflow}{case} RS\_DONE:}
\DoxyCodeLine{00050         \textcolor{keywordflow}{return} \textcolor{stringliteral}{"{}OK"{}};}
\DoxyCodeLine{00051     \textcolor{keywordflow}{case} RS\_RUNNING:}
\DoxyCodeLine{00052         \textcolor{keywordflow}{return} \textcolor{stringliteral}{"{}still running"{}};}
\DoxyCodeLine{00053     \textcolor{keywordflow}{case} RS\_BLOCKED:}
\DoxyCodeLine{00054         \textcolor{keywordflow}{return} \textcolor{stringliteral}{"{}blocked waiting for input or output buffers"{}};}
\DoxyCodeLine{00055     \textcolor{keywordflow}{case} RS\_BAD\_MAGIC:}
\DoxyCodeLine{00056         \textcolor{keywordflow}{return} \textcolor{stringliteral}{"{}bad magic number at start of stream"{}};}
\DoxyCodeLine{00057     \textcolor{keywordflow}{case} RS\_INPUT\_ENDED:}
\DoxyCodeLine{00058         \textcolor{keywordflow}{return} \textcolor{stringliteral}{"{}unexpected end of input"{}};}
\DoxyCodeLine{00059     \textcolor{keywordflow}{case} RS\_CORRUPT:}
\DoxyCodeLine{00060         \textcolor{keywordflow}{return} \textcolor{stringliteral}{"{}stream corrupt"{}};}
\DoxyCodeLine{00061     \textcolor{keywordflow}{case} RS\_UNIMPLEMENTED:}
\DoxyCodeLine{00062         \textcolor{keywordflow}{return} \textcolor{stringliteral}{"{}unimplemented case"{}};}
\DoxyCodeLine{00063     \textcolor{keywordflow}{case} RS\_MEM\_ERROR:}
\DoxyCodeLine{00064         \textcolor{keywordflow}{return} \textcolor{stringliteral}{"{}out of memory"{}};}
\DoxyCodeLine{00065     \textcolor{keywordflow}{case} RS\_IO\_ERROR:}
\DoxyCodeLine{00066         \textcolor{keywordflow}{return} \textcolor{stringliteral}{"{}IO error"{}};}
\DoxyCodeLine{00067     \textcolor{keywordflow}{case} RS\_SYNTAX\_ERROR:}
\DoxyCodeLine{00068         \textcolor{keywordflow}{return} \textcolor{stringliteral}{"{}bad command line syntax"{}};}
\DoxyCodeLine{00069     \textcolor{keywordflow}{case} RS\_INTERNAL\_ERROR:}
\DoxyCodeLine{00070         \textcolor{keywordflow}{return} \textcolor{stringliteral}{"{}library internal error"{}};}
\DoxyCodeLine{00071 }
\DoxyCodeLine{00072     \textcolor{keywordflow}{default}:}
\DoxyCodeLine{00073         \textcolor{keywordflow}{return} \textcolor{stringliteral}{"{}unexplained problem"{}};}
\DoxyCodeLine{00074     \}}
\DoxyCodeLine{00075 \}}

\end{DoxyCode}
