\doxysection{mw\+\_\+srvc\+\_\+store.\+h}
\hypertarget{mw__srvc__store_8h_source}{}\label{mw__srvc__store_8h_source}\index{mw\_srvc\_store.h@{mw\_srvc\_store.h}}
\mbox{\hyperlink{mw__srvc__store_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ }
\DoxyCodeLine{00002\ \textcolor{comment}{/*}}
\DoxyCodeLine{00003\ \textcolor{comment}{\ \ Meanwhile\ -\/\ Unofficial\ Lotus\ Sametime\ Community\ Client\ Library}}
\DoxyCodeLine{00004\ \textcolor{comment}{\ \ Copyright\ (C)\ 2004\ \ Christopher\ (siege)\ O'Brien}}
\DoxyCodeLine{00005\ \textcolor{comment}{\ \ }}
\DoxyCodeLine{00006\ \textcolor{comment}{\ \ This\ library\ is\ free\ software;\ you\ can\ redistribute\ it\ and/or}}
\DoxyCodeLine{00007\ \textcolor{comment}{\ \ modify\ it\ under\ the\ terms\ of\ the\ GNU\ Library\ General\ Public}}
\DoxyCodeLine{00008\ \textcolor{comment}{\ \ License\ as\ published\ by\ the\ Free\ Software\ Foundation;\ either}}
\DoxyCodeLine{00009\ \textcolor{comment}{\ \ version\ 2\ of\ the\ License,\ or\ (at\ your\ option)\ any\ later\ version.}}
\DoxyCodeLine{00010\ \textcolor{comment}{\ \ }}
\DoxyCodeLine{00011\ \textcolor{comment}{\ \ This\ library\ is\ distributed\ in\ the\ hope\ that\ it\ will\ be\ useful,}}
\DoxyCodeLine{00012\ \textcolor{comment}{\ \ but\ WITHOUT\ ANY\ WARRANTY;\ without\ even\ the\ implied\ warranty\ of}}
\DoxyCodeLine{00013\ \textcolor{comment}{\ \ MERCHANTABILITY\ or\ FITNESS\ FOR\ A\ PARTICULAR\ PURPOSE.\ \ See\ the\ GNU}}
\DoxyCodeLine{00014\ \textcolor{comment}{\ \ Library\ General\ Public\ License\ for\ more\ details.}}
\DoxyCodeLine{00015\ \textcolor{comment}{\ \ }}
\DoxyCodeLine{00016\ \textcolor{comment}{\ \ You\ should\ have\ received\ a\ copy\ of\ the\ GNU\ Library\ General\ Public}}
\DoxyCodeLine{00017\ \textcolor{comment}{\ \ License\ along\ with\ this\ library;\ if\ not,\ write\ to\ the\ Free}}
\DoxyCodeLine{00018\ \textcolor{comment}{\ \ Foundation,\ Inc.,\ 59\ Temple\ Place,\ Suite\ 330,\ Boston,\ MA\ \ 02111-\/1307\ \ USA}}
\DoxyCodeLine{00019\ \textcolor{comment}{*/}}
\DoxyCodeLine{00020\ }
\DoxyCodeLine{00021\ \textcolor{preprocessor}{\#ifndef\ \_MW\_SRVC\_STORE\_H}}
\DoxyCodeLine{00022\ \textcolor{preprocessor}{\#define\ \_MW\_SRVC\_STORE\_H}}
\DoxyCodeLine{00023\ }
\DoxyCodeLine{00024\ }
\DoxyCodeLine{00025\ \textcolor{preprocessor}{\#include\ <glib.h>}}
\DoxyCodeLine{00026\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{mw__common_8h}{mw\_common.h}}"{}}}
\DoxyCodeLine{00027\ }
\DoxyCodeLine{00028\ }
\DoxyCodeLine{00029\ \textcolor{preprocessor}{\#ifdef\ \_\_cplusplus}}
\DoxyCodeLine{00030\ \textcolor{keyword}{extern}\ \textcolor{stringliteral}{"{}C"{}}\ \{}
\DoxyCodeLine{00031\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00032\ }
\DoxyCodeLine{00033\ }
\DoxyCodeLine{00035\ \textcolor{preprocessor}{\#define\ mwService\_STORAGE\ \ 0x00000018}}
\DoxyCodeLine{00036\ }
\DoxyCodeLine{00037\ }
\DoxyCodeLine{00042\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structmwServiceStorage}{mwServiceStorage}};}
\DoxyCodeLine{00043\ }
\DoxyCodeLine{00044\ }
\DoxyCodeLine{00049\ \textcolor{keyword}{struct\ }mwStorageUnit;}
\DoxyCodeLine{00050\ }
\DoxyCodeLine{00051\ }
\DoxyCodeLine{00053\ \textcolor{preprocessor}{\#define\ LOTUS\_RESERVED\_LIMIT\ \ 0x186a0}}
\DoxyCodeLine{00054\ }
\DoxyCodeLine{00055\ }
\DoxyCodeLine{00057\ \textcolor{preprocessor}{\#define\ KEY\_IS\_LOTUS\_RESERVED(key)\ \(\backslash\)}}
\DoxyCodeLine{00058\ \textcolor{preprocessor}{\ \ (((guint32)\ key)\ <=\ (LOTUS\_RESERVED\_LIMIT))}}
\DoxyCodeLine{00059\ }
\DoxyCodeLine{00060\ }
\DoxyCodeLine{00064\ \textcolor{keyword}{enum}\ \mbox{\hyperlink{mw__srvc__store_8h_ab490c5f87cc36273720570b9bb2b3f88}{mwStorageKey}}\ \{}
\DoxyCodeLine{00065\ }
\DoxyCodeLine{00067\ \ \ \mbox{\hyperlink{mw__srvc__store_8h_ab490c5f87cc36273720570b9bb2b3f88a8f07f37098cbd1582954f3b060dd13ab}{mwStore\_AWARE\_LIST}}\ \ \ \ \ \ =\ 0x00000000,}
\DoxyCodeLine{00068\ }
\DoxyCodeLine{00070\ \ \ \mbox{\hyperlink{mw__srvc__store_8h_ab490c5f87cc36273720570b9bb2b3f88a76cfbb82cc77f969260bf3ee1ab93950}{mwStore\_INVITE\_CHAT}}\ \ \ \ \ =\ 0x00000006,}
\DoxyCodeLine{00071\ }
\DoxyCodeLine{00073\ \ \ \mbox{\hyperlink{mw__srvc__store_8h_ab490c5f87cc36273720570b9bb2b3f88ad97fb6917035f4ed4ca6576d8671b2d6}{mwStore\_INVITE\_MEETING}}\ \ =\ 0x0000000e,}
\DoxyCodeLine{00074\ }
\DoxyCodeLine{00076\ \ \ \mbox{\hyperlink{mw__srvc__store_8h_ab490c5f87cc36273720570b9bb2b3f88a8a037320a3eaff77120fee66eae5445b}{mwStore\_AWAY\_MESSAGES}}\ \ \ =\ 0x00000050,}
\DoxyCodeLine{00077\ }
\DoxyCodeLine{00079\ \ \ \mbox{\hyperlink{mw__srvc__store_8h_ab490c5f87cc36273720570b9bb2b3f88a2b1d1f0de29ac8b4f309bff5c58735f1}{mwStore\_BUSY\_MESSAGES}}\ \ \ =\ 0x0000005a,}
\DoxyCodeLine{00080\ }
\DoxyCodeLine{00082\ \ \ \mbox{\hyperlink{mw__srvc__store_8h_ab490c5f87cc36273720570b9bb2b3f88ac3697e70cff492cbcbd2aca8fbc82f84}{mwStore\_ACTIVE\_MESSAGES}}\ =\ 0x00000064,}
\DoxyCodeLine{00083\ \};}
\DoxyCodeLine{00084\ }
\DoxyCodeLine{00085\ }
\DoxyCodeLine{00092\ \textcolor{keyword}{typedef}\ void\ (*\mbox{\hyperlink{mw__srvc__store_8h_a7b4a98b1463fdf34bc7e99e8c388dcf8}{mwStorageCallback}})}
\DoxyCodeLine{00093\ \ \ \ \ \ (\textcolor{keyword}{struct\ }\mbox{\hyperlink{structmwServiceStorage}{mwServiceStorage}}\ *srvc,}
\DoxyCodeLine{00094\ \ \ \ \ \ \ guint32\ result,\ \textcolor{keyword}{struct\ }mwStorageUnit\ *item,}
\DoxyCodeLine{00095\ \ \ \ \ \ \ gpointer\ data);}
\DoxyCodeLine{00096\ }
\DoxyCodeLine{00097\ }
\DoxyCodeLine{00100\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structmwServiceStorage}{mwServiceStorage}}\ *\mbox{\hyperlink{mw__srvc__store_8h_a2ac7a373ae417e0f309defd6e2f83504}{mwServiceStorage\_new}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmwSession}{mwSession}}\ *);}
\DoxyCodeLine{00101\ }
\DoxyCodeLine{00102\ }
\DoxyCodeLine{00104\ \textcolor{keyword}{struct\ }mwStorageUnit\ *\mbox{\hyperlink{mw__srvc__store_8h_afb7c4b023f0577826f24cd7cd86840a1}{mwStorageUnit\_new}}(guint32\ key);}
\DoxyCodeLine{00105\ }
\DoxyCodeLine{00106\ }
\DoxyCodeLine{00108\ \textcolor{keyword}{struct\ }mwStorageUnit\ *\mbox{\hyperlink{mw__srvc__store_8h_a602393c8aa38421f23429d693c1ca014}{mwStorageUnit\_newOpaque}}(guint32\ key,}
\DoxyCodeLine{00109\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct}\ \mbox{\hyperlink{structmwOpaque}{mwOpaque}}\ *data);}
\DoxyCodeLine{00110\ }
\DoxyCodeLine{00111\ }
\DoxyCodeLine{00114\ \textcolor{keyword}{struct\ }mwStorageUnit\ *\mbox{\hyperlink{mw__srvc__store_8h_a9858e13f6ae5d67152b1e9a29e45467e}{mwStorageUnit\_newBoolean}}(guint32\ key,}
\DoxyCodeLine{00115\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ gboolean\ val);}
\DoxyCodeLine{00116\ }
\DoxyCodeLine{00117\ }
\DoxyCodeLine{00118\ \textcolor{keyword}{struct\ }mwStorageUnit\ *\mbox{\hyperlink{mw__srvc__store_8h_a3098fd92d0acb320bd91373c978da112}{mwStorageUnit\_newInteger}}(guint32\ key,}
\DoxyCodeLine{00119\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ guint32\ val);}
\DoxyCodeLine{00120\ }
\DoxyCodeLine{00121\ }
\DoxyCodeLine{00124\ \textcolor{keyword}{struct\ }mwStorageUnit\ *\mbox{\hyperlink{mw__srvc__store_8h_a48e9bf6d63749aa0f2be8fe1e81a5457}{mwStorageUnit\_newString}}(guint32\ key,}
\DoxyCodeLine{00125\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *str);}
\DoxyCodeLine{00126\ }
\DoxyCodeLine{00127\ }
\DoxyCodeLine{00129\ guint32\ \mbox{\hyperlink{mw__srvc__store_8h_a3bb73476fc749ff3a4e8ab0c327a83ba}{mwStorageUnit\_getKey}}(\textcolor{keyword}{struct}\ mwStorageUnit\ *);}
\DoxyCodeLine{00130\ }
\DoxyCodeLine{00131\ }
\DoxyCodeLine{00135\ gboolean\ \mbox{\hyperlink{mw__srvc__store_8h_af622a55188af247d9b15ba52fbc29e79}{mwStorageUnit\_asBoolean}}(\textcolor{keyword}{struct}\ mwStorageUnit\ *,\ gboolean\ val);}
\DoxyCodeLine{00136\ }
\DoxyCodeLine{00137\ }
\DoxyCodeLine{00141\ guint32\ \mbox{\hyperlink{mw__srvc__store_8h_a34f62dceef1c6ea21b0561335c8a6abb}{mwStorageUnit\_asInteger}}(\textcolor{keyword}{struct}\ mwStorageUnit\ *,\ guint32\ val);}
\DoxyCodeLine{00142\ }
\DoxyCodeLine{00143\ }
\DoxyCodeLine{00148\ \textcolor{keywordtype}{char}\ *\mbox{\hyperlink{mw__srvc__store_8h_aded59b1050f8a9cf7d054c396acbf638}{mwStorageUnit\_asString}}(\textcolor{keyword}{struct}\ mwStorageUnit\ *);}
\DoxyCodeLine{00149\ }
\DoxyCodeLine{00150\ }
\DoxyCodeLine{00152\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structmwOpaque}{mwOpaque}}\ *\mbox{\hyperlink{mw__srvc__store_8h_ae4ff3ca0efcb88c6512dfc0e57b3febb}{mwStorageUnit\_asOpaque}}(\textcolor{keyword}{struct}\ mwStorageUnit\ *);}
\DoxyCodeLine{00153\ }
\DoxyCodeLine{00154\ }
\DoxyCodeLine{00156\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{mw__srvc__store_8h_ae9acfeda591578400ae5defcce84010c}{mwStorageUnit\_free}}(\textcolor{keyword}{struct}\ mwStorageUnit\ *);}
\DoxyCodeLine{00157\ }
\DoxyCodeLine{00158\ \ \ \ \ \ \ }
\DoxyCodeLine{00169\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{mw__srvc__store_8h_a8e323cfbdf1f9d3af18d7d27df3b603f}{mwServiceStorage\_load}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmwServiceStorage}{mwServiceStorage}}\ *srvc,}
\DoxyCodeLine{00170\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct}\ mwStorageUnit\ *item,}
\DoxyCodeLine{00171\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{mw__srvc__store_8h_a7b4a98b1463fdf34bc7e99e8c388dcf8}{mwStorageCallback}}\ cb,}
\DoxyCodeLine{00172\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ gpointer\ \mbox{\hyperlink{structmwOpaque_a5b825ce89e8c20605d70ad593f57684e}{data}},\ GDestroyNotify\ data\_free);}
\DoxyCodeLine{00173\ }
\DoxyCodeLine{00174\ }
\DoxyCodeLine{00185\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{mw__srvc__store_8h_a43dafaf7dd5d09e4a1c92ec44bd5a842}{mwServiceStorage\_save}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmwServiceStorage}{mwServiceStorage}}\ *srvc,}
\DoxyCodeLine{00186\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct}\ mwStorageUnit\ *item,}
\DoxyCodeLine{00187\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{mw__srvc__store_8h_a7b4a98b1463fdf34bc7e99e8c388dcf8}{mwStorageCallback}}\ cb,}
\DoxyCodeLine{00188\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ gpointer\ \mbox{\hyperlink{structmwOpaque_a5b825ce89e8c20605d70ad593f57684e}{data}},\ GDestroyNotify\ data\_free);}
\DoxyCodeLine{00189\ }
\DoxyCodeLine{00190\ }
\DoxyCodeLine{00191\ \textcolor{preprocessor}{\#ifdef\ \_\_cplusplus}}
\DoxyCodeLine{00192\ \}}
\DoxyCodeLine{00193\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00194\ }
\DoxyCodeLine{00195\ }
\DoxyCodeLine{00196\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{/*\ \_MW\_SRVC\_STORE\_H\ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
