\doxysection{mw\+\_\+util.\+h File Reference}
\hypertarget{mw__util_8h}{}\label{mw__util_8h}\index{mw\_util.h@{mw\_util.h}}
{\ttfamily \#include $<$glib.\+h$>$}\newline
\doxysubsubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{structmw__datum}{mw\+\_\+datum}}
\end{DoxyCompactItemize}
\doxysubsubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{mw__util_8h_a8545a77c4c12bcbc50f7890e1c08d738}{map\+\_\+guint\+\_\+insert}}(ht,  key,  val)
\item 
\#define \mbox{\hyperlink{mw__util_8h_a995b03c84cc362d463fa913353fad543}{map\+\_\+guint\+\_\+lookup}}(ht,  key)
\item 
\#define \mbox{\hyperlink{mw__util_8h_a40a0cd9d8d59bc93282e4c66eb72ccf0}{map\+\_\+guint\+\_\+new}}()
\item 
\#define \mbox{\hyperlink{mw__util_8h_a4fc69db46f0a7df8b9e4bc9d9343ccb0}{map\+\_\+guint\+\_\+new\+\_\+full}}(valfree)
\item 
\#define \mbox{\hyperlink{mw__util_8h_a41e4a73c0dd02d9bf90dee94aeb576a1}{map\+\_\+guint\+\_\+remove}}(ht,  key)
\item 
\#define \mbox{\hyperlink{mw__util_8h_a54a8d68788cbf622365fafe637ab4c1b}{map\+\_\+guint\+\_\+replace}}(ht,  key,  val)
\item 
\#define \mbox{\hyperlink{mw__util_8h_ad7d4d5c35609136152c80dafcbeabb5c}{map\+\_\+guint\+\_\+steal}}(ht,  key)
\end{DoxyCompactItemize}
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
GList \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{mw__util_8h_a8be2d1e33fd2a9cca46373058bb3629c}{map\+\_\+collect\+\_\+keys}} (GHash\+Table \texorpdfstring{$\ast$}{*}ht)
\item 
GList \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{mw__util_8h_a76ad54bd082a1f28a6e62104b6f3fffc}{map\+\_\+collect\+\_\+values}} (GHash\+Table \texorpdfstring{$\ast$}{*}ht)
\item 
void \mbox{\hyperlink{mw__util_8h_a139f601ce96836c80f968a8514632154}{mw\+\_\+datum\+\_\+clear}} (struct \mbox{\hyperlink{structmw__datum}{mw\+\_\+datum}} \texorpdfstring{$\ast$}{*}d)
\item 
void \mbox{\hyperlink{mw__util_8h_a667d5be333c3ebf915e9d09553f62a07}{mw\+\_\+datum\+\_\+free}} (struct \mbox{\hyperlink{structmw__datum}{mw\+\_\+datum}} \texorpdfstring{$\ast$}{*}d)
\item 
gpointer \mbox{\hyperlink{mw__util_8h_a31ef720b61cfdfa20292b2c647dbf6fc}{mw\+\_\+datum\+\_\+get}} (struct \mbox{\hyperlink{structmw__datum}{mw\+\_\+datum}} \texorpdfstring{$\ast$}{*}d)
\item 
struct \mbox{\hyperlink{structmw__datum}{mw\+\_\+datum}} \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{mw__util_8h_a31837a574027185762e5762c8e1ca20c}{mw\+\_\+datum\+\_\+new}} (gpointer data, GDestroy\+Notify clear)
\item 
void \mbox{\hyperlink{mw__util_8h_aa24529c43453132f1a5ae84d0f4b3de9}{mw\+\_\+datum\+\_\+set}} (struct \mbox{\hyperlink{structmw__datum}{mw\+\_\+datum}} \texorpdfstring{$\ast$}{*}d, gpointer data, GDestroy\+Notify clear)
\end{DoxyCompactItemize}


\label{doc-define-members}
\Hypertarget{mw__util_8h_doc-define-members}
\doxysubsection{Macro Definition Documentation}
\Hypertarget{mw__util_8h_a8545a77c4c12bcbc50f7890e1c08d738}\index{mw\_util.h@{mw\_util.h}!map\_guint\_insert@{map\_guint\_insert}}
\index{map\_guint\_insert@{map\_guint\_insert}!mw\_util.h@{mw\_util.h}}
\doxysubsubsection{\texorpdfstring{map\_guint\_insert}{map\_guint\_insert}}
{\footnotesize\ttfamily \label{mw__util_8h_a8545a77c4c12bcbc50f7890e1c08d738} 
\#define map\+\_\+guint\+\_\+insert(\begin{DoxyParamCaption}\item[{}]{ht}{, }\item[{}]{key}{, }\item[{}]{val}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ g\_hash\_table\_insert((ht),\ GUINT\_TO\_POINTER((guint)(key)),\ (val))}

\end{DoxyCode}
\Hypertarget{mw__util_8h_a995b03c84cc362d463fa913353fad543}\index{mw\_util.h@{mw\_util.h}!map\_guint\_lookup@{map\_guint\_lookup}}
\index{map\_guint\_lookup@{map\_guint\_lookup}!mw\_util.h@{mw\_util.h}}
\doxysubsubsection{\texorpdfstring{map\_guint\_lookup}{map\_guint\_lookup}}
{\footnotesize\ttfamily \label{mw__util_8h_a995b03c84cc362d463fa913353fad543} 
\#define map\+\_\+guint\+\_\+lookup(\begin{DoxyParamCaption}\item[{}]{ht}{, }\item[{}]{key}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ g\_hash\_table\_lookup((ht),\ GUINT\_TO\_POINTER((guint)(key)))}

\end{DoxyCode}
\Hypertarget{mw__util_8h_a40a0cd9d8d59bc93282e4c66eb72ccf0}\index{mw\_util.h@{mw\_util.h}!map\_guint\_new@{map\_guint\_new}}
\index{map\_guint\_new@{map\_guint\_new}!mw\_util.h@{mw\_util.h}}
\doxysubsubsection{\texorpdfstring{map\_guint\_new}{map\_guint\_new}}
{\footnotesize\ttfamily \label{mw__util_8h_a40a0cd9d8d59bc93282e4c66eb72ccf0} 
\#define map\+\_\+guint\+\_\+new(\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ g\_hash\_table\_new(g\_direct\_hash,\ g\_direct\_equal)}

\end{DoxyCode}
\Hypertarget{mw__util_8h_a4fc69db46f0a7df8b9e4bc9d9343ccb0}\index{mw\_util.h@{mw\_util.h}!map\_guint\_new\_full@{map\_guint\_new\_full}}
\index{map\_guint\_new\_full@{map\_guint\_new\_full}!mw\_util.h@{mw\_util.h}}
\doxysubsubsection{\texorpdfstring{map\_guint\_new\_full}{map\_guint\_new\_full}}
{\footnotesize\ttfamily \label{mw__util_8h_a4fc69db46f0a7df8b9e4bc9d9343ccb0} 
\#define map\+\_\+guint\+\_\+new\+\_\+full(\begin{DoxyParamCaption}\item[{}]{valfree}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ g\_hash\_table\_new\_full(g\_direct\_hash,\ g\_direct\_equal,\ NULL,\ (valfree))}

\end{DoxyCode}
\Hypertarget{mw__util_8h_a41e4a73c0dd02d9bf90dee94aeb576a1}\index{mw\_util.h@{mw\_util.h}!map\_guint\_remove@{map\_guint\_remove}}
\index{map\_guint\_remove@{map\_guint\_remove}!mw\_util.h@{mw\_util.h}}
\doxysubsubsection{\texorpdfstring{map\_guint\_remove}{map\_guint\_remove}}
{\footnotesize\ttfamily \label{mw__util_8h_a41e4a73c0dd02d9bf90dee94aeb576a1} 
\#define map\+\_\+guint\+\_\+remove(\begin{DoxyParamCaption}\item[{}]{ht}{, }\item[{}]{key}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ g\_hash\_table\_remove((ht),\ GUINT\_TO\_POINTER((guint)(key)))}

\end{DoxyCode}
\Hypertarget{mw__util_8h_a54a8d68788cbf622365fafe637ab4c1b}\index{mw\_util.h@{mw\_util.h}!map\_guint\_replace@{map\_guint\_replace}}
\index{map\_guint\_replace@{map\_guint\_replace}!mw\_util.h@{mw\_util.h}}
\doxysubsubsection{\texorpdfstring{map\_guint\_replace}{map\_guint\_replace}}
{\footnotesize\ttfamily \label{mw__util_8h_a54a8d68788cbf622365fafe637ab4c1b} 
\#define map\+\_\+guint\+\_\+replace(\begin{DoxyParamCaption}\item[{}]{ht}{, }\item[{}]{key}{, }\item[{}]{val}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ g\_hash\_table\_replace((ht),\ GUINT\_TO\_POINTER((guint)(key)),\ (val))}

\end{DoxyCode}
\Hypertarget{mw__util_8h_ad7d4d5c35609136152c80dafcbeabb5c}\index{mw\_util.h@{mw\_util.h}!map\_guint\_steal@{map\_guint\_steal}}
\index{map\_guint\_steal@{map\_guint\_steal}!mw\_util.h@{mw\_util.h}}
\doxysubsubsection{\texorpdfstring{map\_guint\_steal}{map\_guint\_steal}}
{\footnotesize\ttfamily \label{mw__util_8h_ad7d4d5c35609136152c80dafcbeabb5c} 
\#define map\+\_\+guint\+\_\+steal(\begin{DoxyParamCaption}\item[{}]{ht}{, }\item[{}]{key}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ g\_hash\_table\_steal((ht),\ GUINT\_TO\_POINTER((guint)(key)))}

\end{DoxyCode}


\label{doc-func-members}
\Hypertarget{mw__util_8h_doc-func-members}
\doxysubsection{Function Documentation}
\Hypertarget{mw__util_8h_a8be2d1e33fd2a9cca46373058bb3629c}\index{mw\_util.h@{mw\_util.h}!map\_collect\_keys@{map\_collect\_keys}}
\index{map\_collect\_keys@{map\_collect\_keys}!mw\_util.h@{mw\_util.h}}
\doxysubsubsection{\texorpdfstring{map\_collect\_keys()}{map\_collect\_keys()}}
{\footnotesize\ttfamily \label{mw__util_8h_a8be2d1e33fd2a9cca46373058bb3629c} 
GList \texorpdfstring{$\ast$}{*} map\+\_\+collect\+\_\+keys (\begin{DoxyParamCaption}\item[{GHash\+Table \texorpdfstring{$\ast$}{*}}]{ht}{}\end{DoxyParamCaption})}

\Hypertarget{mw__util_8h_a76ad54bd082a1f28a6e62104b6f3fffc}\index{mw\_util.h@{mw\_util.h}!map\_collect\_values@{map\_collect\_values}}
\index{map\_collect\_values@{map\_collect\_values}!mw\_util.h@{mw\_util.h}}
\doxysubsubsection{\texorpdfstring{map\_collect\_values()}{map\_collect\_values()}}
{\footnotesize\ttfamily \label{mw__util_8h_a76ad54bd082a1f28a6e62104b6f3fffc} 
GList \texorpdfstring{$\ast$}{*} map\+\_\+collect\+\_\+values (\begin{DoxyParamCaption}\item[{GHash\+Table \texorpdfstring{$\ast$}{*}}]{ht}{}\end{DoxyParamCaption})}

\Hypertarget{mw__util_8h_a139f601ce96836c80f968a8514632154}\index{mw\_util.h@{mw\_util.h}!mw\_datum\_clear@{mw\_datum\_clear}}
\index{mw\_datum\_clear@{mw\_datum\_clear}!mw\_util.h@{mw\_util.h}}
\doxysubsubsection{\texorpdfstring{mw\_datum\_clear()}{mw\_datum\_clear()}}
{\footnotesize\ttfamily \label{mw__util_8h_a139f601ce96836c80f968a8514632154} 
void mw\+\_\+datum\+\_\+clear (\begin{DoxyParamCaption}\item[{struct \mbox{\hyperlink{structmw__datum}{mw\+\_\+datum}} \texorpdfstring{$\ast$}{*}}]{d}{}\end{DoxyParamCaption})}

\Hypertarget{mw__util_8h_a667d5be333c3ebf915e9d09553f62a07}\index{mw\_util.h@{mw\_util.h}!mw\_datum\_free@{mw\_datum\_free}}
\index{mw\_datum\_free@{mw\_datum\_free}!mw\_util.h@{mw\_util.h}}
\doxysubsubsection{\texorpdfstring{mw\_datum\_free()}{mw\_datum\_free()}}
{\footnotesize\ttfamily \label{mw__util_8h_a667d5be333c3ebf915e9d09553f62a07} 
void mw\+\_\+datum\+\_\+free (\begin{DoxyParamCaption}\item[{struct \mbox{\hyperlink{structmw__datum}{mw\+\_\+datum}} \texorpdfstring{$\ast$}{*}}]{d}{}\end{DoxyParamCaption})}

\Hypertarget{mw__util_8h_a31ef720b61cfdfa20292b2c647dbf6fc}\index{mw\_util.h@{mw\_util.h}!mw\_datum\_get@{mw\_datum\_get}}
\index{mw\_datum\_get@{mw\_datum\_get}!mw\_util.h@{mw\_util.h}}
\doxysubsubsection{\texorpdfstring{mw\_datum\_get()}{mw\_datum\_get()}}
{\footnotesize\ttfamily \label{mw__util_8h_a31ef720b61cfdfa20292b2c647dbf6fc} 
gpointer mw\+\_\+datum\+\_\+get (\begin{DoxyParamCaption}\item[{struct \mbox{\hyperlink{structmw__datum}{mw\+\_\+datum}} \texorpdfstring{$\ast$}{*}}]{d}{}\end{DoxyParamCaption})}

\Hypertarget{mw__util_8h_a31837a574027185762e5762c8e1ca20c}\index{mw\_util.h@{mw\_util.h}!mw\_datum\_new@{mw\_datum\_new}}
\index{mw\_datum\_new@{mw\_datum\_new}!mw\_util.h@{mw\_util.h}}
\doxysubsubsection{\texorpdfstring{mw\_datum\_new()}{mw\_datum\_new()}}
{\footnotesize\ttfamily \label{mw__util_8h_a31837a574027185762e5762c8e1ca20c} 
struct \mbox{\hyperlink{structmw__datum}{mw\+\_\+datum}} \texorpdfstring{$\ast$}{*} mw\+\_\+datum\+\_\+new (\begin{DoxyParamCaption}\item[{gpointer}]{data}{, }\item[{GDestroy\+Notify}]{clear}{}\end{DoxyParamCaption})}

\Hypertarget{mw__util_8h_aa24529c43453132f1a5ae84d0f4b3de9}\index{mw\_util.h@{mw\_util.h}!mw\_datum\_set@{mw\_datum\_set}}
\index{mw\_datum\_set@{mw\_datum\_set}!mw\_util.h@{mw\_util.h}}
\doxysubsubsection{\texorpdfstring{mw\_datum\_set()}{mw\_datum\_set()}}
{\footnotesize\ttfamily \label{mw__util_8h_aa24529c43453132f1a5ae84d0f4b3de9} 
void mw\+\_\+datum\+\_\+set (\begin{DoxyParamCaption}\item[{struct \mbox{\hyperlink{structmw__datum}{mw\+\_\+datum}} \texorpdfstring{$\ast$}{*}}]{d}{, }\item[{gpointer}]{data}{, }\item[{GDestroy\+Notify}]{clear}{}\end{DoxyParamCaption})}

