\doxysection{mw\+\_\+util.\+h}
\hypertarget{mw__util_8h_source}{}\label{mw__util_8h_source}\index{mw\_util.h@{mw\_util.h}}
\mbox{\hyperlink{mw__util_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\_UTIL\_H}}
\DoxyCodeLine{00022\ \textcolor{preprocessor}{\#define\ \_MW\_UTIL\_H}}
\DoxyCodeLine{00023\ }
\DoxyCodeLine{00024\ }
\DoxyCodeLine{00025\ \textcolor{preprocessor}{\#include\ <glib.h>}}
\DoxyCodeLine{00026\ }
\DoxyCodeLine{00027\ \textcolor{preprocessor}{\#define\ map\_guint\_new()\ \(\backslash\)}}
\DoxyCodeLine{00028\ \textcolor{preprocessor}{\ \ g\_hash\_table\_new(g\_direct\_hash,\ g\_direct\_equal)}}
\DoxyCodeLine{00029\ }
\DoxyCodeLine{00030\ }
\DoxyCodeLine{00031\ \textcolor{preprocessor}{\#define\ map\_guint\_new\_full(valfree)\ \(\backslash\)}}
\DoxyCodeLine{00032\ \textcolor{preprocessor}{\ \ g\_hash\_table\_new\_full(g\_direct\_hash,\ g\_direct\_equal,\ NULL,\ (valfree))}}
\DoxyCodeLine{00033\ }
\DoxyCodeLine{00034\ }
\DoxyCodeLine{00035\ \textcolor{preprocessor}{\#define\ map\_guint\_insert(ht,\ key,\ val)\ \(\backslash\)}}
\DoxyCodeLine{00036\ \textcolor{preprocessor}{\ \ g\_hash\_table\_insert((ht),\ GUINT\_TO\_POINTER((guint)(key)),\ (val))}}
\DoxyCodeLine{00037\ }
\DoxyCodeLine{00038\ }
\DoxyCodeLine{00039\ \textcolor{preprocessor}{\#define\ map\_guint\_replace(ht,\ key,\ val)\ \(\backslash\)}}
\DoxyCodeLine{00040\ \textcolor{preprocessor}{\ \ g\_hash\_table\_replace((ht),\ GUINT\_TO\_POINTER((guint)(key)),\ (val))}}
\DoxyCodeLine{00041\ }
\DoxyCodeLine{00042\ }
\DoxyCodeLine{00043\ \textcolor{preprocessor}{\#define\ map\_guint\_lookup(ht,\ key)\ \(\backslash\)}}
\DoxyCodeLine{00044\ \textcolor{preprocessor}{\ \ g\_hash\_table\_lookup((ht),\ GUINT\_TO\_POINTER((guint)(key)))}}
\DoxyCodeLine{00045\ }
\DoxyCodeLine{00046\ }
\DoxyCodeLine{00047\ \textcolor{preprocessor}{\#define\ map\_guint\_remove(ht,\ key)\ \(\backslash\)}}
\DoxyCodeLine{00048\ \textcolor{preprocessor}{\ \ g\_hash\_table\_remove((ht),\ GUINT\_TO\_POINTER((guint)(key)))}}
\DoxyCodeLine{00049\ }
\DoxyCodeLine{00050\ }
\DoxyCodeLine{00051\ \textcolor{preprocessor}{\#define\ map\_guint\_steal(ht,\ key)\ \(\backslash\)}}
\DoxyCodeLine{00052\ \textcolor{preprocessor}{\ \ g\_hash\_table\_steal((ht),\ GUINT\_TO\_POINTER((guint)(key)))}}
\DoxyCodeLine{00053\ }
\DoxyCodeLine{00054\ }
\DoxyCodeLine{00055\ GList\ *\mbox{\hyperlink{mw__util_8h_a8be2d1e33fd2a9cca46373058bb3629c}{map\_collect\_keys}}(GHashTable\ *ht);}
\DoxyCodeLine{00056\ }
\DoxyCodeLine{00057\ }
\DoxyCodeLine{00058\ GList\ *\mbox{\hyperlink{mw__util_8h_a76ad54bd082a1f28a6e62104b6f3fffc}{map\_collect\_values}}(GHashTable\ *ht);}
\DoxyCodeLine{00059\ }
\DoxyCodeLine{00060\ }
\DoxyCodeLine{00061\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structmw__datum}{mw\_datum}}\ \{}
\DoxyCodeLine{00062\ \ \ gpointer\ \mbox{\hyperlink{structmw__datum_a1cbbf59482fae53bfc93fc02aff11bf8}{data}};}
\DoxyCodeLine{00063\ \ \ GDestroyNotify\ \mbox{\hyperlink{structmw__datum_ac257385ce6a4bc416a86af7014f0438b}{clear}};}
\DoxyCodeLine{00064\ \};}
\DoxyCodeLine{00065\ }
\DoxyCodeLine{00066\ }
\DoxyCodeLine{00067\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structmw__datum}{mw\_datum}}\ *\mbox{\hyperlink{mw__util_8h_a31837a574027185762e5762c8e1ca20c}{mw\_datum\_new}}(gpointer\ \mbox{\hyperlink{structmw__datum_a1cbbf59482fae53bfc93fc02aff11bf8}{data}},\ GDestroyNotify\ \mbox{\hyperlink{structmw__datum_ac257385ce6a4bc416a86af7014f0438b}{clear}});}
\DoxyCodeLine{00068\ }
\DoxyCodeLine{00069\ }
\DoxyCodeLine{00070\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{mw__util_8h_aa24529c43453132f1a5ae84d0f4b3de9}{mw\_datum\_set}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmw__datum}{mw\_datum}}\ *d,\ gpointer\ \mbox{\hyperlink{structmw__datum_a1cbbf59482fae53bfc93fc02aff11bf8}{data}},\ GDestroyNotify\ \mbox{\hyperlink{structmw__datum_ac257385ce6a4bc416a86af7014f0438b}{clear}});}
\DoxyCodeLine{00071\ }
\DoxyCodeLine{00072\ }
\DoxyCodeLine{00073\ gpointer\ \mbox{\hyperlink{mw__util_8h_a31ef720b61cfdfa20292b2c647dbf6fc}{mw\_datum\_get}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmw__datum}{mw\_datum}}\ *d);}
\DoxyCodeLine{00074\ }
\DoxyCodeLine{00075\ }
\DoxyCodeLine{00076\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{mw__util_8h_a139f601ce96836c80f968a8514632154}{mw\_datum\_clear}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmw__datum}{mw\_datum}}\ *d);}
\DoxyCodeLine{00077\ }
\DoxyCodeLine{00078\ }
\DoxyCodeLine{00079\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{mw__util_8h_a667d5be333c3ebf915e9d09553f62a07}{mw\_datum\_free}}(\textcolor{keyword}{struct}\ \mbox{\hyperlink{structmw__datum}{mw\_datum}}\ *d);}
\DoxyCodeLine{00080\ }
\DoxyCodeLine{00081\ }
\DoxyCodeLine{00082\ \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
