\doxysection{mw\+\_\+srvc\+\_\+dir.\+h}
\hypertarget{mw__srvc__dir_8h_source}{}\label{mw__srvc__dir_8h_source}\index{mw\_srvc\_dir.h@{mw\_srvc\_dir.h}}
\mbox{\hyperlink{mw__srvc__dir_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{/*}}
\DoxyCodeLine{00002\ \textcolor{comment}{\ \ Meanwhile\ -\/\ Unofficial\ Lotus\ Sametime\ Community\ Client\ Library}}
\DoxyCodeLine{00003\ \textcolor{comment}{\ \ Copyright\ (C)\ 2004\ \ Christopher\ (siege)\ O'Brien}}
\DoxyCodeLine{00004\ \textcolor{comment}{\ \ }}
\DoxyCodeLine{00005\ \textcolor{comment}{\ \ This\ library\ is\ free\ software;\ you\ can\ redistribute\ it\ and/or}}
\DoxyCodeLine{00006\ \textcolor{comment}{\ \ modify\ it\ under\ the\ terms\ of\ the\ GNU\ Library\ General\ Public}}
\DoxyCodeLine{00007\ \textcolor{comment}{\ \ License\ as\ published\ by\ the\ Free\ Software\ Foundation;\ either}}
\DoxyCodeLine{00008\ \textcolor{comment}{\ \ version\ 2\ of\ the\ License,\ or\ (at\ your\ option)\ any\ later\ version.}}
\DoxyCodeLine{00009\ \textcolor{comment}{\ \ }}
\DoxyCodeLine{00010\ \textcolor{comment}{\ \ This\ library\ is\ distributed\ in\ the\ hope\ that\ it\ will\ be\ useful,}}
\DoxyCodeLine{00011\ \textcolor{comment}{\ \ but\ WITHOUT\ ANY\ WARRANTY;\ without\ even\ the\ implied\ warranty\ of}}
\DoxyCodeLine{00012\ \textcolor{comment}{\ \ MERCHANTABILITY\ or\ FITNESS\ FOR\ A\ PARTICULAR\ PURPOSE.\ \ See\ the\ GNU}}
\DoxyCodeLine{00013\ \textcolor{comment}{\ \ Library\ General\ Public\ License\ for\ more\ details.}}
\DoxyCodeLine{00014\ \textcolor{comment}{\ \ }}
\DoxyCodeLine{00015\ \textcolor{comment}{\ \ You\ should\ have\ received\ a\ copy\ of\ the\ GNU\ Library\ General\ Public}}
\DoxyCodeLine{00016\ \textcolor{comment}{\ \ License\ along\ with\ this\ library;\ if\ not,\ write\ to\ the\ Free}}
\DoxyCodeLine{00017\ \textcolor{comment}{\ \ Foundation,\ Inc.,\ 59\ Temple\ Place,\ Suite\ 330,\ Boston,\ MA\ \ 02111-\/1307\ \ USA}}
\DoxyCodeLine{00018\ \textcolor{comment}{*/}}
\DoxyCodeLine{00019\ }
\DoxyCodeLine{00020\ \textcolor{preprocessor}{\#ifndef\ \_MW\_SRVC\_DIR\_H}}
\DoxyCodeLine{00021\ \textcolor{preprocessor}{\#define\ \_MW\_SRVC\_DIR\_H}}
\DoxyCodeLine{00022\ }
\DoxyCodeLine{00023\ }
\DoxyCodeLine{00024\ \textcolor{preprocessor}{\#include\ <glib.h>}}
\DoxyCodeLine{00025\ }
\DoxyCodeLine{00026\ \textcolor{preprocessor}{\#ifdef\ \_\_cplusplus}}
\DoxyCodeLine{00027\ \textcolor{keyword}{extern}\ \textcolor{stringliteral}{"{}C"{}}\ \{}
\DoxyCodeLine{00028\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00029\ }
\DoxyCodeLine{00030\ }
\DoxyCodeLine{00031\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structmwSession}{mwSession}};}
\DoxyCodeLine{00032\ }
\DoxyCodeLine{00033\ }
\DoxyCodeLine{00034\ \textcolor{preprocessor}{\#define\ SERVICE\_DIRECTORY\ \ 0x0000001a}}
\DoxyCodeLine{00035\ }
\DoxyCodeLine{00036\ }
\DoxyCodeLine{00040\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structmwServiceDirectory}{mwServiceDirectory}};}
\DoxyCodeLine{00041\ }
\DoxyCodeLine{00042\ }
\DoxyCodeLine{00047\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structmwAddressBook}{mwAddressBook}};}
\DoxyCodeLine{00048\ }
\DoxyCodeLine{00049\ }
\DoxyCodeLine{00053\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structmwDirectory}{mwDirectory}};}
\DoxyCodeLine{00054\ }
\DoxyCodeLine{00055\ }
\DoxyCodeLine{00056\ \textcolor{keyword}{enum}\ \mbox{\hyperlink{mw__srvc__dir_8h_a60044a1a52101f8cc5b9d6a3b7a4d801}{mwDirectoryState}}\ \{}
\DoxyCodeLine{00057\ \ \ \mbox{\hyperlink{mw__srvc__dir_8h_a60044a1a52101f8cc5b9d6a3b7a4d801aa23fa4280674777515fdf7127a9994ec}{mwDirectory\_NEW}},\ \ \ \ \ \ }
\DoxyCodeLine{00058\ \ \ \mbox{\hyperlink{mw__srvc__dir_8h_a60044a1a52101f8cc5b9d6a3b7a4d801ae8e0e99d2620433b2d7caa87e4f8010a}{mwDirectory\_PENDING}},\ \ }
\DoxyCodeLine{00059\ \ \ \mbox{\hyperlink{mw__srvc__dir_8h_a60044a1a52101f8cc5b9d6a3b7a4d801a7dfd76f714ee09bc65c7c83ce3159fe8}{mwDirectory\_OPEN}},\ \ \ \ \ }
\DoxyCodeLine{00060\ \ \ \mbox{\hyperlink{mw__srvc__dir_8h_a60044a1a52101f8cc5b9d6a3b7a4d801a10be11afe4f1c5faaeee216827c556ae}{mwDirectory\_ERROR}},\ \ \ \ }
\DoxyCodeLine{00061\ \ \ \mbox{\hyperlink{mw__srvc__dir_8h_a60044a1a52101f8cc5b9d6a3b7a4d801a49f46e4de9c565c09de4db0a1cb6073f}{mwDirectory\_UNKNOWN}},\ \ }
\DoxyCodeLine{00062\ \};}
\DoxyCodeLine{00063\ }
\DoxyCodeLine{00064\ }
\DoxyCodeLine{00066\ \textcolor{preprocessor}{\#define\ DIR\_SEARCH\_ERROR\ \ 0x00000000}}
\DoxyCodeLine{00067\ }
\DoxyCodeLine{00068\ }
\DoxyCodeLine{00069\ \textcolor{preprocessor}{\#define\ MW\_DIRECTORY\_IS\_STATE(dir,\ state)\ \(\backslash\)}}
\DoxyCodeLine{00070\ \textcolor{preprocessor}{\ \ (mwDirectory\_getState(dir)\ ==\ (state))}}
\DoxyCodeLine{00071\ }
\DoxyCodeLine{00072\ \textcolor{preprocessor}{\#define\ MW\_DIRECTORY\_IS\_NEW(dir)\ \(\backslash\)}}
\DoxyCodeLine{00073\ \textcolor{preprocessor}{\ \ MW\_DIRECTORY\_IS\_STATE((dir),\ mwDirectory\_NEW)}}
\DoxyCodeLine{00074\ }
\DoxyCodeLine{00075\ \textcolor{preprocessor}{\#define\ MW\_DIRECTORY\_IS\_PENDING(dir)\ \(\backslash\)}}
\DoxyCodeLine{00076\ \textcolor{preprocessor}{\ \ MW\_DIRECTORY\_IS\_STATE((dir),\ mwDirectory\_PENDING)}}
\DoxyCodeLine{00077\ }
\DoxyCodeLine{00078\ \textcolor{preprocessor}{\#define\ MW\_DIRECTORY\_IS\_OPEN(dir)\ \(\backslash\)}}
\DoxyCodeLine{00079\ \textcolor{preprocessor}{\ \ MW\_DIRECTORY\_IS\_STATE((dir),\ mwDirectory\_OPEN)}}
\DoxyCodeLine{00080\ }
\DoxyCodeLine{00081\ }
\DoxyCodeLine{00082\ \textcolor{keyword}{enum}\ \mbox{\hyperlink{mw__srvc__dir_8h_a1f72abe2e707f73a2b29ab1dda42c903}{mwDirectoryMemberType}}\ \{}
\DoxyCodeLine{00083\ \ \ \mbox{\hyperlink{mw__srvc__dir_8h_a1f72abe2e707f73a2b29ab1dda42c903a4df8201340e66f52d8f90300bac9da36}{mwDirectoryMember\_USER}}\ \ \ =\ 0x0000,}
\DoxyCodeLine{00084\ \ \ \mbox{\hyperlink{mw__srvc__dir_8h_a1f72abe2e707f73a2b29ab1dda42c903a2250ec76f552aa18e0e7a74f66573f67}{mwDirectoryMember\_GROUP}}\ \ =\ 0x0001,}
\DoxyCodeLine{00085\ \};}
\DoxyCodeLine{00086\ }
\DoxyCodeLine{00087\ }
\DoxyCodeLine{00088\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structmwDirectoryMember}{mwDirectoryMember}}\ \{}
\DoxyCodeLine{00089\ \ \ guint16\ \mbox{\hyperlink{structmwDirectoryMember_ac7d7d1384e2f7afc02decbdcb770f32e}{type}};\ \ \ \ \ \ }
\DoxyCodeLine{00090\ \ \ \textcolor{keywordtype}{char}\ *\mbox{\hyperlink{structmwDirectoryMember_a3b396910e5c88c61d7feb6e09bf63629}{id}};\ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00091\ \ \ \textcolor{keywordtype}{char}\ *\mbox{\hyperlink{structmwDirectoryMember_ac2fef67045a64507f9bb6014a87c44fb}{long\_name}};\ \ \ }
\DoxyCodeLine{00092\ \ \ \textcolor{keywordtype}{char}\ *\mbox{\hyperlink{structmwDirectoryMember_a60f6783ae0db29c09fe8965ab7c4a160}{short\_name}};\ \ }
\DoxyCodeLine{00093\ \ \ guint16\ \mbox{\hyperlink{structmwDirectoryMember_a0c06d8dd090dea979de83d3df9e8fab9}{foo}};\ \ \ \ \ \ \ }
\DoxyCodeLine{00094\ \};}
\DoxyCodeLine{00095\ }
\DoxyCodeLine{00096\ }
\DoxyCodeLine{00098\ \textcolor{keyword}{typedef}\ void\ (*\mbox{\hyperlink{mw__srvc__dir_8h_a15e6faa89198a79ccbd1f780ede3a4a5}{mwSearchHandler}})}
\DoxyCodeLine{00099\ \ \ \ \ \ (\textcolor{keyword}{struct\ }\mbox{\hyperlink{structmwDirectory}{mwDirectory}}\ *dir,}
\DoxyCodeLine{00100\ \ \ \ \ \ \ guint32\ code,\ guint32\ offset,\ GList\ *members);}
\DoxyCodeLine{00101\ }
\DoxyCodeLine{00102\ }
\DoxyCodeLine{00104\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structmwDirectoryHandler}{mwDirectoryHandler}}\ \{}
\DoxyCodeLine{00105\ }
\DoxyCodeLine{00109\ \ \ void\ (*\mbox{\hyperlink{structmwDirectoryHandler_a1f05ff7b07ce23050eab3d76eb67811b}{on\_book\_list}})(\textcolor{keyword}{struct\ }\mbox{\hyperlink{structmwServiceDirectory}{mwServiceDirectory}}\ *srvc,\ GList\ *books);}
\DoxyCodeLine{00110\ }
\DoxyCodeLine{00112\ \ \ void\ (*\mbox{\hyperlink{structmwDirectoryHandler_ad9eb2c32f056c010fa87ab713ac057f5}{dir\_opened}})(\textcolor{keyword}{struct\ }\mbox{\hyperlink{structmwDirectory}{mwDirectory}}\ *dir);}
\DoxyCodeLine{00113\ }
\DoxyCodeLine{00115\ \ \ void\ (*\mbox{\hyperlink{structmwDirectoryHandler_ad80db19c2c7db4c08188b4a9b027f357}{dir\_closed}})(\textcolor{keyword}{struct\ }\mbox{\hyperlink{structmwDirectory}{mwDirectory}}\ *dir,\ guint32\ reason);}
\DoxyCodeLine{00116\ }
\DoxyCodeLine{00118\ \ \ void\ (*\mbox{\hyperlink{structmwDirectoryHandler_a581aa133c157955ab8956dc0de76a415}{clear}})(\textcolor{keyword}{struct\ }\mbox{\hyperlink{structmwServiceDirectory}{mwServiceDirectory}}\ *srvc);}
\DoxyCodeLine{00119\ \};}
\DoxyCodeLine{00120\ }
\DoxyCodeLine{00121\ }
\DoxyCodeLine{00123\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structmwServiceDirectory}{mwServiceDirectory}}\ *}
\DoxyCodeLine{00124\ \mbox{\hyperlink{mw__srvc__dir_8h_aef6732ac9b50a31a46f7ffa404942db1}{mwServiceDirectory\_new}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmwSession}{mwSession}}\ *session,}
\DoxyCodeLine{00125\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct}\ \mbox{\hyperlink{structmwDirectoryHandler}{mwDirectoryHandler}}\ *handler);}
\DoxyCodeLine{00126\ }
\DoxyCodeLine{00127\ }
\DoxyCodeLine{00129\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structmwDirectoryHandler}{mwDirectoryHandler}}\ *}
\DoxyCodeLine{00130\ \mbox{\hyperlink{mw__srvc__dir_8h_a547ba22df201c1f054cc41e08b745e34}{mwServiceDirectory\_getHandler}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmwServiceDirectory}{mwServiceDirectory}}\ *srvc);}
\DoxyCodeLine{00131\ }
\DoxyCodeLine{00132\ }
\DoxyCodeLine{00134\ GList\ *\mbox{\hyperlink{mw__srvc__dir_8h_a1948aa7878ae6081b0ebb28b9ffac224}{mwServiceDirectory\_getAddressBooks}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmwServiceDirectory}{mwServiceDirectory}}\ *srvc);}
\DoxyCodeLine{00135\ }
\DoxyCodeLine{00136\ }
\DoxyCodeLine{00139\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{mw__srvc__dir_8h_a29a526b9ae82e319c04ac7fb9890bc36}{mwServiceDirectory\_refreshAddressBooks}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmwServiceDirectory}{mwServiceDirectory}}\ *srvc);}
\DoxyCodeLine{00140\ }
\DoxyCodeLine{00141\ }
\DoxyCodeLine{00143\ GList\ *\mbox{\hyperlink{mw__srvc__dir_8h_aa479ad009f0c61057939e61596bca9e0}{mwServiceDirectory\_getDirectories}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmwServiceDirectory}{mwServiceDirectory}}\ *srvc);}
\DoxyCodeLine{00144\ }
\DoxyCodeLine{00145\ }
\DoxyCodeLine{00148\ GList\ *\mbox{\hyperlink{mw__srvc__dir_8h_ab4aebeacd02f3d9778ecf82b88f78787}{mwAddressBook\_getDirectories}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmwAddressBook}{mwAddressBook}}\ *book);}
\DoxyCodeLine{00149\ }
\DoxyCodeLine{00150\ }
\DoxyCodeLine{00152\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *\mbox{\hyperlink{mw__srvc__dir_8h_a574542e79cef318e8cfd975b5fe8538e}{mwAddressBook\_getName}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmwAddressBook}{mwAddressBook}}\ *book);}
\DoxyCodeLine{00153\ }
\DoxyCodeLine{00154\ }
\DoxyCodeLine{00156\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structmwDirectory}{mwDirectory}}\ *\mbox{\hyperlink{mw__srvc__dir_8h_ad2453335e6a206fda82950ddfcc7697e}{mwDirectory\_new}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmwAddressBook}{mwAddressBook}}\ *book);}
\DoxyCodeLine{00157\ }
\DoxyCodeLine{00158\ }
\DoxyCodeLine{00159\ \textcolor{keyword}{enum}\ \mbox{\hyperlink{mw__srvc__dir_8h_a60044a1a52101f8cc5b9d6a3b7a4d801}{mwDirectoryState}}\ \mbox{\hyperlink{mw__srvc__dir_8h_aac64837707b8912f6663943323fc2b91}{mwDirectory\_getState}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmwDirectory}{mwDirectory}}\ *dir);}
\DoxyCodeLine{00160\ }
\DoxyCodeLine{00161\ }
\DoxyCodeLine{00164\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{mw__srvc__dir_8h_ac1f534a4ae485697d28607fb413f8adc}{mwDirectory\_setClientData}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmwDirectory}{mwDirectory}}\ *dir,}
\DoxyCodeLine{00165\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ gpointer\ data,\ GDestroyNotify\ clear);}
\DoxyCodeLine{00166\ }
\DoxyCodeLine{00167\ }
\DoxyCodeLine{00169\ gpointer\ \mbox{\hyperlink{mw__srvc__dir_8h_a635923e640e1679a7e8ad72da82bd124}{mwDirectory\_getClientData}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmwDirectory}{mwDirectory}}\ *dir);}
\DoxyCodeLine{00170\ }
\DoxyCodeLine{00171\ }
\DoxyCodeLine{00173\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{mw__srvc__dir_8h_a2bdd0844643324c5aeaedff5762a9a24}{mwDirectory\_removeClientData}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmwDirectory}{mwDirectory}}\ *dir);}
\DoxyCodeLine{00174\ }
\DoxyCodeLine{00175\ }
\DoxyCodeLine{00177\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structmwServiceDirectory}{mwServiceDirectory}}\ *\mbox{\hyperlink{mw__srvc__dir_8h_a52bf39ce93e2aeb4b904db7df485676e}{mwDirectory\_getService}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmwDirectory}{mwDirectory}}\ *dir);}
\DoxyCodeLine{00178\ }
\DoxyCodeLine{00179\ }
\DoxyCodeLine{00181\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structmwAddressBook}{mwAddressBook}}\ *\mbox{\hyperlink{mw__srvc__dir_8h_acc590c33c9c4f3b2bb376419c00500d6}{mwDirectory\_getAddressBook}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmwDirectory}{mwDirectory}}\ *dir);}
\DoxyCodeLine{00182\ }
\DoxyCodeLine{00183\ }
\DoxyCodeLine{00185\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{mw__srvc__dir_8h_a8b4c2367f50ad288b7a6902d7ea1d3d9}{mwDirectory\_open}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmwDirectory}{mwDirectory}}\ *dir,\ \mbox{\hyperlink{mw__srvc__dir_8h_a15e6faa89198a79ccbd1f780ede3a4a5}{mwSearchHandler}}\ cb);}
\DoxyCodeLine{00186\ }
\DoxyCodeLine{00187\ }
\DoxyCodeLine{00189\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{mw__srvc__dir_8h_ad48d6fefb1b5bc3b394f0cd1f705a355}{mwDirectory\_next}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmwDirectory}{mwDirectory}}\ *dir);}
\DoxyCodeLine{00190\ }
\DoxyCodeLine{00191\ }
\DoxyCodeLine{00193\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{mw__srvc__dir_8h_af875cf16eb3af5c5ddcf2663f5cb4961}{mwDirectory\_previous}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmwDirectory}{mwDirectory}}\ *dir);}
\DoxyCodeLine{00194\ }
\DoxyCodeLine{00195\ }
\DoxyCodeLine{00197\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{mw__srvc__dir_8h_a9dbd426e14906b932c49fc8bf73b05b3}{mwDirectory\_search}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmwDirectory}{mwDirectory}}\ *dir,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *query);}
\DoxyCodeLine{00198\ }
\DoxyCodeLine{00199\ }
\DoxyCodeLine{00202\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{mw__srvc__dir_8h_aee4a5d99e7505d038ce21f5014c8956e}{mwDirectory\_destroy}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmwDirectory}{mwDirectory}}\ *dir);}
\DoxyCodeLine{00203\ }
\DoxyCodeLine{00204\ }
\DoxyCodeLine{00205\ \textcolor{preprocessor}{\#ifdef\ \_\_cplusplus}}
\DoxyCodeLine{00206\ \}}
\DoxyCodeLine{00207\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00208\ }
\DoxyCodeLine{00209\ }
\DoxyCodeLine{00210\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{/*\ \_MW\_SRVC\_DIR\_H\ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
