\doxysubsection{readsums.\+c File Reference}
\label{readsums_8c}\index{readsums.c@{readsums.c}}


Load signatures from a file.  


Include dependency graph for readsums.\+c\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{readsums_8c__incl}
\end{center}
\end{figure}
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
static \mbox{\hyperlink{librsync_8h_a7feb858ceba3b8f3cf048d49be108253}{rs\+\_\+result}} \mbox{\hyperlink{readsums_8c_a5bec5bfbb006bd4423a6f9e6e8e03899}{rs\+\_\+loadsig\+\_\+s\+\_\+weak}} (\mbox{\hyperlink{librsync_8h_add6622b38e3fa557301a190876d5ed4a}{rs\+\_\+job\+\_\+t}} $\ast$job)
\item 
static \mbox{\hyperlink{librsync_8h_a7feb858ceba3b8f3cf048d49be108253}{rs\+\_\+result}} \mbox{\hyperlink{readsums_8c_afde7df2bb7ff4488abe5091e4bc6f621}{rs\+\_\+loadsig\+\_\+s\+\_\+strong}} (\mbox{\hyperlink{librsync_8h_add6622b38e3fa557301a190876d5ed4a}{rs\+\_\+job\+\_\+t}} $\ast$job)
\item 
static \mbox{\hyperlink{librsync_8h_a7feb858ceba3b8f3cf048d49be108253}{rs\+\_\+result}} \mbox{\hyperlink{readsums_8c_aa2c81fd788ed10ac4fb56bed3b1b40d7}{rs\+\_\+loadsig\+\_\+add\+\_\+sum}} (\mbox{\hyperlink{librsync_8h_add6622b38e3fa557301a190876d5ed4a}{rs\+\_\+job\+\_\+t}} $\ast$job, rs\+\_\+strong\+\_\+sum\+\_\+t $\ast$strong)
\begin{DoxyCompactList}\small\item\em Add a just-\/read-\/in checksum pair to the signature block. \end{DoxyCompactList}\item 
static \mbox{\hyperlink{librsync_8h_a7feb858ceba3b8f3cf048d49be108253}{rs\+\_\+result}} \mbox{\hyperlink{readsums_8c_a4f2aea5d50f2cdc737e5f68a3f18cb3a}{rs\+\_\+loadsig\+\_\+s\+\_\+stronglen}} (\mbox{\hyperlink{librsync_8h_add6622b38e3fa557301a190876d5ed4a}{rs\+\_\+job\+\_\+t}} $\ast$job)
\item 
static \mbox{\hyperlink{librsync_8h_a7feb858ceba3b8f3cf048d49be108253}{rs\+\_\+result}} \mbox{\hyperlink{readsums_8c_aedb7f47c6529b5245b491caec23c0823}{rs\+\_\+loadsig\+\_\+s\+\_\+blocklen}} (\mbox{\hyperlink{librsync_8h_add6622b38e3fa557301a190876d5ed4a}{rs\+\_\+job\+\_\+t}} $\ast$job)
\item 
static \mbox{\hyperlink{librsync_8h_a7feb858ceba3b8f3cf048d49be108253}{rs\+\_\+result}} \mbox{\hyperlink{readsums_8c_a0aec92740dbf0592b0806397594bd86c}{rs\+\_\+loadsig\+\_\+s\+\_\+magic}} (\mbox{\hyperlink{librsync_8h_add6622b38e3fa557301a190876d5ed4a}{rs\+\_\+job\+\_\+t}} $\ast$job)
\item 
\mbox{\hyperlink{librsync_8h_add6622b38e3fa557301a190876d5ed4a}{rs\+\_\+job\+\_\+t}} $\ast$ \mbox{\hyperlink{readsums_8c_a68868ea316ef8c5ebd0d8a06cd309cd6}{rs\+\_\+loadsig\+\_\+begin}} (\mbox{\hyperlink{librsync_8h_afb2a9cb505daeb8e519d06686f5caabf}{rs\+\_\+signature\+\_\+t}} $\ast$$\ast$signature)
\begin{DoxyCompactList}\small\item\em Read a signature from a file into an \mbox{\hyperlink{structrs__signature}{rs\+\_\+signature}} structure in memory. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsubsection{Detailed Description}
Load signatures from a file. 



Definition in file \mbox{\hyperlink{readsums_8c_source}{readsums.\+c}}.



\doxysubsubsection{Function Documentation}
\mbox{\label{readsums_8c_a5bec5bfbb006bd4423a6f9e6e8e03899}} 
\index{readsums.c@{readsums.c}!rs\_loadsig\_s\_weak@{rs\_loadsig\_s\_weak}}
\index{rs\_loadsig\_s\_weak@{rs\_loadsig\_s\_weak}!readsums.c@{readsums.c}}
\doxyparagraph{\texorpdfstring{rs\_loadsig\_s\_weak()}{rs\_loadsig\_s\_weak()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{librsync_8h_a7feb858ceba3b8f3cf048d49be108253}{rs\+\_\+result}} rs\+\_\+loadsig\+\_\+s\+\_\+weak (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{librsync_8h_add6622b38e3fa557301a190876d5ed4a}{rs\+\_\+job\+\_\+t}} $\ast$}]{job }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Definition at line \mbox{\hyperlink{readsums_8c_source_l00054}{54}} of file \mbox{\hyperlink{readsums_8c_source}{readsums.\+c}}.

\mbox{\label{readsums_8c_afde7df2bb7ff4488abe5091e4bc6f621}} 
\index{readsums.c@{readsums.c}!rs\_loadsig\_s\_strong@{rs\_loadsig\_s\_strong}}
\index{rs\_loadsig\_s\_strong@{rs\_loadsig\_s\_strong}!readsums.c@{readsums.c}}
\doxyparagraph{\texorpdfstring{rs\_loadsig\_s\_strong()}{rs\_loadsig\_s\_strong()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{librsync_8h_a7feb858ceba3b8f3cf048d49be108253}{rs\+\_\+result}} rs\+\_\+loadsig\+\_\+s\+\_\+strong (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{librsync_8h_add6622b38e3fa557301a190876d5ed4a}{rs\+\_\+job\+\_\+t}} $\ast$}]{job }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Definition at line \mbox{\hyperlink{readsums_8c_source_l00069}{69}} of file \mbox{\hyperlink{readsums_8c_source}{readsums.\+c}}.

\mbox{\label{readsums_8c_aa2c81fd788ed10ac4fb56bed3b1b40d7}} 
\index{readsums.c@{readsums.c}!rs\_loadsig\_add\_sum@{rs\_loadsig\_add\_sum}}
\index{rs\_loadsig\_add\_sum@{rs\_loadsig\_add\_sum}!readsums.c@{readsums.c}}
\doxyparagraph{\texorpdfstring{rs\_loadsig\_add\_sum()}{rs\_loadsig\_add\_sum()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{librsync_8h_a7feb858ceba3b8f3cf048d49be108253}{rs\+\_\+result}} rs\+\_\+loadsig\+\_\+add\+\_\+sum (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{librsync_8h_add6622b38e3fa557301a190876d5ed4a}{rs\+\_\+job\+\_\+t}} $\ast$}]{job,  }\item[{rs\+\_\+strong\+\_\+sum\+\_\+t $\ast$}]{strong }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Add a just-\/read-\/in checksum pair to the signature block. 



Definition at line \mbox{\hyperlink{readsums_8c_source_l00039}{39}} of file \mbox{\hyperlink{readsums_8c_source}{readsums.\+c}}.

\mbox{\label{readsums_8c_a4f2aea5d50f2cdc737e5f68a3f18cb3a}} 
\index{readsums.c@{readsums.c}!rs\_loadsig\_s\_stronglen@{rs\_loadsig\_s\_stronglen}}
\index{rs\_loadsig\_s\_stronglen@{rs\_loadsig\_s\_stronglen}!readsums.c@{readsums.c}}
\doxyparagraph{\texorpdfstring{rs\_loadsig\_s\_stronglen()}{rs\_loadsig\_s\_stronglen()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{librsync_8h_a7feb858ceba3b8f3cf048d49be108253}{rs\+\_\+result}} rs\+\_\+loadsig\+\_\+s\+\_\+stronglen (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{librsync_8h_add6622b38e3fa557301a190876d5ed4a}{rs\+\_\+job\+\_\+t}} $\ast$}]{job }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Definition at line \mbox{\hyperlink{readsums_8c_source_l00082}{82}} of file \mbox{\hyperlink{readsums_8c_source}{readsums.\+c}}.

\mbox{\label{readsums_8c_aedb7f47c6529b5245b491caec23c0823}} 
\index{readsums.c@{readsums.c}!rs\_loadsig\_s\_blocklen@{rs\_loadsig\_s\_blocklen}}
\index{rs\_loadsig\_s\_blocklen@{rs\_loadsig\_s\_blocklen}!readsums.c@{readsums.c}}
\doxyparagraph{\texorpdfstring{rs\_loadsig\_s\_blocklen()}{rs\_loadsig\_s\_blocklen()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{librsync_8h_a7feb858ceba3b8f3cf048d49be108253}{rs\+\_\+result}} rs\+\_\+loadsig\+\_\+s\+\_\+blocklen (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{librsync_8h_add6622b38e3fa557301a190876d5ed4a}{rs\+\_\+job\+\_\+t}} $\ast$}]{job }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Definition at line \mbox{\hyperlink{readsums_8c_source_l00104}{104}} of file \mbox{\hyperlink{readsums_8c_source}{readsums.\+c}}.

\mbox{\label{readsums_8c_a0aec92740dbf0592b0806397594bd86c}} 
\index{readsums.c@{readsums.c}!rs\_loadsig\_s\_magic@{rs\_loadsig\_s\_magic}}
\index{rs\_loadsig\_s\_magic@{rs\_loadsig\_s\_magic}!readsums.c@{readsums.c}}
\doxyparagraph{\texorpdfstring{rs\_loadsig\_s\_magic()}{rs\_loadsig\_s\_magic()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{librsync_8h_a7feb858ceba3b8f3cf048d49be108253}{rs\+\_\+result}} rs\+\_\+loadsig\+\_\+s\+\_\+magic (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{librsync_8h_add6622b38e3fa557301a190876d5ed4a}{rs\+\_\+job\+\_\+t}} $\ast$}]{job }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Definition at line \mbox{\hyperlink{readsums_8c_source_l00122}{122}} of file \mbox{\hyperlink{readsums_8c_source}{readsums.\+c}}.

\mbox{\label{readsums_8c_a68868ea316ef8c5ebd0d8a06cd309cd6}} 
\index{readsums.c@{readsums.c}!rs\_loadsig\_begin@{rs\_loadsig\_begin}}
\index{rs\_loadsig\_begin@{rs\_loadsig\_begin}!readsums.c@{readsums.c}}
\doxyparagraph{\texorpdfstring{rs\_loadsig\_begin()}{rs\_loadsig\_begin()}}
{\footnotesize\ttfamily \mbox{\hyperlink{librsync_8h_add6622b38e3fa557301a190876d5ed4a}{rs\+\_\+job\+\_\+t}} $\ast$ rs\+\_\+loadsig\+\_\+begin (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{librsync_8h_afb2a9cb505daeb8e519d06686f5caabf}{rs\+\_\+signature\+\_\+t}} $\ast$$\ast$}]{signature }\end{DoxyParamCaption})}



Read a signature from a file into an \mbox{\hyperlink{structrs__signature}{rs\+\_\+signature}} structure in memory. 

Once there, it can be used to generate a delta to a newer version of the file.

\begin{DoxyNote}{Note}
After loading the signatures, you must call \mbox{\hyperlink{librsync_8h_a1c11ff785ebcd7210f5485d0c97fc812}{rs\+\_\+build\+\_\+hash\+\_\+table()}} before you can use them. 
\end{DoxyNote}


Definition at line \mbox{\hyperlink{readsums_8c_source_l00135}{135}} of file \mbox{\hyperlink{readsums_8c_source}{readsums.\+c}}.

