\hypertarget{complex-types-server_8c-example}{}\doxysection{complex-\/types-\/server.\+c}
Server to test complex types (arrays, structs, dicts).

Server to test complex types (arrays, structs, dicts).


\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{\textcolor{comment}{//Compile\ with:}}
\DoxyCodeLine{\textcolor{comment}{//\ gcc\ -\/o\ complex-\/types-\/server\ complex-\/types-\/server.c\ `pkg-\/config\ -\/-\/cflags\ -\/-\/libs\ eldbus\ ecore`}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{preprocessor}{\#include\ "{}Eldbus.h"{}}}
\DoxyCodeLine{\textcolor{preprocessor}{\#include\ <Ecore.h>}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{preprocessor}{\#define\ BUS\ "{}com.profusion"{}}}
\DoxyCodeLine{\textcolor{preprocessor}{\#define\ PATH\ "{}/com/profusion/Test"{}}}
\DoxyCodeLine{\textcolor{preprocessor}{\#define\ IFACE\ "{}com.profusion.Test"{}}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keywordtype}{char}\ *resp2;}
\DoxyCodeLine{\textcolor{comment}{/*\ dummy,\ incremented\ each\ time\ DBus.Properties.Get()\ is\ called\ */}}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keywordtype}{int}\ int32\ =\ 35;}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{group__Ecore__Timer__Group_gaf96ffb609956658ec038e54bd39f46f0}{Ecore\_Timer}}\ *timer;}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *}
\DoxyCodeLine{\_receive\_array(\textcolor{keyword}{const}\ Eldbus\_Service\_Interface\ *iface\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \textcolor{keyword}{const}\ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *msg)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *reply\ =\ \mbox{\hyperlink{group__Eldbus__Message_ga6cc5bf4cbd950c9e87950bf831a86fa4}{eldbus\_message\_method\_return\_new}}(msg);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Core_ga08a70c6651064414e56d75fba2232925}{Eldbus\_Message\_Iter}}\ *array;}
\DoxyCodeLine{\ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *txt;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ printf(\textcolor{stringliteral}{"{}-\/\ receiveArray\(\backslash\)n"{}});}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}\ (!\mbox{\hyperlink{group__Eldbus__Message_ga7aec6beec8e8a73982c7f43bd1322df8}{eldbus\_message\_arguments\_get}}(msg,\ \textcolor{stringliteral}{"{}as"{}},\ \&array))}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ printf(\textcolor{stringliteral}{"{}Error\ on\ eldbus\_message\_arguments\_get()\(\backslash\)n"{}});}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ reply;}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{while}\ (\mbox{\hyperlink{group__Eldbus__Message__Iter_ga45c7d707ee830ae5be39c17df05af615}{eldbus\_message\_iter\_get\_and\_next}}(array,\ \textcolor{charliteral}{'s'},\ \&txt))}
\DoxyCodeLine{\ \ \ \ \ printf(\textcolor{stringliteral}{"{}\%s\(\backslash\)n"{}},\ txt);}
\DoxyCodeLine{\ \ \ printf(\textcolor{stringliteral}{"{}\}\(\backslash\)n\(\backslash\)n"{}});}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ reply;}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *}
\DoxyCodeLine{\_receive\_array\_of\_string\_int\_with\_size(\textcolor{keyword}{const}\ Eldbus\_Service\_Interface\ *iface\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \textcolor{keyword}{const}\ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *msg)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *reply\ =\ \mbox{\hyperlink{group__Eldbus__Message_ga6cc5bf4cbd950c9e87950bf831a86fa4}{eldbus\_message\_method\_return\_new}}(msg);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Core_ga08a70c6651064414e56d75fba2232925}{Eldbus\_Message\_Iter}}\ *array,\ *struct\_si;}
\DoxyCodeLine{\ \ \ \textcolor{keywordtype}{int}\ size,\ i\ =\ 0;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ printf(\textcolor{stringliteral}{"{}-\/\ receiveArrayOfStringIntWithSize\(\backslash\)n\{\(\backslash\)n"{}});}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}\ (!\mbox{\hyperlink{group__Eldbus__Message_ga7aec6beec8e8a73982c7f43bd1322df8}{eldbus\_message\_arguments\_get}}(msg,\ \textcolor{stringliteral}{"{}ia(si)"{}},\ \&size,\ \&array))}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ printf(\textcolor{stringliteral}{"{}Error\ on\ eldbus\_message\_arguments\_get()\(\backslash\)n"{}});}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ reply;}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{while}\ (\mbox{\hyperlink{group__Eldbus__Message__Iter_ga45c7d707ee830ae5be39c17df05af615}{eldbus\_message\_iter\_get\_and\_next}}(array,\ \textcolor{charliteral}{'r'},\ \&struct\_si))}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *txt;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordtype}{int}\ num;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{if}\ (!\mbox{\hyperlink{group__Eldbus__Message__Iter_gae44918ce0b571a30546219d1d5040da0}{eldbus\_message\_iter\_arguments\_get}}(struct\_si,\ \textcolor{stringliteral}{"{}si"{}},\ \&txt,\ \&num))}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ printf(\textcolor{stringliteral}{"{}Error\ on\ eldbus\_message\_arguments\_get()\(\backslash\)n"{}});}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ reply;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ \ \ \ \ \ printf(\textcolor{stringliteral}{"{}\%s\ |\ \%d\(\backslash\)n"{}},\ txt,\ num);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ i++;}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ printf(\textcolor{stringliteral}{"{}size\ in\ msg\ \%d\ |\ size\ read\ \%d\(\backslash\)n"{}},\ size,\ i);}
\DoxyCodeLine{\ \ \ printf(\textcolor{stringliteral}{"{}\}\(\backslash\)n\(\backslash\)n"{}});}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ reply;}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *}
\DoxyCodeLine{\_receive\_variant(\textcolor{keyword}{const}\ Eldbus\_Service\_Interface\ *iface\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \textcolor{keyword}{const}\ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *msg)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *reply\ =\ \mbox{\hyperlink{group__Eldbus__Message_ga6cc5bf4cbd950c9e87950bf831a86fa4}{eldbus\_message\_method\_return\_new}}(msg);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Core_ga08a70c6651064414e56d75fba2232925}{Eldbus\_Message\_Iter}}\ *var,\ *array,\ *main\_iter;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ main\_iter\ =\ \mbox{\hyperlink{group__Eldbus__Message__Iter_ga847256246b5c192f076d204c55e7ac11}{eldbus\_message\_iter\_get}}(reply);}
\DoxyCodeLine{\ \ \ var\ =\ \mbox{\hyperlink{group__Eldbus__Message__Iter_ga693607426e8bc5fe31be856c137a4a61}{eldbus\_message\_iter\_container\_new}}(main\_iter,\ \textcolor{charliteral}{'v'},\ \textcolor{stringliteral}{"{}as"{}});}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Message__Iter_gae00cddea6435838b7189bcf5ca816332}{eldbus\_message\_iter\_arguments\_append}}(var,\ \textcolor{stringliteral}{"{}as"{}},\ \&array);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Message__Iter_gae00cddea6435838b7189bcf5ca816332}{eldbus\_message\_iter\_arguments\_append}}(array,\ \textcolor{stringliteral}{"{}s"{}},\ \textcolor{stringliteral}{"{}item1"{}});}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Message__Iter_gae00cddea6435838b7189bcf5ca816332}{eldbus\_message\_iter\_arguments\_append}}(array,\ \textcolor{stringliteral}{"{}s"{}},\ \textcolor{stringliteral}{"{}item2"{}});}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Message__Iter_gae00cddea6435838b7189bcf5ca816332}{eldbus\_message\_iter\_arguments\_append}}(array,\ \textcolor{stringliteral}{"{}s"{}},\ \textcolor{stringliteral}{"{}item3"{}});}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Message__Iter_ga01840f4c9fb71cbf1c8081cf4e84189c}{eldbus\_message\_iter\_container\_close}}(var,\ array);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Message__Iter_ga01840f4c9fb71cbf1c8081cf4e84189c}{eldbus\_message\_iter\_container\_close}}(main\_iter,\ var);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ reply;}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *}
\DoxyCodeLine{\_send\_variant(\textcolor{keyword}{const}\ Eldbus\_Service\_Interface\ *iface\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \textcolor{keyword}{const}\ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *msg)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *reply\ =\ \mbox{\hyperlink{group__Eldbus__Message_ga6cc5bf4cbd950c9e87950bf831a86fa4}{eldbus\_message\_method\_return\_new}}(msg);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Core_ga08a70c6651064414e56d75fba2232925}{Eldbus\_Message\_Iter}}\ *variant;}
\DoxyCodeLine{\ \ \ \textcolor{keywordtype}{char}\ *type;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ printf(\textcolor{stringliteral}{"{}-\/\ sendVariantData\(\backslash\)n\{\(\backslash\)n"{}});}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}\ (!\mbox{\hyperlink{group__Eldbus__Message_ga7aec6beec8e8a73982c7f43bd1322df8}{eldbus\_message\_arguments\_get}}(msg,\ \textcolor{stringliteral}{"{}v"{}},\ \&variant))}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ printf(\textcolor{stringliteral}{"{}Error\ on\ eldbus\_message\_arguments\_get()\(\backslash\)n"{}});}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ reply;}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ type\ =\ \mbox{\hyperlink{group__Eldbus__Message__Iter_ga7b0584ea114264a729cccf309ae840b8}{eldbus\_message\_iter\_signature\_get}}(variant);}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}\ (type[1])}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ printf(\textcolor{stringliteral}{"{}It\ is\ a\ complex\ type,\ not\ handle\ yet.\(\backslash\)n"{}});}
\DoxyCodeLine{\ \ \ \ \ \ \ \ free(type);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ reply;}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{switch}\ (type[0])}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \textcolor{keywordflow}{case}\ \textcolor{charliteral}{'s'}:}
\DoxyCodeLine{\ \ \ \ \ \ \textcolor{keywordflow}{case}\ \textcolor{charliteral}{'o'}:}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{char}\ *txt;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eldbus__Message__Iter_gae44918ce0b571a30546219d1d5040da0}{eldbus\_message\_iter\_arguments\_get}}(variant,\ type,\ \&txt);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ printf(\textcolor{stringliteral}{"{}type\ =\ \%c\ value\ =\ \%s\(\backslash\)n"{}},\ type[0],\ txt);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{break};}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ \ \ \ \textcolor{keywordflow}{case}\ \textcolor{charliteral}{'i'}:}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{int}\ num;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eldbus__Message__Iter_gae44918ce0b571a30546219d1d5040da0}{eldbus\_message\_iter\_arguments\_get}}(variant,\ type,\ \&num);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ printf(\textcolor{stringliteral}{"{}type\ =\ \%c\ value\ =\ \%d\(\backslash\)n"{}},\ type[0],\ num);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{break};}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ \ \ \ \textcolor{keywordflow}{default}:}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ printf(\textcolor{stringliteral}{"{}Unhandled\ type\(\backslash\)n"{}});}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ printf(\textcolor{stringliteral}{"{}\}\(\backslash\)n\(\backslash\)n"{}});}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ free(type);}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ reply;}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *}
\DoxyCodeLine{\_send\_array\_int(\textcolor{keyword}{const}\ Eldbus\_Service\_Interface\ *iface\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \textcolor{keyword}{const}\ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *msg)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *reply\ =\ \mbox{\hyperlink{group__Eldbus__Message_ga6cc5bf4cbd950c9e87950bf831a86fa4}{eldbus\_message\_method\_return\_new}}(msg);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Core_ga08a70c6651064414e56d75fba2232925}{Eldbus\_Message\_Iter}}\ *iter,\ *array;}
\DoxyCodeLine{\ \ \ \textcolor{keywordtype}{int}\ numbers[]\ =\ \{\ 10,\ 9,\ 8,\ 7,\ 6,\ 5\ \};}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ printf(\textcolor{stringliteral}{"{}-\/\ sendArrayInt\(\backslash\)n\(\backslash\)n"{}});}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ iter\ =\ \mbox{\hyperlink{group__Eldbus__Message__Iter_ga847256246b5c192f076d204c55e7ac11}{eldbus\_message\_iter\_get}}(reply);}
\DoxyCodeLine{\ \ \ array\ =\ \mbox{\hyperlink{group__Eldbus__Message__Iter_ga693607426e8bc5fe31be856c137a4a61}{eldbus\_message\_iter\_container\_new}}(iter,\ \textcolor{charliteral}{'a'},\ \textcolor{stringliteral}{"{}i"{}});}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Message__Iter_ga5482d43616555df5c91e0004085fb97a}{eldbus\_message\_iter\_fixed\_array\_append}}(array,\ \textcolor{charliteral}{'i'},\ numbers,\ \mbox{\hyperlink{group__Eina__Types__Group_ga7c1b6f81660b4e30516169e9e7d3261c}{EINA\_C\_ARRAY\_LENGTH}}(numbers));}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Message__Iter_ga01840f4c9fb71cbf1c8081cf4e84189c}{eldbus\_message\_iter\_container\_close}}(iter,\ array);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ reply;}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *}
\DoxyCodeLine{\_send\_array(\textcolor{keyword}{const}\ Eldbus\_Service\_Interface\ *iface\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \textcolor{keyword}{const}\ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *msg)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *reply\ =\ \mbox{\hyperlink{group__Eldbus__Message_ga6cc5bf4cbd950c9e87950bf831a86fa4}{eldbus\_message\_method\_return\_new}}(msg);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Core_ga08a70c6651064414e56d75fba2232925}{Eldbus\_Message\_Iter}}\ *iter,\ *array;}
\DoxyCodeLine{\ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *array\_string[5]\ =\ \{\textcolor{stringliteral}{"{}qqqq"{}},\ \textcolor{stringliteral}{"{}wwwww"{}},\ \textcolor{stringliteral}{"{}eeeeee"{}},\ \textcolor{stringliteral}{"{}rrrrr"{}},\ \textcolor{stringliteral}{"{}ttttt"{}}\};}
\DoxyCodeLine{\ \ \ \textcolor{keywordtype}{int}\ i;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ printf(\textcolor{stringliteral}{"{}sendArray\(\backslash\)n\(\backslash\)n"{}});}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ iter\ =\ \mbox{\hyperlink{group__Eldbus__Message__Iter_ga847256246b5c192f076d204c55e7ac11}{eldbus\_message\_iter\_get}}(reply);}
\DoxyCodeLine{\ \ \ array\ =\ \mbox{\hyperlink{group__Eldbus__Message__Iter_ga693607426e8bc5fe31be856c137a4a61}{eldbus\_message\_iter\_container\_new}}(iter,\ \textcolor{charliteral}{'a'},\ \textcolor{stringliteral}{"{}s"{}});}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{for}\ (i\ =\ 0;\ i\ <\ 5;\ i++)}
\DoxyCodeLine{\ \ \ \ \ \mbox{\hyperlink{group__Eldbus__Message__Iter_gae00cddea6435838b7189bcf5ca816332}{eldbus\_message\_iter\_arguments\_append}}(array,\ \textcolor{stringliteral}{"{}s"{}},\ array\_string[i]);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Message__Iter_ga01840f4c9fb71cbf1c8081cf4e84189c}{eldbus\_message\_iter\_container\_close}}(iter,\ array);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ reply;}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *}
\DoxyCodeLine{\_plus\_one(\textcolor{keyword}{const}\ Eldbus\_Service\_Interface\ *iface\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \textcolor{keyword}{const}\ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *msg)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *reply\ =\ \mbox{\hyperlink{group__Eldbus__Message_ga6cc5bf4cbd950c9e87950bf831a86fa4}{eldbus\_message\_method\_return\_new}}(msg);}
\DoxyCodeLine{\ \ \ \textcolor{keywordtype}{int}\ num;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ printf(\textcolor{stringliteral}{"{}-\/\ plusOne\(\backslash\)n\(\backslash\)n"{}});}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}\ (!\mbox{\hyperlink{group__Eldbus__Message_ga7aec6beec8e8a73982c7f43bd1322df8}{eldbus\_message\_arguments\_get}}(msg,\ \textcolor{stringliteral}{"{}i"{}},\ \&num))}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ printf(\textcolor{stringliteral}{"{}Error\ on\ eldbus\_message\_arguments\_get()\(\backslash\)n"{}});}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ reply;}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ num++;}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Message_ga933ee5158cb25619c9b272aa1765d069}{eldbus\_message\_arguments\_append}}(reply,\ \textcolor{stringliteral}{"{}i"{}},\ num);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ reply;}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *}
\DoxyCodeLine{\_double\_container(\textcolor{keyword}{const}\ Eldbus\_Service\_Interface\ *iface\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \textcolor{keyword}{const}\ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *msg)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Core_ga08a70c6651064414e56d75fba2232925}{Eldbus\_Message\_Iter}}\ *array1,\ *array2,\ *structure;}
\DoxyCodeLine{\ \ \ \textcolor{keywordtype}{int}\ num1,\ num2;}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *reply;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}\ (!\mbox{\hyperlink{group__Eldbus__Message_ga7aec6beec8e8a73982c7f43bd1322df8}{eldbus\_message\_arguments\_get}}(msg,\ \textcolor{stringliteral}{"{}a(ii)a(ii)"{}},\ \&array1,\ \&array2))}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ printf(\textcolor{stringliteral}{"{}Error\ on\ eldbus\_message\_arguments\_get()\(\backslash\)n"{}});}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ NULL;}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ reply\ =\ \mbox{\hyperlink{group__Eldbus__Message_ga6cc5bf4cbd950c9e87950bf831a86fa4}{eldbus\_message\_method\_return\_new}}(msg);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ printf(\textcolor{stringliteral}{"{}DoubleCountainer\(\backslash\)n\{\(\backslash\)nArray1:\(\backslash\)n"{}});}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{while}\ (\mbox{\hyperlink{group__Eldbus__Message__Iter_ga45c7d707ee830ae5be39c17df05af615}{eldbus\_message\_iter\_get\_and\_next}}(array1,\ \textcolor{charliteral}{'r'},\ \&structure))}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eldbus__Message__Iter_gae44918ce0b571a30546219d1d5040da0}{eldbus\_message\_iter\_arguments\_get}}(structure,\ \textcolor{stringliteral}{"{}ii"{}},\ \&num1,\ \&num2);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ printf(\textcolor{stringliteral}{"{}1\ \%d\ -\/\ 2\ \%d\(\backslash\)n"{}},\ num1,\ num2);}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ printf(\textcolor{stringliteral}{"{}Array2:\(\backslash\)n"{}});}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{while}\ (\mbox{\hyperlink{group__Eldbus__Message__Iter_ga45c7d707ee830ae5be39c17df05af615}{eldbus\_message\_iter\_get\_and\_next}}(array2,\ \textcolor{charliteral}{'r'},\ \&structure))}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eldbus__Message__Iter_gae44918ce0b571a30546219d1d5040da0}{eldbus\_message\_iter\_arguments\_get}}(structure,\ \textcolor{stringliteral}{"{}ii"{}},\ \&num1,\ \&num2);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ printf(\textcolor{stringliteral}{"{}1\ \%d\ -\/\ 2\ \%d\(\backslash\)n"{}},\ num1,\ num2);}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ printf(\textcolor{stringliteral}{"{}\}\(\backslash\)n\(\backslash\)n"{}});}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ reply;}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\_Bool}}}
\DoxyCodeLine{\_properties\_get(\textcolor{keyword}{const}\ Eldbus\_Service\_Interface\ *iface\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *propname,\ \mbox{\hyperlink{group__Eldbus__Core_ga08a70c6651064414e56d75fba2232925}{Eldbus\_Message\_Iter}}\ *iter,\ \textcolor{keyword}{const}\ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *request\_msg\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ **error\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ printf(\textcolor{stringliteral}{"{}Properties\_get\ -\/\ \%s\(\backslash\)n"{}},\ propname);}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}\ (!strcmp(propname,\ \textcolor{stringliteral}{"{}Resp2"{}}))}
\DoxyCodeLine{\ \ \ \ \ \mbox{\hyperlink{group__Eldbus__Message__Iter_gaf3be6a0eb61416b21f21b65c57109b97}{eldbus\_message\_iter\_basic\_append}}(iter,\ \textcolor{charliteral}{'s'},\ resp2);}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}\ (!strcmp(propname,\ \textcolor{stringliteral}{"{}text"{}}))}
\DoxyCodeLine{\ \ \ \ \ \mbox{\hyperlink{group__Eldbus__Message__Iter_gaf3be6a0eb61416b21f21b65c57109b97}{eldbus\_message\_iter\_basic\_append}}(iter,\ \textcolor{charliteral}{'s'},\ \textcolor{stringliteral}{"{}lalalala"{}});}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}\ (!strcmp(propname,\ \textcolor{stringliteral}{"{}int32"{}}))}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eldbus__Message__Iter_gae00cddea6435838b7189bcf5ca816332}{eldbus\_message\_iter\_arguments\_append}}(iter,\ \textcolor{stringliteral}{"{}i"{}},\ int32);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ int32++;}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}\ (!strcmp(propname,\ \textcolor{stringliteral}{"{}st"{}}))}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eldbus__Core_ga08a70c6651064414e56d75fba2232925}{Eldbus\_Message\_Iter}}\ *st;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eldbus__Message__Iter_gae00cddea6435838b7189bcf5ca816332}{eldbus\_message\_iter\_arguments\_append}}(iter,\ \textcolor{stringliteral}{"{}(ss)"{}},\ \&st);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eldbus__Message__Iter_gae00cddea6435838b7189bcf5ca816332}{eldbus\_message\_iter\_arguments\_append}}(st,\ \textcolor{stringliteral}{"{}ss"{}},\ \textcolor{stringliteral}{"{}string1"{}},\ \textcolor{stringliteral}{"{}string2"{}});}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eldbus__Message__Iter_ga01840f4c9fb71cbf1c8081cf4e84189c}{eldbus\_message\_iter\_container\_close}}(iter,\ st);}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}};}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *}
\DoxyCodeLine{\_properties\_set(\textcolor{keyword}{const}\ Eldbus\_Service\_Interface\ *iface\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}},\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *propname,\ \mbox{\hyperlink{group__Eldbus__Core_ga08a70c6651064414e56d75fba2232925}{Eldbus\_Message\_Iter}}\ *iter,\ \textcolor{keyword}{const}\ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *msg)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \textcolor{keywordtype}{char}\ *type;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ type\ =\ \mbox{\hyperlink{group__Eldbus__Message__Iter_ga7b0584ea114264a729cccf309ae840b8}{eldbus\_message\_iter\_signature\_get}}(iter);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}\ (!strcmp(propname,\ \textcolor{stringliteral}{"{}int32"{}}))}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordtype}{int}\ num;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{if}\ (type[0]\ !=\ \textcolor{charliteral}{'i'})}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{goto}\ invalid\_signature;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eldbus__Message__Iter_gae44918ce0b571a30546219d1d5040da0}{eldbus\_message\_iter\_arguments\_get}}(iter,\ \textcolor{stringliteral}{"{}i"{}},\ \&num);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ printf(\textcolor{stringliteral}{"{}int32\ was\ set\ to:\ \%d,\ previously\ was:\ \%d\(\backslash\)n"{}},\ num,\ int32);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ int32\ =\ num;}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{else}\ \textcolor{keywordflow}{if}\ (!strcmp(propname,\ \textcolor{stringliteral}{"{}Resp2"{}}))}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *txt;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{if}\ (type[0]\ !=\ \textcolor{charliteral}{'s'})}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{goto}\ invalid\_signature;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eldbus__Message__Iter_gae44918ce0b571a30546219d1d5040da0}{eldbus\_message\_iter\_arguments\_get}}(iter,\ \textcolor{stringliteral}{"{}s"{}},\ \&txt);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ printf(\textcolor{stringliteral}{"{}Resp2\ was\ set\ to:\ \%s,\ previously\ was:\ \%s\(\backslash\)n"{}},\ txt,\ resp2);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ free(resp2);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ resp2\ =\ strdup(txt);}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ free(type);}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ \mbox{\hyperlink{group__Eldbus__Message_ga6cc5bf4cbd950c9e87950bf831a86fa4}{eldbus\_message\_method\_return\_new}}(msg);}
\DoxyCodeLine{}
\DoxyCodeLine{invalid\_signature:}
\DoxyCodeLine{\ \ \ free(type);}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ \mbox{\hyperlink{group__Eldbus__Message_gab8017df9740d700df09df71c21bf4ce7}{eldbus\_message\_error\_new}}(msg,\ \textcolor{stringliteral}{"{}org.freedesktop.DBus.Error.InvalidSignature"{}},}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{stringliteral}{"{}Invalid\ type."{}});}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keyword}{const}\ \mbox{\hyperlink{struct__Eldbus__Method}{Eldbus\_Method}}\ methods[]\ =\ \{}
\DoxyCodeLine{\ \ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{stringliteral}{"{}ReceiveArray"{}},\ \mbox{\hyperlink{group__Eldbus__Service_gab77338df786b5ad2a9f86693432f23a4}{ELDBUS\_ARGS}}(\{\textcolor{stringliteral}{"{}as"{}},\ \textcolor{stringliteral}{"{}array\_of\_strings"{}}\}),}
\DoxyCodeLine{\ \ \ \ \ \ \ \ NULL,\ \_receive\_array,\ 0}
\DoxyCodeLine{\ \ \ \ \ \ \},}
\DoxyCodeLine{\ \ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{stringliteral}{"{}ReceiveArrayOfStringIntWithSize"{}},}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eldbus__Service_gab77338df786b5ad2a9f86693432f23a4}{ELDBUS\_ARGS}}(\{\textcolor{stringliteral}{"{}i"{}},\ \textcolor{stringliteral}{"{}size\_of\_array"{}}\},\ \{\textcolor{stringliteral}{"{}a(si)"{}},\ \textcolor{stringliteral}{"{}array"{}}\}),}
\DoxyCodeLine{\ \ \ \ \ \ \ \ NULL,\ \_receive\_array\_of\_string\_int\_with\_size,\ 0}
\DoxyCodeLine{\ \ \ \ \ \ \},}
\DoxyCodeLine{\ \ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{stringliteral}{"{}SendVariantData"{}},\ \mbox{\hyperlink{group__Eldbus__Service_gab77338df786b5ad2a9f86693432f23a4}{ELDBUS\_ARGS}}(\{\textcolor{stringliteral}{"{}v"{}},\ \textcolor{stringliteral}{"{}variant\_data"{}}\}),}
\DoxyCodeLine{\ \ \ \ \ \ \ \ NULL,\ \_send\_variant,\ 0}
\DoxyCodeLine{\ \ \ \ \ \ \},}
\DoxyCodeLine{\ \ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \textcolor{stringliteral}{"{}ReceiveVariantData"{}},\ NULL,\ \mbox{\hyperlink{group__Eldbus__Service_gab77338df786b5ad2a9f86693432f23a4}{ELDBUS\_ARGS}}(\{\textcolor{stringliteral}{"{}v"{}},\ \textcolor{stringliteral}{"{}variant\_data"{}}\}),}
\DoxyCodeLine{\ \ \ \ \ \ \ \_receive\_variant,\ 0}
\DoxyCodeLine{\ \ \ \ \ \ \},}
\DoxyCodeLine{\ \ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{stringliteral}{"{}SendArrayInt"{}},\ NULL,}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eldbus__Service_gab77338df786b5ad2a9f86693432f23a4}{ELDBUS\_ARGS}}(\{\textcolor{stringliteral}{"{}ai"{}},\ \textcolor{stringliteral}{"{}array\_of\_int"{}}\}),\ \_send\_array\_int,\ 0}
\DoxyCodeLine{\ \ \ \ \ \ \},}
\DoxyCodeLine{\ \ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{stringliteral}{"{}SendArray"{}},\ NULL,\ \mbox{\hyperlink{group__Eldbus__Service_gab77338df786b5ad2a9f86693432f23a4}{ELDBUS\_ARGS}}(\{\textcolor{stringliteral}{"{}as"{}},\ \textcolor{stringliteral}{"{}array\_string"{}}\}),}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \_send\_array,\ 0}
\DoxyCodeLine{\ \ \ \ \ \ \},}
\DoxyCodeLine{\ \ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{stringliteral}{"{}PlusOne"{}},\ \mbox{\hyperlink{group__Eldbus__Service_gab77338df786b5ad2a9f86693432f23a4}{ELDBUS\_ARGS}}(\{\textcolor{stringliteral}{"{}i"{}},\ \textcolor{stringliteral}{"{}integer"{}}\}),}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \mbox{\hyperlink{group__Eldbus__Service_gab77338df786b5ad2a9f86693432f23a4}{ELDBUS\_ARGS}}(\{\textcolor{stringliteral}{"{}i"{}},\ \textcolor{stringliteral}{"{}integer\_plus\_one"{}}\}),\ \_plus\_one,\ 0}
\DoxyCodeLine{\ \ \ \ \ \ \},}
\DoxyCodeLine{\ \ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{stringliteral}{"{}DoubleContainner"{}},\ \mbox{\hyperlink{group__Eldbus__Service_gab77338df786b5ad2a9f86693432f23a4}{ELDBUS\_ARGS}}(\{\textcolor{stringliteral}{"{}a(ii)"{}},\ \textcolor{stringliteral}{"{}array1"{}}\},\ \{\textcolor{stringliteral}{"{}a(ii)"{}},\ \textcolor{stringliteral}{"{}array2"{}}\}),}
\DoxyCodeLine{\ \ \ \ \ \ \ \ NULL,\ \_double\_container,\ 0}
\DoxyCodeLine{\ \ \ \ \ \ \},}
\DoxyCodeLine{\ \ \ \ \ \ \{\ \}}
\DoxyCodeLine{\};}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keyword}{const}\ \mbox{\hyperlink{struct__Eldbus__Property}{Eldbus\_Property}}\ properties[]\ =\ \{}
\DoxyCodeLine{\ \ \ \ \ \ \{\ \textcolor{stringliteral}{"{}Resp2"{}},\ \textcolor{stringliteral}{"{}s"{}},\ NULL,\ \_properties\_set,\ 0\ \},}
\DoxyCodeLine{\ \ \ \ \ \ \{\ \textcolor{stringliteral}{"{}text"{}},\ \textcolor{stringliteral}{"{}s"{}},\ NULL,\ NULL,\ 0\ \},}
\DoxyCodeLine{\ \ \ \ \ \ \{\ \textcolor{stringliteral}{"{}int32"{}},\ \textcolor{stringliteral}{"{}i"{}},\ NULL,\ \_properties\_set,\ 0\ \},}
\DoxyCodeLine{\ \ \ \ \ \ \{\ \textcolor{stringliteral}{"{}st"{}},\ \textcolor{stringliteral}{"{}(ss)"{}},\ NULL,\ NULL,\ 0\ \},}
\DoxyCodeLine{\ \ \ \ \ \ \{\ \}}
\DoxyCodeLine{\};}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keyword}{const}\ \mbox{\hyperlink{struct__Eldbus__Service__Interface__Desc}{Eldbus\_Service\_Interface\_Desc}}\ iface\_desc\ =\ \{}
\DoxyCodeLine{\ \ \ IFACE,\ methods,\ NULL,\ properties,\ \_properties\_get,\ NULL}
\DoxyCodeLine{\};}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\_Bool}}\ \_emit\_changed(\textcolor{keywordtype}{void}\ *data)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ Eldbus\_Service\_Interface\ *iface\ =\ data;}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Service_ga51cfeabdb75e0f0413bb398f12769f67}{eldbus\_service\_property\_changed}}(iface,\ \textcolor{stringliteral}{"{}int32"{}});}
\DoxyCodeLine{\ \ \ eldbus\_service\_property\_invalidate\_set(iface,\ \textcolor{stringliteral}{"{}Resp2"{}},\ \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}});}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ \mbox{\hyperlink{group__Ecore__Main__Loop__Group_ga1ee9db07f9a46a8b20fb83e1c6dbed09}{ECORE\_CALLBACK\_RENEW}};}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keywordtype}{void}}
\DoxyCodeLine{on\_name\_request(\textcolor{keywordtype}{void}\ *data,\ \textcolor{keyword}{const}\ \mbox{\hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message}}\ *msg,\ \mbox{\hyperlink{group__Eldbus__Core_ga7a5d4dc070bd925034de6e52c4260be7}{Eldbus\_Pending}}\ *pending\ \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ reply;}
\DoxyCodeLine{\ \ \ Eldbus\_Service\_Interface\ *iface\ =\ data;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}\ (\mbox{\hyperlink{group__Eldbus__Message_ga3aeec7d275bef2bb244ed9a045540921}{eldbus\_message\_error\_get}}(msg,\ NULL,\ NULL))}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ printf(\textcolor{stringliteral}{"{}error\ on\ on\_name\_request\(\backslash\)n"{}});}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{return};}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}\ (!\mbox{\hyperlink{group__Eldbus__Message_ga7aec6beec8e8a73982c7f43bd1322df8}{eldbus\_message\_arguments\_get}}(msg,\ \textcolor{stringliteral}{"{}u"{}},\ \&reply))}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ printf(\textcolor{stringliteral}{"{}error\ geting\ arguments\ on\ on\_name\_request\(\backslash\)n"{}});}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{return};}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{if}\ (reply\ !=\ \mbox{\hyperlink{group__Eldbus__Basic_gacf5e700a1223c56f319d6f341e8d5624}{ELDBUS\_NAME\_REQUEST\_REPLY\_PRIMARY\_OWNER}})}
\DoxyCodeLine{\ \ \ \ \ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ printf(\textcolor{stringliteral}{"{}error\ name\ already\ in\ use\(\backslash\)n"{}});}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{return};}
\DoxyCodeLine{\ \ \ \ \ \}}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ timer\ =\ \mbox{\hyperlink{group__Ecore__Timer__Group_ga926423e464d7ef71105dd822d90e1187}{ecore\_timer\_add}}(3,\ \_emit\_changed,\ iface);}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keywordtype}{int}}
\DoxyCodeLine{main(\textcolor{keywordtype}{void})}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus_ga1de8233c3e9240291bb952776810c831}{Eldbus\_Connection}}\ *conn;}
\DoxyCodeLine{\ \ \ Eldbus\_Service\_Interface\ *iface;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Ecore__Init__Group_ga77757609684a2c922dc5ec398274751b}{ecore\_init}}();}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Core_gadd7c8b8a43b5dd590f7fd06166288754}{eldbus\_init}}();}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ conn\ =\ \mbox{\hyperlink{group__Eldbus__Connection_gac73e69791d7b884af458390b9c30925a}{eldbus\_connection\_get}}(ELDBUS\_CONNECTION\_TYPE\_SESSION);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ resp2\ =\ malloc(\textcolor{keyword}{sizeof}(\textcolor{keywordtype}{char})\ *\ 5);}
\DoxyCodeLine{\ \ \ strcpy(resp2,\ \textcolor{stringliteral}{"{}test"{}});}
\DoxyCodeLine{\ \ \ iface\ =\ \mbox{\hyperlink{group__Eldbus__Service_ga61f2b60d902185277b644d7bf8931e4d}{eldbus\_service\_interface\_register}}(conn,\ PATH,\ \&iface\_desc);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Basic_gab5f8278920423d7852a9ca7c7fd22bef}{eldbus\_name\_request}}(conn,\ BUS,\ \mbox{\hyperlink{group__Eldbus__Basic_ga31878c736bc89a712bbcd27699c5b519}{ELDBUS\_NAME\_REQUEST\_FLAG\_DO\_NOT\_QUEUE}},}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ on\_name\_request,\ iface);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Ecore__Main__Loop__Group_gaf103b9f668bb3e4fed12e52c6180132d}{ecore\_main\_loop\_begin}}();}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ free(resp2);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Ecore__Timer__Group_ga7c118b6a6d232b63a6500e599d2a1b47}{ecore\_timer\_del}}(timer);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Service_ga16f7215afc4c9432c2bf639e437f193c}{eldbus\_service\_interface\_unregister}}(iface);}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Connection_ga1c035aac8b601b416bba11d0d68f80ae}{eldbus\_connection\_unref}}(conn);}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Eldbus__Core_ga255ee3e090da6704d009ee74ba9d8a79}{eldbus\_shutdown}}();}
\DoxyCodeLine{\ \ \ \mbox{\hyperlink{group__Ecore__Init__Group_ga768298b932f18d7e7593a447493e5cde}{ecore\_shutdown}}();}
\DoxyCodeLine{\ \ \ \textcolor{keywordflow}{return}\ 0;}
\DoxyCodeLine{\}}

\end{DoxyCodeInclude}
 