\hypertarget{structsignal__protocol__signed__pre__key__store}{}\section{signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store Struct Reference}
\label{structsignal__protocol__signed__pre__key__store}\index{signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store@{signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store}}


{\ttfamily \#include $<$signal\+\_\+protocol.\+h$>$}

\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
int($\ast$ \hyperlink{structsignal__protocol__signed__pre__key__store_a6ff5241832d2c6e172530dd1b2729ee1}{load\+\_\+signed\+\_\+pre\+\_\+key} )(\hyperlink{structsignal__buffer}{signal\+\_\+buffer} $\ast$$\ast$record, \hyperlink{uthash_8h_a435d1572bf3f880d55459d9805097f62}{uint32\+\_\+t} signed\+\_\+pre\+\_\+key\+\_\+id, void $\ast$\hyperlink{structsignal__protocol__signed__pre__key__store_a0f53d287ac7c064d1a49d4bd93ca1cb9}{user\+\_\+data})
\item 
int($\ast$ \hyperlink{structsignal__protocol__signed__pre__key__store_a69ffe5ba4f29f45722a5119db4f5c7dc}{store\+\_\+signed\+\_\+pre\+\_\+key} )(\hyperlink{uthash_8h_a435d1572bf3f880d55459d9805097f62}{uint32\+\_\+t} signed\+\_\+pre\+\_\+key\+\_\+id, \hyperlink{uthash_8h_aba7bc1797add20fe3efdf37ced1182c5}{uint8\+\_\+t} $\ast$record, size\+\_\+t record\+\_\+len, void $\ast$\hyperlink{structsignal__protocol__signed__pre__key__store_a0f53d287ac7c064d1a49d4bd93ca1cb9}{user\+\_\+data})
\item 
int($\ast$ \hyperlink{structsignal__protocol__signed__pre__key__store_a8c7963342798e3ad46918313e0fdac99}{contains\+\_\+signed\+\_\+pre\+\_\+key} )(\hyperlink{uthash_8h_a435d1572bf3f880d55459d9805097f62}{uint32\+\_\+t} signed\+\_\+pre\+\_\+key\+\_\+id, void $\ast$\hyperlink{structsignal__protocol__signed__pre__key__store_a0f53d287ac7c064d1a49d4bd93ca1cb9}{user\+\_\+data})
\item 
int($\ast$ \hyperlink{structsignal__protocol__signed__pre__key__store_a842b07c93c4c071dbbcd506cd2ed041b}{remove\+\_\+signed\+\_\+pre\+\_\+key} )(\hyperlink{uthash_8h_a435d1572bf3f880d55459d9805097f62}{uint32\+\_\+t} signed\+\_\+pre\+\_\+key\+\_\+id, void $\ast$\hyperlink{structsignal__protocol__signed__pre__key__store_a0f53d287ac7c064d1a49d4bd93ca1cb9}{user\+\_\+data})
\item 
void($\ast$ \hyperlink{structsignal__protocol__signed__pre__key__store_aff3fc05d69acc3eb8074e6d587bbffe2}{destroy\+\_\+func} )(void $\ast$\hyperlink{structsignal__protocol__signed__pre__key__store_a0f53d287ac7c064d1a49d4bd93ca1cb9}{user\+\_\+data})
\item 
void $\ast$ \hyperlink{structsignal__protocol__signed__pre__key__store_a0f53d287ac7c064d1a49d4bd93ca1cb9}{user\+\_\+data}
\end{DoxyCompactItemize}


\subsection{Detailed Description}


Definition at line 542 of file signal\+\_\+protocol.\+h.



\subsection{Field Documentation}
\mbox{\Hypertarget{structsignal__protocol__signed__pre__key__store_a8c7963342798e3ad46918313e0fdac99}\label{structsignal__protocol__signed__pre__key__store_a8c7963342798e3ad46918313e0fdac99}} 
\index{signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store@{signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store}!contains\+\_\+signed\+\_\+pre\+\_\+key@{contains\+\_\+signed\+\_\+pre\+\_\+key}}
\index{contains\+\_\+signed\+\_\+pre\+\_\+key@{contains\+\_\+signed\+\_\+pre\+\_\+key}!signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store@{signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store}}
\subsubsection{\texorpdfstring{contains\+\_\+signed\+\_\+pre\+\_\+key}{contains\_signed\_pre\_key}}
{\footnotesize\ttfamily int($\ast$ contains\+\_\+signed\+\_\+pre\+\_\+key) (\hyperlink{uthash_8h_a435d1572bf3f880d55459d9805097f62}{uint32\+\_\+t} signed\+\_\+pre\+\_\+key\+\_\+id, void $\ast$\hyperlink{structsignal__protocol__signed__pre__key__store_a0f53d287ac7c064d1a49d4bd93ca1cb9}{user\+\_\+data})}

Determine whether there is a committed signed Pre\+Key record matching the provided ID.


\begin{DoxyParams}{Parameters}
{\em signed\+\_\+pre\+\_\+key\+\_\+id} & A signed Pre\+Key record ID. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
1 if the store has a record for the signed Pre\+Key ID, 0 otherwise 
\end{DoxyReturn}


Definition at line 572 of file signal\+\_\+protocol.\+h.

\mbox{\Hypertarget{structsignal__protocol__signed__pre__key__store_aff3fc05d69acc3eb8074e6d587bbffe2}\label{structsignal__protocol__signed__pre__key__store_aff3fc05d69acc3eb8074e6d587bbffe2}} 
\index{signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store@{signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store}!destroy\+\_\+func@{destroy\+\_\+func}}
\index{destroy\+\_\+func@{destroy\+\_\+func}!signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store@{signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store}}
\subsubsection{\texorpdfstring{destroy\+\_\+func}{destroy\_func}}
{\footnotesize\ttfamily void($\ast$ destroy\+\_\+func) (void $\ast$\hyperlink{structsignal__protocol__signed__pre__key__store_a0f53d287ac7c064d1a49d4bd93ca1cb9}{user\+\_\+data})}

Function called to perform cleanup when the data store context is being destroyed. 

Definition at line 586 of file signal\+\_\+protocol.\+h.

\mbox{\Hypertarget{structsignal__protocol__signed__pre__key__store_a6ff5241832d2c6e172530dd1b2729ee1}\label{structsignal__protocol__signed__pre__key__store_a6ff5241832d2c6e172530dd1b2729ee1}} 
\index{signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store@{signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store}!load\+\_\+signed\+\_\+pre\+\_\+key@{load\+\_\+signed\+\_\+pre\+\_\+key}}
\index{load\+\_\+signed\+\_\+pre\+\_\+key@{load\+\_\+signed\+\_\+pre\+\_\+key}!signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store@{signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store}}
\subsubsection{\texorpdfstring{load\+\_\+signed\+\_\+pre\+\_\+key}{load\_signed\_pre\_key}}
{\footnotesize\ttfamily int($\ast$ load\+\_\+signed\+\_\+pre\+\_\+key) (\hyperlink{structsignal__buffer}{signal\+\_\+buffer} $\ast$$\ast$record, \hyperlink{uthash_8h_a435d1572bf3f880d55459d9805097f62}{uint32\+\_\+t} signed\+\_\+pre\+\_\+key\+\_\+id, void $\ast$\hyperlink{structsignal__protocol__signed__pre__key__store_a0f53d287ac7c064d1a49d4bd93ca1cb9}{user\+\_\+data})}

Load a local serialized signed Pre\+Key record.


\begin{DoxyParams}{Parameters}
{\em record} & pointer to a newly allocated buffer containing the record, if found. Unset if no record was found. The Signal Protocol library is responsible for freeing this buffer. \\
\hline
{\em signed\+\_\+pre\+\_\+key\+\_\+id} & the ID of the local signed Pre\+Key record \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em S\+G\+\_\+\+S\+U\+C\+C\+E\+SS} & if the key was found \\
\hline
{\em S\+G\+\_\+\+E\+R\+R\+\_\+\+I\+N\+V\+A\+L\+I\+D\+\_\+\+K\+E\+Y\+\_\+\+ID} & if the key could not be found \\
\hline
\end{DoxyRetVals}


Definition at line 553 of file signal\+\_\+protocol.\+h.

\mbox{\Hypertarget{structsignal__protocol__signed__pre__key__store_a842b07c93c4c071dbbcd506cd2ed041b}\label{structsignal__protocol__signed__pre__key__store_a842b07c93c4c071dbbcd506cd2ed041b}} 
\index{signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store@{signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store}!remove\+\_\+signed\+\_\+pre\+\_\+key@{remove\+\_\+signed\+\_\+pre\+\_\+key}}
\index{remove\+\_\+signed\+\_\+pre\+\_\+key@{remove\+\_\+signed\+\_\+pre\+\_\+key}!signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store@{signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store}}
\subsubsection{\texorpdfstring{remove\+\_\+signed\+\_\+pre\+\_\+key}{remove\_signed\_pre\_key}}
{\footnotesize\ttfamily int($\ast$ remove\+\_\+signed\+\_\+pre\+\_\+key) (\hyperlink{uthash_8h_a435d1572bf3f880d55459d9805097f62}{uint32\+\_\+t} signed\+\_\+pre\+\_\+key\+\_\+id, void $\ast$\hyperlink{structsignal__protocol__signed__pre__key__store_a0f53d287ac7c064d1a49d4bd93ca1cb9}{user\+\_\+data})}

Delete a Signed\+Pre\+Key\+Record from local storage.


\begin{DoxyParams}{Parameters}
{\em signed\+\_\+pre\+\_\+key\+\_\+id} & The ID of the signed Pre\+Key record to remove. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 on success, negative on failure 
\end{DoxyReturn}


Definition at line 580 of file signal\+\_\+protocol.\+h.

\mbox{\Hypertarget{structsignal__protocol__signed__pre__key__store_a69ffe5ba4f29f45722a5119db4f5c7dc}\label{structsignal__protocol__signed__pre__key__store_a69ffe5ba4f29f45722a5119db4f5c7dc}} 
\index{signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store@{signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store}!store\+\_\+signed\+\_\+pre\+\_\+key@{store\+\_\+signed\+\_\+pre\+\_\+key}}
\index{store\+\_\+signed\+\_\+pre\+\_\+key@{store\+\_\+signed\+\_\+pre\+\_\+key}!signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store@{signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store}}
\subsubsection{\texorpdfstring{store\+\_\+signed\+\_\+pre\+\_\+key}{store\_signed\_pre\_key}}
{\footnotesize\ttfamily int($\ast$ store\+\_\+signed\+\_\+pre\+\_\+key) (\hyperlink{uthash_8h_a435d1572bf3f880d55459d9805097f62}{uint32\+\_\+t} signed\+\_\+pre\+\_\+key\+\_\+id, \hyperlink{uthash_8h_aba7bc1797add20fe3efdf37ced1182c5}{uint8\+\_\+t} $\ast$record, size\+\_\+t record\+\_\+len, void $\ast$\hyperlink{structsignal__protocol__signed__pre__key__store_a0f53d287ac7c064d1a49d4bd93ca1cb9}{user\+\_\+data})}

Store a local serialized signed Pre\+Key record.


\begin{DoxyParams}{Parameters}
{\em signed\+\_\+pre\+\_\+key\+\_\+id} & the ID of the signed Pre\+Key record to store \\
\hline
{\em record} & pointer to a buffer containing the serialized record \\
\hline
{\em record\+\_\+len} & length of the serialized record \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 on success, negative on failure 
\end{DoxyReturn}


Definition at line 563 of file signal\+\_\+protocol.\+h.

\mbox{\Hypertarget{structsignal__protocol__signed__pre__key__store_a0f53d287ac7c064d1a49d4bd93ca1cb9}\label{structsignal__protocol__signed__pre__key__store_a0f53d287ac7c064d1a49d4bd93ca1cb9}} 
\index{signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store@{signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store}!user\+\_\+data@{user\+\_\+data}}
\index{user\+\_\+data@{user\+\_\+data}!signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store@{signal\+\_\+protocol\+\_\+signed\+\_\+pre\+\_\+key\+\_\+store}}
\subsubsection{\texorpdfstring{user\+\_\+data}{user\_data}}
{\footnotesize\ttfamily void$\ast$ user\+\_\+data}

User data pointer 

Definition at line 589 of file signal\+\_\+protocol.\+h.



The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
src/\hyperlink{signal__protocol_8h}{signal\+\_\+protocol.\+h}\end{DoxyCompactItemize}
