\hypertarget{group__Eldbus__Connection}{}\doxysection{Connection}
\label{group__Eldbus__Connection}\index{Connection@{Connection}}
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__Eldbus__Connection_gade3e628de8a66ad92d0791d993d9e0d3}\label{group__Eldbus__Connection_gade3e628de8a66ad92d0791d993d9e0d3}} 
\#define {\bfseries ELDBUS\+\_\+\+TIMEOUT\+\_\+\+INFINITE}~((int) 0x7fffffff)
\begin{DoxyCompactList}\small\item\em Infinite timeout definition. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__Eldbus__Connection_gaf672d9f7df6047a4bd3520e6afb023d6}\label{group__Eldbus__Connection_gaf672d9f7df6047a4bd3520e6afb023d6}} 
typedef void($\ast$ {\bfseries Eldbus\+\_\+\+Connection\+\_\+\+Event\+\_\+\+Cb}) (void $\ast$data, \mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$conn, void $\ast$event\+\_\+info)
\begin{DoxyCompactList}\small\item\em Callback called when we receive an event. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \mbox{\hyperlink{group__Eldbus__Connection_ga96d3b961928850a93a8ab18ba3b2a14b}{Eldbus\+\_\+\+Connection\+\_\+\+Type}} \{ \newline
\mbox{\hyperlink{group__Eldbus__Connection_gga96d3b961928850a93a8ab18ba3b2a14ba3ef6f1bb011dcce46485dcea4029871c}{ELDBUS\+\_\+\+CONNECTION\+\_\+\+TYPE\+\_\+\+UNKNOWN}} = 0
, \newline
{\bfseries ELDBUS\+\_\+\+CONNECTION\+\_\+\+TYPE\+\_\+\+SESSION}
, \newline
{\bfseries ELDBUS\+\_\+\+CONNECTION\+\_\+\+TYPE\+\_\+\+SYSTEM}
, \newline
{\bfseries ELDBUS\+\_\+\+CONNECTION\+\_\+\+TYPE\+\_\+\+STARTER}
, \newline
{\bfseries ELDBUS\+\_\+\+CONNECTION\+\_\+\+TYPE\+\_\+\+ADDRESS}
, \newline
\mbox{\hyperlink{group__Eldbus__Connection_gga96d3b961928850a93a8ab18ba3b2a14baa29913f72c3c5e7b789e64cdb44c2e3f}{ELDBUS\+\_\+\+CONNECTION\+\_\+\+TYPE\+\_\+\+LAST}}
 \}
\begin{DoxyCompactList}\small\item\em Enum of several Eldbus connection types. \end{DoxyCompactList}\item 
enum \mbox{\hyperlink{group__Eldbus__Connection_ga30dc901a63a70ea39c293e1070b7baae}{Eldbus\+\_\+\+Connection\+\_\+\+Event\+\_\+\+Type}} \{ \newline
{\bfseries ELDBUS\+\_\+\+CONNECTION\+\_\+\+EVENT\+\_\+\+DEL}
, \newline
{\bfseries ELDBUS\+\_\+\+CONNECTION\+\_\+\+EVENT\+\_\+\+DISCONNECTED}
, \newline
\mbox{\hyperlink{group__Eldbus__Connection_gga30dc901a63a70ea39c293e1070b7baaea7c976018cfff8e3fe5d1366b76e4f3da}{ELDBUS\+\_\+\+CONNECTION\+\_\+\+EVENT\+\_\+\+LAST}}
 \}
\begin{DoxyCompactList}\small\item\em Enum of several Eldbus connection events. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$ \mbox{\hyperlink{group__Eldbus__Connection_gac73e69791d7b884af458390b9c30925a}{eldbus\+\_\+connection\+\_\+get}} (\mbox{\hyperlink{group__Eldbus__Connection_ga96d3b961928850a93a8ab18ba3b2a14b}{Eldbus\+\_\+\+Connection\+\_\+\+Type}} type)
\begin{DoxyCompactList}\small\item\em Establish a connection to bus and integrate it with the ecore main loop. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$ \mbox{\hyperlink{group__Eldbus__Connection_gaa2cb84feb1e662e1f4df8edb50c5b76d}{eldbus\+\_\+private\+\_\+connection\+\_\+get}} (\mbox{\hyperlink{group__Eldbus__Connection_ga96d3b961928850a93a8ab18ba3b2a14b}{Eldbus\+\_\+\+Connection\+\_\+\+Type}} type)
\begin{DoxyCompactList}\small\item\em Always create and establish a new connection to bus and integrate it with the ecore main loop. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$ \mbox{\hyperlink{group__Eldbus__Connection_gae62e9cc5e55f5458a9f3c2d557eea14e}{eldbus\+\_\+address\+\_\+connection\+\_\+get}} (const char $\ast$address)
\begin{DoxyCompactList}\small\item\em Establish a connection to bus and integrate it with the ecore main loop. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$ \mbox{\hyperlink{group__Eldbus__Connection_gac0c65d74a4eaa0fde3399497a1146492}{eldbus\+\_\+private\+\_\+address\+\_\+connection\+\_\+get}} (const char $\ast$address)
\begin{DoxyCompactList}\small\item\em Always create and establish a new connection to bus and integrate it with the ecore main loop. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$ \mbox{\hyperlink{group__Eldbus__Connection_gae6f039e0b40bcc0c8b92f671023d35e3}{eldbus\+\_\+connection\+\_\+ref}} (\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$conn)
\begin{DoxyCompactList}\small\item\em Increment connection reference count. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Eldbus__Connection_ga1c035aac8b601b416bba11d0d68f80ae}{eldbus\+\_\+connection\+\_\+unref}} (\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$conn)
\begin{DoxyCompactList}\small\item\em Decrement connection reference count. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Eldbus__Connection_ga874b0b096f5d260ba1560120f80ee31e}{eldbus\+\_\+connection\+\_\+free\+\_\+cb\+\_\+add}} (\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$conn, \mbox{\hyperlink{group__Eldbus__Core_ga5877d06a497dd7ba16c343c0beff2629}{Eldbus\+\_\+\+Free\+\_\+\+Cb}} cb, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Add a callback function to be called when connection is freed. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Eldbus__Connection_ga58345e6a16fe319d0e4c2a7dd6698c75}{eldbus\+\_\+connection\+\_\+free\+\_\+cb\+\_\+del}} (\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$conn, \mbox{\hyperlink{group__Eldbus__Core_ga5877d06a497dd7ba16c343c0beff2629}{Eldbus\+\_\+\+Free\+\_\+\+Cb}} cb, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Remove callback registered in \mbox{\hyperlink{group__Eldbus__Connection_ga874b0b096f5d260ba1560120f80ee31e}{eldbus\+\_\+connection\+\_\+free\+\_\+cb\+\_\+add()}}. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Eldbus__Connection_gab6f681544b210e5ab730968722cdd2f9}{eldbus\+\_\+connection\+\_\+data\+\_\+set}} (\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$conn, const char $\ast$key, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Set an attached data pointer to an object with a given string key. \end{DoxyCompactList}\item 
void $\ast$ \mbox{\hyperlink{group__Eldbus__Connection_ga5f2588ec612d7de04ca6660b59a112eb}{eldbus\+\_\+connection\+\_\+data\+\_\+get}} (const \mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$conn, const char $\ast$key)
\begin{DoxyCompactList}\small\item\em Get data stored in connection. \end{DoxyCompactList}\item 
void $\ast$ \mbox{\hyperlink{group__Eldbus__Connection_ga78f82b4bb1501dc9b4c935f8fd4c2827}{eldbus\+\_\+connection\+\_\+data\+\_\+del}} (\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$conn, const char $\ast$key)
\begin{DoxyCompactList}\small\item\em Del data stored in connection. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Eldbus__Connection_ga1ddabae0241a4eb37ac6281ae831b19e}{eldbus\+\_\+connection\+\_\+event\+\_\+callback\+\_\+add}} (\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$conn, \mbox{\hyperlink{group__Eldbus__Connection_ga30dc901a63a70ea39c293e1070b7baae}{Eldbus\+\_\+\+Connection\+\_\+\+Event\+\_\+\+Type}} type, \mbox{\hyperlink{group__Eldbus__Connection_gaf672d9f7df6047a4bd3520e6afb023d6}{Eldbus\+\_\+\+Connection\+\_\+\+Event\+\_\+\+Cb}} cb, const void $\ast$cb\+\_\+data)
\begin{DoxyCompactList}\small\item\em Add a callback function to be called when an event occurs of the type passed. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Eldbus__Connection_ga118e1c20600b6bdbc9d6471a2089b267}{eldbus\+\_\+connection\+\_\+event\+\_\+callback\+\_\+del}} (\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$conn, \mbox{\hyperlink{group__Eldbus__Connection_ga30dc901a63a70ea39c293e1070b7baae}{Eldbus\+\_\+\+Connection\+\_\+\+Event\+\_\+\+Type}} type, \mbox{\hyperlink{group__Eldbus__Connection_gaf672d9f7df6047a4bd3520e6afb023d6}{Eldbus\+\_\+\+Connection\+\_\+\+Event\+\_\+\+Cb}} cb, const void $\ast$cb\+\_\+data)
\begin{DoxyCompactList}\small\item\em Remove callback registered in \mbox{\hyperlink{group__Eldbus__Connection_ga1ddabae0241a4eb37ac6281ae831b19e}{eldbus\+\_\+connection\+\_\+event\+\_\+callback\+\_\+add()}}. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eldbus__Core_ga7a5d4dc070bd925034de6e52c4260be7}{Eldbus\+\_\+\+Pending}} $\ast$ \mbox{\hyperlink{group__Eldbus__Connection_ga5bd8fa2482097728d0316f52f4cbac43}{eldbus\+\_\+connection\+\_\+send}} (\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$conn, \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\+\_\+\+Message}} $\ast$msg, \mbox{\hyperlink{group__Eldbus__Core_gaa340fffa7a61fab2d8f2a595b464abbc}{Eldbus\+\_\+\+Message\+\_\+\+Cb}} cb, const void $\ast$cb\+\_\+data, double timeout)
\begin{DoxyCompactList}\small\item\em Send a message. \end{DoxyCompactList}\item 
const char $\ast$ \mbox{\hyperlink{group__Eldbus__Connection_ga3d0c8a8fd32556f912f41ae29c4d5fa4}{eldbus\+\_\+connection\+\_\+unique\+\_\+name\+\_\+get}} (\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$conn)
\begin{DoxyCompactList}\small\item\em Gets unique name assigned by the message bus. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}


\doxysubsection{Enumeration Type Documentation}
\mbox{\Hypertarget{group__Eldbus__Connection_ga96d3b961928850a93a8ab18ba3b2a14b}\label{group__Eldbus__Connection_ga96d3b961928850a93a8ab18ba3b2a14b}} 
\index{Connection@{Connection}!Eldbus\_Connection\_Type@{Eldbus\_Connection\_Type}}
\index{Eldbus\_Connection\_Type@{Eldbus\_Connection\_Type}!Connection@{Connection}}
\doxysubsubsection{\texorpdfstring{Eldbus\_Connection\_Type}{Eldbus\_Connection\_Type}}
{\footnotesize\ttfamily enum \mbox{\hyperlink{group__Eldbus__Connection_ga96d3b961928850a93a8ab18ba3b2a14b}{Eldbus\+\_\+\+Connection\+\_\+\+Type}}}



Enum of several Eldbus connection types. 

\begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{ELDBUS\_CONNECTION\_TYPE\_UNKNOWN@{ELDBUS\_CONNECTION\_TYPE\_UNKNOWN}!Connection@{Connection}}\index{Connection@{Connection}!ELDBUS\_CONNECTION\_TYPE\_UNKNOWN@{ELDBUS\_CONNECTION\_TYPE\_UNKNOWN}}}\mbox{\Hypertarget{group__Eldbus__Connection_gga96d3b961928850a93a8ab18ba3b2a14ba3ef6f1bb011dcce46485dcea4029871c}\label{group__Eldbus__Connection_gga96d3b961928850a93a8ab18ba3b2a14ba3ef6f1bb011dcce46485dcea4029871c}} 
ELDBUS\+\_\+\+CONNECTION\+\_\+\+TYPE\+\_\+\+UNKNOWN&sentinel, not a real type \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{ELDBUS\_CONNECTION\_TYPE\_LAST@{ELDBUS\_CONNECTION\_TYPE\_LAST}!Connection@{Connection}}\index{Connection@{Connection}!ELDBUS\_CONNECTION\_TYPE\_LAST@{ELDBUS\_CONNECTION\_TYPE\_LAST}}}\mbox{\Hypertarget{group__Eldbus__Connection_gga96d3b961928850a93a8ab18ba3b2a14baa29913f72c3c5e7b789e64cdb44c2e3f}\label{group__Eldbus__Connection_gga96d3b961928850a93a8ab18ba3b2a14baa29913f72c3c5e7b789e64cdb44c2e3f}} 
ELDBUS\+\_\+\+CONNECTION\+\_\+\+TYPE\+\_\+\+LAST&sentinel, not a real type \\
\hline

\end{DoxyEnumFields}
\mbox{\Hypertarget{group__Eldbus__Connection_ga30dc901a63a70ea39c293e1070b7baae}\label{group__Eldbus__Connection_ga30dc901a63a70ea39c293e1070b7baae}} 
\index{Connection@{Connection}!Eldbus\_Connection\_Event\_Type@{Eldbus\_Connection\_Event\_Type}}
\index{Eldbus\_Connection\_Event\_Type@{Eldbus\_Connection\_Event\_Type}!Connection@{Connection}}
\doxysubsubsection{\texorpdfstring{Eldbus\_Connection\_Event\_Type}{Eldbus\_Connection\_Event\_Type}}
{\footnotesize\ttfamily enum \mbox{\hyperlink{group__Eldbus__Connection_ga30dc901a63a70ea39c293e1070b7baae}{Eldbus\+\_\+\+Connection\+\_\+\+Event\+\_\+\+Type}}}



Enum of several Eldbus connection events. 

\begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{ELDBUS\_CONNECTION\_EVENT\_LAST@{ELDBUS\_CONNECTION\_EVENT\_LAST}!Connection@{Connection}}\index{Connection@{Connection}!ELDBUS\_CONNECTION\_EVENT\_LAST@{ELDBUS\_CONNECTION\_EVENT\_LAST}}}\mbox{\Hypertarget{group__Eldbus__Connection_gga30dc901a63a70ea39c293e1070b7baaea7c976018cfff8e3fe5d1366b76e4f3da}\label{group__Eldbus__Connection_gga30dc901a63a70ea39c293e1070b7baaea7c976018cfff8e3fe5d1366b76e4f3da}} 
ELDBUS\+\_\+\+CONNECTION\+\_\+\+EVENT\+\_\+\+LAST&sentinel, not a real event type \\
\hline

\end{DoxyEnumFields}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Eldbus__Connection_gac73e69791d7b884af458390b9c30925a}\label{group__Eldbus__Connection_gac73e69791d7b884af458390b9c30925a}} 
\index{Connection@{Connection}!eldbus\_connection\_get@{eldbus\_connection\_get}}
\index{eldbus\_connection\_get@{eldbus\_connection\_get}!Connection@{Connection}}
\doxysubsubsection{\texorpdfstring{eldbus\_connection\_get()}{eldbus\_connection\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$ eldbus\+\_\+connection\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eldbus__Connection_ga96d3b961928850a93a8ab18ba3b2a14b}{Eldbus\+\_\+\+Connection\+\_\+\+Type}}}]{type }\end{DoxyParamCaption})}



Establish a connection to bus and integrate it with the ecore main loop. 

If a connection of given type was already created before, its reference counter is incremented and the connection is returned.


\begin{DoxyParams}{Parameters}
{\em type} & type of connection e.\+g ELDBUS\+\_\+\+CONNECTION\+\_\+\+TYPE\+\_\+\+SESSION, ELDBUS\+\_\+\+CONNECTION\+\_\+\+TYPE\+\_\+\+SYSTEM or ELDBUS\+\_\+\+CONNECTION\+\_\+\+TYPE\+\_\+\+STARTER\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
connection with bus 
\end{DoxyReturn}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{banshee_8c-example}{banshee.\+c}}, \mbox{\hyperlink{client_8c-example}{client.\+c}}, \mbox{\hyperlink{complex-types-client-eina-value_8c-example}{complex-\/types-\/client-\/eina-\/value.\+c}}, \mbox{\hyperlink{complex-types-server_8c-example}{complex-\/types-\/server.\+c}}, \mbox{\hyperlink{complex-types_8c-example}{complex-\/types.\+c}}, \mbox{\hyperlink{connman-list-services_8c-example}{connman-\/list-\/services.\+c}}, \mbox{\hyperlink{ofono-dial_8c-example}{ofono-\/dial.\+c}}, \mbox{\hyperlink{server_8c-example}{server.\+c}}, and \mbox{\hyperlink{simple-signal-emit_8c-example}{simple-\/signal-\/emit.\+c}}.\end{Desc}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, and \mbox{\hyperlink{group__Eldbus__Connection_gae6f039e0b40bcc0c8b92f671023d35e3}{eldbus\+\_\+connection\+\_\+ref()}}.



Referenced by \mbox{\hyperlink{efl__net-connman_8h_a57fa81a94697839b71ac824582a8fd68}{efl\+\_\+net\+\_\+connman\+\_\+init()}}, \mbox{\hyperlink{group__Elm__Color__Class__Group_gaf9e0a25a2cd3e57d3ff211b62d763ba8}{elm\+\_\+color\+\_\+class\+\_\+editor\+\_\+add()}}, and \mbox{\hyperlink{group__Ethumb__Client__Basics_ga6c27fce30e83988810d432a6d1751a2c}{ethumb\+\_\+client\+\_\+connect()}}.

\mbox{\Hypertarget{group__Eldbus__Connection_gaa2cb84feb1e662e1f4df8edb50c5b76d}\label{group__Eldbus__Connection_gaa2cb84feb1e662e1f4df8edb50c5b76d}} 
\index{Connection@{Connection}!eldbus\_private\_connection\_get@{eldbus\_private\_connection\_get}}
\index{eldbus\_private\_connection\_get@{eldbus\_private\_connection\_get}!Connection@{Connection}}
\doxysubsubsection{\texorpdfstring{eldbus\_private\_connection\_get()}{eldbus\_private\_connection\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$ eldbus\+\_\+private\+\_\+connection\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eldbus__Connection_ga96d3b961928850a93a8ab18ba3b2a14b}{Eldbus\+\_\+\+Connection\+\_\+\+Type}}}]{type }\end{DoxyParamCaption})}



Always create and establish a new connection to bus and integrate it with the ecore main loop. 

Differently from \mbox{\hyperlink{group__Eldbus__Connection_gac73e69791d7b884af458390b9c30925a}{eldbus\+\_\+connection\+\_\+get()}}, this function guarantees to create a new connection to the D-\/\+Bus daemon and the connection is not shared by any means.


\begin{DoxyParams}{Parameters}
{\em type} & type of connection e.\+g ELDBUS\+\_\+\+CONNECTION\+\_\+\+TYPE\+\_\+\+SESSION, ELDBUS\+\_\+\+CONNECTION\+\_\+\+TYPE\+\_\+\+SYSTEM or ELDBUS\+\_\+\+CONNECTION\+\_\+\+TYPE\+\_\+\+STARTER\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
connection with bus 
\end{DoxyReturn}


References \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}.

\mbox{\Hypertarget{group__Eldbus__Connection_gae62e9cc5e55f5458a9f3c2d557eea14e}\label{group__Eldbus__Connection_gae62e9cc5e55f5458a9f3c2d557eea14e}} 
\index{Connection@{Connection}!eldbus\_address\_connection\_get@{eldbus\_address\_connection\_get}}
\index{eldbus\_address\_connection\_get@{eldbus\_address\_connection\_get}!Connection@{Connection}}
\doxysubsubsection{\texorpdfstring{eldbus\_address\_connection\_get()}{eldbus\_address\_connection\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$ eldbus\+\_\+address\+\_\+connection\+\_\+get (\begin{DoxyParamCaption}\item[{const char $\ast$}]{address }\end{DoxyParamCaption})}



Establish a connection to bus and integrate it with the ecore main loop. 

If a connection of given type was already created before, its reference counter is incremented and the connection is returned.


\begin{DoxyParams}{Parameters}
{\em address} & the address which will be passed to dbus\+\_\+connection\+\_\+open()\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
connection with bus 
\end{DoxyReturn}


References \mbox{\hyperlink{group__Eina__Hash__Group_ga5e72d0c5397936512407ce8cd66e98d6}{eina\+\_\+hash\+\_\+add()}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga6e9dc02a249e1fcdb64e38e7dc47afb3}{eina\+\_\+hash\+\_\+find()}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga96bbbf394fb34d7e1f57d261de638e69}{eina\+\_\+hash\+\_\+string\+\_\+small\+\_\+new()}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, and \mbox{\hyperlink{group__Eldbus__Connection_gae6f039e0b40bcc0c8b92f671023d35e3}{eldbus\+\_\+connection\+\_\+ref()}}.

\mbox{\Hypertarget{group__Eldbus__Connection_gac0c65d74a4eaa0fde3399497a1146492}\label{group__Eldbus__Connection_gac0c65d74a4eaa0fde3399497a1146492}} 
\index{Connection@{Connection}!eldbus\_private\_address\_connection\_get@{eldbus\_private\_address\_connection\_get}}
\index{eldbus\_private\_address\_connection\_get@{eldbus\_private\_address\_connection\_get}!Connection@{Connection}}
\doxysubsubsection{\texorpdfstring{eldbus\_private\_address\_connection\_get()}{eldbus\_private\_address\_connection\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$ eldbus\+\_\+private\+\_\+address\+\_\+connection\+\_\+get (\begin{DoxyParamCaption}\item[{const char $\ast$}]{address }\end{DoxyParamCaption})}



Always create and establish a new connection to bus and integrate it with the ecore main loop. 

Differently from \mbox{\hyperlink{group__Eldbus__Connection_gac73e69791d7b884af458390b9c30925a}{eldbus\+\_\+connection\+\_\+get()}}, this function guarantees to create a new connection to the D-\/\+Bus daemon and the connection is not shared by any means.


\begin{DoxyParams}{Parameters}
{\em address} & the address which will be passed to dbus\+\_\+connection\+\_\+open\+\_\+private()\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
connection with bus 
\end{DoxyReturn}


References \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}.

\mbox{\Hypertarget{group__Eldbus__Connection_gae6f039e0b40bcc0c8b92f671023d35e3}\label{group__Eldbus__Connection_gae6f039e0b40bcc0c8b92f671023d35e3}} 
\index{Connection@{Connection}!eldbus\_connection\_ref@{eldbus\_connection\_ref}}
\index{eldbus\_connection\_ref@{eldbus\_connection\_ref}!Connection@{Connection}}
\doxysubsubsection{\texorpdfstring{eldbus\_connection\_ref()}{eldbus\_connection\_ref()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$ eldbus\+\_\+connection\+\_\+ref (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$}]{conn }\end{DoxyParamCaption})}



Increment connection reference count. 


\begin{DoxyParams}{Parameters}
{\em conn} & The given Eldbus\+\_\+\+Connection object to reference. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The Eldbus\+\_\+\+Connection object given as parameter. 
\end{DoxyReturn}


Referenced by \mbox{\hyperlink{group__Eldbus__Connection_gae62e9cc5e55f5458a9f3c2d557eea14e}{eldbus\+\_\+address\+\_\+connection\+\_\+get()}}, and \mbox{\hyperlink{group__Eldbus__Connection_gac73e69791d7b884af458390b9c30925a}{eldbus\+\_\+connection\+\_\+get()}}.

\mbox{\Hypertarget{group__Eldbus__Connection_ga1c035aac8b601b416bba11d0d68f80ae}\label{group__Eldbus__Connection_ga1c035aac8b601b416bba11d0d68f80ae}} 
\index{Connection@{Connection}!eldbus\_connection\_unref@{eldbus\_connection\_unref}}
\index{eldbus\_connection\_unref@{eldbus\_connection\_unref}!Connection@{Connection}}
\doxysubsubsection{\texorpdfstring{eldbus\_connection\_unref()}{eldbus\_connection\_unref()}}
{\footnotesize\ttfamily void eldbus\+\_\+connection\+\_\+unref (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$}]{conn }\end{DoxyParamCaption})}



Decrement connection reference count. 

If reference count reaches 0, the connection to bus will be dropped and all its children will be invalidated.


\begin{DoxyParams}{Parameters}
{\em conn} & The given Eldbus\+\_\+\+Connection object to unreference. \\
\hline
\end{DoxyParams}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{banshee_8c-example}{banshee.\+c}}, \mbox{\hyperlink{client_8c-example}{client.\+c}}, \mbox{\hyperlink{complex-types-client-eina-value_8c-example}{complex-\/types-\/client-\/eina-\/value.\+c}}, \mbox{\hyperlink{complex-types-server_8c-example}{complex-\/types-\/server.\+c}}, \mbox{\hyperlink{complex-types_8c-example}{complex-\/types.\+c}}, \mbox{\hyperlink{connman-list-services_8c-example}{connman-\/list-\/services.\+c}}, \mbox{\hyperlink{ofono-dial_8c-example}{ofono-\/dial.\+c}}, \mbox{\hyperlink{server_8c-example}{server.\+c}}, and \mbox{\hyperlink{simple-signal-emit_8c-example}{simple-\/signal-\/emit.\+c}}.\end{Desc}


Referenced by \mbox{\hyperlink{efl__net-connman_8h_a57fa81a94697839b71ac824582a8fd68}{efl\+\_\+net\+\_\+connman\+\_\+init()}}, and \mbox{\hyperlink{efl__net-connman_8h_adeaca5c20ddddcfd0f3936d1bfd41dda}{efl\+\_\+net\+\_\+connman\+\_\+shutdown()}}.

\mbox{\Hypertarget{group__Eldbus__Connection_ga874b0b096f5d260ba1560120f80ee31e}\label{group__Eldbus__Connection_ga874b0b096f5d260ba1560120f80ee31e}} 
\index{Connection@{Connection}!eldbus\_connection\_free\_cb\_add@{eldbus\_connection\_free\_cb\_add}}
\index{eldbus\_connection\_free\_cb\_add@{eldbus\_connection\_free\_cb\_add}!Connection@{Connection}}
\doxysubsubsection{\texorpdfstring{eldbus\_connection\_free\_cb\_add()}{eldbus\_connection\_free\_cb\_add()}}
{\footnotesize\ttfamily void eldbus\+\_\+connection\+\_\+free\+\_\+cb\+\_\+add (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$}]{conn,  }\item[{\mbox{\hyperlink{group__Eldbus__Core_ga5877d06a497dd7ba16c343c0beff2629}{Eldbus\+\_\+\+Free\+\_\+\+Cb}}}]{cb,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Add a callback function to be called when connection is freed. 


\begin{DoxyParams}{Parameters}
{\em conn} & The connection object to add the callback to. \\
\hline
{\em cb} & The callback to be called when the connection is free. \\
\hline
{\em data} & The data passed to the callback. \\
\hline
\end{DoxyParams}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}.



Referenced by \mbox{\hyperlink{group__Eldbus__Object__Mapper_ga88ed939f56f83494e69a8d34212c202a}{eldbus\+\_\+object\+\_\+get()}}, and \mbox{\hyperlink{group__Eldbus__Signal__Handler_gae6f61280a638c20384eb7406dfd57e53}{eldbus\+\_\+signal\+\_\+handler\+\_\+add()}}.

\mbox{\Hypertarget{group__Eldbus__Connection_ga58345e6a16fe319d0e4c2a7dd6698c75}\label{group__Eldbus__Connection_ga58345e6a16fe319d0e4c2a7dd6698c75}} 
\index{Connection@{Connection}!eldbus\_connection\_free\_cb\_del@{eldbus\_connection\_free\_cb\_del}}
\index{eldbus\_connection\_free\_cb\_del@{eldbus\_connection\_free\_cb\_del}!Connection@{Connection}}
\doxysubsubsection{\texorpdfstring{eldbus\_connection\_free\_cb\_del()}{eldbus\_connection\_free\_cb\_del()}}
{\footnotesize\ttfamily void eldbus\+\_\+connection\+\_\+free\+\_\+cb\+\_\+del (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$}]{conn,  }\item[{\mbox{\hyperlink{group__Eldbus__Core_ga5877d06a497dd7ba16c343c0beff2629}{Eldbus\+\_\+\+Free\+\_\+\+Cb}}}]{cb,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Remove callback registered in \mbox{\hyperlink{group__Eldbus__Connection_ga874b0b096f5d260ba1560120f80ee31e}{eldbus\+\_\+connection\+\_\+free\+\_\+cb\+\_\+add()}}. 


\begin{DoxyParams}{Parameters}
{\em conn} & The connection object to delete the callback from. \\
\hline
{\em cb} & The callback that was called when the connection was free. \\
\hline
{\em data} & The data that was passed to the callback. \\
\hline
\end{DoxyParams}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}.



Referenced by \mbox{\hyperlink{group__Eldbus__Service_gad93bc27e856d7747d76873edff991a3a}{eldbus\+\_\+service\+\_\+object\+\_\+unregister()}}.

\mbox{\Hypertarget{group__Eldbus__Connection_gab6f681544b210e5ab730968722cdd2f9}\label{group__Eldbus__Connection_gab6f681544b210e5ab730968722cdd2f9}} 
\index{Connection@{Connection}!eldbus\_connection\_data\_set@{eldbus\_connection\_data\_set}}
\index{eldbus\_connection\_data\_set@{eldbus\_connection\_data\_set}!Connection@{Connection}}
\doxysubsubsection{\texorpdfstring{eldbus\_connection\_data\_set()}{eldbus\_connection\_data\_set()}}
{\footnotesize\ttfamily void eldbus\+\_\+connection\+\_\+data\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$}]{conn,  }\item[{const char $\ast$}]{key,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Set an attached data pointer to an object with a given string key. 


\begin{DoxyParams}{Parameters}
{\em conn} & The connection object to store data to \\
\hline
{\em key} & to identify data \\
\hline
{\em data} & data that will be stored \\
\hline
\end{DoxyParams}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}.

\mbox{\Hypertarget{group__Eldbus__Connection_ga5f2588ec612d7de04ca6660b59a112eb}\label{group__Eldbus__Connection_ga5f2588ec612d7de04ca6660b59a112eb}} 
\index{Connection@{Connection}!eldbus\_connection\_data\_get@{eldbus\_connection\_data\_get}}
\index{eldbus\_connection\_data\_get@{eldbus\_connection\_data\_get}!Connection@{Connection}}
\doxysubsubsection{\texorpdfstring{eldbus\_connection\_data\_get()}{eldbus\_connection\_data\_get()}}
{\footnotesize\ttfamily void $\ast$ eldbus\+\_\+connection\+\_\+data\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$}]{conn,  }\item[{const char $\ast$}]{key }\end{DoxyParamCaption})}



Get data stored in connection. 


\begin{DoxyParams}{Parameters}
{\em conn} & connection where data is stored \\
\hline
{\em key} & key that identifies data\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
pointer to data if found otherwise NULL 
\end{DoxyReturn}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.

\mbox{\Hypertarget{group__Eldbus__Connection_ga78f82b4bb1501dc9b4c935f8fd4c2827}\label{group__Eldbus__Connection_ga78f82b4bb1501dc9b4c935f8fd4c2827}} 
\index{Connection@{Connection}!eldbus\_connection\_data\_del@{eldbus\_connection\_data\_del}}
\index{eldbus\_connection\_data\_del@{eldbus\_connection\_data\_del}!Connection@{Connection}}
\doxysubsubsection{\texorpdfstring{eldbus\_connection\_data\_del()}{eldbus\_connection\_data\_del()}}
{\footnotesize\ttfamily void $\ast$ eldbus\+\_\+connection\+\_\+data\+\_\+del (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$}]{conn,  }\item[{const char $\ast$}]{key }\end{DoxyParamCaption})}



Del data stored in connection. 


\begin{DoxyParams}{Parameters}
{\em conn} & connection where data is stored \\
\hline
{\em key} & that identifies data\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
pointer to data if found otherwise NULL 
\end{DoxyReturn}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.

\mbox{\Hypertarget{group__Eldbus__Connection_ga1ddabae0241a4eb37ac6281ae831b19e}\label{group__Eldbus__Connection_ga1ddabae0241a4eb37ac6281ae831b19e}} 
\index{Connection@{Connection}!eldbus\_connection\_event\_callback\_add@{eldbus\_connection\_event\_callback\_add}}
\index{eldbus\_connection\_event\_callback\_add@{eldbus\_connection\_event\_callback\_add}!Connection@{Connection}}
\doxysubsubsection{\texorpdfstring{eldbus\_connection\_event\_callback\_add()}{eldbus\_connection\_event\_callback\_add()}}
{\footnotesize\ttfamily void eldbus\+\_\+connection\+\_\+event\+\_\+callback\+\_\+add (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$}]{conn,  }\item[{\mbox{\hyperlink{group__Eldbus__Connection_ga30dc901a63a70ea39c293e1070b7baae}{Eldbus\+\_\+\+Connection\+\_\+\+Event\+\_\+\+Type}}}]{type,  }\item[{\mbox{\hyperlink{group__Eldbus__Connection_gaf672d9f7df6047a4bd3520e6afb023d6}{Eldbus\+\_\+\+Connection\+\_\+\+Event\+\_\+\+Cb}}}]{cb,  }\item[{const void $\ast$}]{cb\+\_\+data }\end{DoxyParamCaption})}



Add a callback function to be called when an event occurs of the type passed. 


\begin{DoxyParams}{Parameters}
{\em conn} & The connection object to add the callback to. \\
\hline
{\em type} & The type of event that will trigger the callback. \\
\hline
{\em cb} & The callback to be called when the event is triggered. \\
\hline
{\em cb\+\_\+data} & The data passed to the callback. \\
\hline
\end{DoxyParams}


References \mbox{\hyperlink{group__Eina__Inline__List__Group_gaef650e653f43178ecfee2c661bea7a85}{eina\+\_\+inlist\+\_\+append()}}, \mbox{\hyperlink{group__Eina__Inline__List__Group_ga5bc991428e75557c6195f6b9e38321fb}{EINA\+\_\+\+INLIST\+\_\+\+GET}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga8b89fd35e22beece51443e29fe585935}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN}}, and \mbox{\hyperlink{group__Eldbus__Connection_gga30dc901a63a70ea39c293e1070b7baaea7c976018cfff8e3fe5d1366b76e4f3da}{ELDBUS\+\_\+\+CONNECTION\+\_\+\+EVENT\+\_\+\+LAST}}.

\mbox{\Hypertarget{group__Eldbus__Connection_ga118e1c20600b6bdbc9d6471a2089b267}\label{group__Eldbus__Connection_ga118e1c20600b6bdbc9d6471a2089b267}} 
\index{Connection@{Connection}!eldbus\_connection\_event\_callback\_del@{eldbus\_connection\_event\_callback\_del}}
\index{eldbus\_connection\_event\_callback\_del@{eldbus\_connection\_event\_callback\_del}!Connection@{Connection}}
\doxysubsubsection{\texorpdfstring{eldbus\_connection\_event\_callback\_del()}{eldbus\_connection\_event\_callback\_del()}}
{\footnotesize\ttfamily void eldbus\+\_\+connection\+\_\+event\+\_\+callback\+\_\+del (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$}]{conn,  }\item[{\mbox{\hyperlink{group__Eldbus__Connection_ga30dc901a63a70ea39c293e1070b7baae}{Eldbus\+\_\+\+Connection\+\_\+\+Event\+\_\+\+Type}}}]{type,  }\item[{\mbox{\hyperlink{group__Eldbus__Connection_gaf672d9f7df6047a4bd3520e6afb023d6}{Eldbus\+\_\+\+Connection\+\_\+\+Event\+\_\+\+Cb}}}]{cb,  }\item[{const void $\ast$}]{cb\+\_\+data }\end{DoxyParamCaption})}



Remove callback registered in \mbox{\hyperlink{group__Eldbus__Connection_ga1ddabae0241a4eb37ac6281ae831b19e}{eldbus\+\_\+connection\+\_\+event\+\_\+callback\+\_\+add()}}. 


\begin{DoxyParams}{Parameters}
{\em conn} & The connection object to delete the callback from. \\
\hline
{\em type} & The type of event that was triggered the callback. \\
\hline
{\em cb} & The callback that was called when the event was triggered. \\
\hline
{\em cb\+\_\+data} & The data that was passed to the callback. \\
\hline
\end{DoxyParams}


References \mbox{\hyperlink{group__Eina__Inline__List__Group_ga65e496b9b16d527d23c1d735652b4e62}{EINA\+\_\+\+INLIST\+\_\+\+FOREACH}}, \mbox{\hyperlink{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}{eina\+\_\+list\+\_\+append()}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga8b89fd35e22beece51443e29fe585935}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN}}, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, and \mbox{\hyperlink{group__Eldbus__Connection_gga30dc901a63a70ea39c293e1070b7baaea7c976018cfff8e3fe5d1366b76e4f3da}{ELDBUS\+\_\+\+CONNECTION\+\_\+\+EVENT\+\_\+\+LAST}}.

\mbox{\Hypertarget{group__Eldbus__Connection_ga5bd8fa2482097728d0316f52f4cbac43}\label{group__Eldbus__Connection_ga5bd8fa2482097728d0316f52f4cbac43}} 
\index{Connection@{Connection}!eldbus\_connection\_send@{eldbus\_connection\_send}}
\index{eldbus\_connection\_send@{eldbus\_connection\_send}!Connection@{Connection}}
\doxysubsubsection{\texorpdfstring{eldbus\_connection\_send()}{eldbus\_connection\_send()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eldbus__Core_ga7a5d4dc070bd925034de6e52c4260be7}{Eldbus\+\_\+\+Pending}} $\ast$ eldbus\+\_\+connection\+\_\+send (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$}]{conn,  }\item[{\mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\+\_\+\+Message}} $\ast$}]{msg,  }\item[{\mbox{\hyperlink{group__Eldbus__Core_gaa340fffa7a61fab2d8f2a595b464abbc}{Eldbus\+\_\+\+Message\+\_\+\+Cb}}}]{cb,  }\item[{const void $\ast$}]{cb\+\_\+data,  }\item[{double}]{timeout }\end{DoxyParamCaption})}



Send a message. 


\begin{DoxyParams}{Parameters}
{\em conn} & the connection where the message will be sent \\
\hline
{\em msg} & message that will be sent \\
\hline
{\em cb} & if msg is a method call a callback should be passed to be executed when a response arrives \\
\hline
{\em cb\+\_\+data} & data passed to callback \\
\hline
{\em timeout} & timeout in milliseconds, -\/1 to use default internal value or ELDBUS\+\_\+\+TIMEOUT\+\_\+\+INFINITE for no timeout \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A Eldbus\+\_\+\+Pending struct. 
\end{DoxyReturn}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{server_8c-example}{server.\+c}}.\end{Desc}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, and \mbox{\hyperlink{group__Eldbus__Pending_gaf0f4521b466f5236cff1606ff9002661}{eldbus\+\_\+pending\+\_\+data\+\_\+set()}}.

\mbox{\Hypertarget{group__Eldbus__Connection_ga3d0c8a8fd32556f912f41ae29c4d5fa4}\label{group__Eldbus__Connection_ga3d0c8a8fd32556f912f41ae29c4d5fa4}} 
\index{Connection@{Connection}!eldbus\_connection\_unique\_name\_get@{eldbus\_connection\_unique\_name\_get}}
\index{eldbus\_connection\_unique\_name\_get@{eldbus\_connection\_unique\_name\_get}!Connection@{Connection}}
\doxysubsubsection{\texorpdfstring{eldbus\_connection\_unique\_name\_get()}{eldbus\_connection\_unique\_name\_get()}}
{\footnotesize\ttfamily const char $\ast$ eldbus\+\_\+connection\+\_\+unique\+\_\+name\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\+\_\+\+Connection}} $\ast$}]{conn }\end{DoxyParamCaption})}



Gets unique name assigned by the message bus. 


\begin{DoxyParams}{Parameters}
{\em conn} & connection object to get unique name from.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
pointer to unique name string or NULL or error. Returned value remains valid until connection is free. 
\end{DoxyReturn}


Referenced by \mbox{\hyperlink{efl__net-connman_8h_a57fa81a94697839b71ac824582a8fd68}{efl\+\_\+net\+\_\+connman\+\_\+init()}}.

