\hypertarget{complex-types_8c-example}{}\section{complex-\/types.\+c}
Client to test complex types (arrays, structs, dicts) against a provided server (\hyperlink{complex-types-server_8c-example}{complex-\/types-\/server.\+c})


\begin{DoxyCodeInclude}
\textcolor{comment}{//Compile with:}
\textcolor{comment}{// gcc -o complex-types complex-types.c `pkg-config --cflags --libs eldbus ecore`}

\textcolor{preprocessor}{#include "Eldbus.h"}
\textcolor{preprocessor}{#include <Ecore.h>}

\textcolor{preprocessor}{#define BUS "com.profusion"}
\textcolor{preprocessor}{#define PATH "/com/profusion/Test"}
\textcolor{preprocessor}{#define IFACE "com.profusion.Test"}

\hyperlink{group__Eldbus__Core_ga5f0557a7e65ed263fcc1678874b8f7e7}{Eldbus\_Connection} *conn;

\textcolor{keyword}{static} \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\_Bool}
\_timer1\_cb(\textcolor{keywordtype}{void} *data \hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED})
\{
   printf(\textcolor{stringliteral}{"\(\backslash\)nFishing...\(\backslash\)n"});
   \hyperlink{group__Ecore__Main__Loop__Group_ga95cf8e97dff0716433c2c5474d606a98}{ecore\_main\_loop\_quit}();
   \textcolor{keywordflow}{return} \hyperlink{group__Ecore__Main__Loop__Group_gae0c653baad8836232c0dc27f91f875d6}{ECORE\_CALLBACK\_CANCEL};
\}

\textcolor{keyword}{static} \textcolor{keywordtype}{void}
on\_plus\_one(\textcolor{keywordtype}{void} *data \hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}, \textcolor{keyword}{const} \hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message} *msg, 
      \hyperlink{group__Eldbus__Core_ga7a5d4dc070bd925034de6e52c4260be7}{Eldbus\_Pending} *pending \hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED})
\{
   \textcolor{keywordtype}{int} num2 = 0;

   \textcolor{keywordflow}{if} (\hyperlink{group__Eldbus__Message_ga3aeec7d275bef2bb244ed9a045540921}{eldbus\_message\_error\_get}(msg, NULL, NULL))
     \{
        printf(\textcolor{stringliteral}{"Message error\(\backslash\)n\(\backslash\)n"});
        \textcolor{keywordflow}{return};
     \}
   \textcolor{keywordflow}{if} (!\hyperlink{group__Eldbus__Message_ga7aec6beec8e8a73982c7f43bd1322df8}{eldbus\_message\_arguments\_get}(msg, \textcolor{stringliteral}{"i"}, &num2))
     \{
        printf(\textcolor{stringliteral}{"Error getting arguments."});
        \textcolor{keywordflow}{return};
     \}

   printf(\textcolor{stringliteral}{"on\_plus\_one() %d\(\backslash\)n"}, num2);
\}

\textcolor{keyword}{static} \textcolor{keywordtype}{void}
set\_property\_resp2(\textcolor{keywordtype}{void} *data \hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}, \textcolor{keyword}{const} \hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message} *msg, 
      \hyperlink{group__Eldbus__Core_ga7a5d4dc070bd925034de6e52c4260be7}{Eldbus\_Pending} *pending \hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED})
\{
   \textcolor{keyword}{const} \textcolor{keywordtype}{char} *errname;
   \textcolor{keyword}{const} \textcolor{keywordtype}{char} *errmsg;

   printf(\textcolor{stringliteral}{"set\_property\_resp2()\(\backslash\)n"});
   \textcolor{keywordflow}{if} (\hyperlink{group__Eldbus__Message_ga3aeec7d275bef2bb244ed9a045540921}{eldbus\_message\_error\_get}(msg, &errname, &errmsg))
     \{
        printf(\textcolor{stringliteral}{"Message error %s - %s\(\backslash\)n\(\backslash\)n"}, errname, errmsg);
        \textcolor{keywordflow}{return};
     \}
\}

\textcolor{keyword}{static} \textcolor{keywordtype}{void}
get\_property\_resp2(\textcolor{keywordtype}{void} *data, \textcolor{keyword}{const} \hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message} *msg, 
      \hyperlink{group__Eldbus__Core_ga7a5d4dc070bd925034de6e52c4260be7}{Eldbus\_Pending} *pending \hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED})
\{
   \hyperlink{group__Eldbus__Core_ga5598fdabe4f36f8c13ef7a07dc219a3c}{Eldbus\_Proxy} *proxy = data;
   \hyperlink{group__Eldbus__Core_ga08a70c6651064414e56d75fba2232925}{Eldbus\_Message\_Iter} *variant = NULL;
   \textcolor{keywordtype}{char} *type;
   \textcolor{keywordtype}{char} *resp2;
   \textcolor{keyword}{const} \textcolor{keywordtype}{char} *errname;
   \textcolor{keyword}{const} \textcolor{keywordtype}{char} *errmsg;

   printf(\textcolor{stringliteral}{"get\_property\_resp2()\(\backslash\)n"});
   \textcolor{keywordflow}{if} (\hyperlink{group__Eldbus__Message_ga3aeec7d275bef2bb244ed9a045540921}{eldbus\_message\_error\_get}(msg, &errname, &errmsg))
     \{
        printf(\textcolor{stringliteral}{"Message error %s - %s\(\backslash\)n\(\backslash\)n"}, errname, errmsg);
        \textcolor{keywordflow}{return};
     \}
   \textcolor{keywordflow}{if} (!\hyperlink{group__Eldbus__Message_ga7aec6beec8e8a73982c7f43bd1322df8}{eldbus\_message\_arguments\_get}(msg, \textcolor{stringliteral}{"v"}, &variant))
     \{
        printf(\textcolor{stringliteral}{"Error getting arguments."});
        \textcolor{keywordflow}{return};
     \}

   type = \hyperlink{group__Eldbus__Message__Iter_gab0201e1d78d70477ba337d0aa2977802}{eldbus\_message\_iter\_signature\_get}(variant);
   \textcolor{keywordflow}{if} (type[1])
     \{
        printf(\textcolor{stringliteral}{"It is a complex type, not handle yet.\(\backslash\)n\(\backslash\)n"});
        \textcolor{keywordflow}{return};
     \}
   \textcolor{keywordflow}{if} (type[0] != \textcolor{charliteral}{'s'})
     \{
        printf(\textcolor{stringliteral}{"Expected type is string.\(\backslash\)n\(\backslash\)n"});
        \textcolor{keywordflow}{return};
     \}
   \textcolor{keywordflow}{if} (!\hyperlink{group__Eldbus__Message__Iter_gae44918ce0b571a30546219d1d5040da0}{eldbus\_message\_iter\_arguments\_get}(variant, \textcolor{stringliteral}{"s"}, &resp2))
     \{
        printf(\textcolor{stringliteral}{"error in eldbus\_message\_iter\_arguments\_get()\(\backslash\)n\(\backslash\)n"});
        \textcolor{keywordflow}{return};
     \}
   printf(\textcolor{stringliteral}{"resp2=%s\(\backslash\)n"}, resp2);
   free(type);

   \hyperlink{group__Eldbus__FDO__Properties_ga87a88f3b4119fb332210f15c3d9c2315}{eldbus\_proxy\_property\_set}(proxy, \textcolor{stringliteral}{"Resp2"}, \textcolor{stringliteral}{"s"}, &\textcolor{stringliteral}{"lalala"}, set\_property\_resp2, 
      NULL);
   \hyperlink{group__Eldbus__FDO__Properties_ga87a88f3b4119fb332210f15c3d9c2315}{eldbus\_proxy\_property\_set}(proxy, \textcolor{stringliteral}{"int32"}, \textcolor{stringliteral}{"i"},  (\textcolor{keywordtype}{void}*)(intptr\_t)99, 
      set\_property\_resp2, NULL);
\}

\textcolor{keyword}{static} \textcolor{keywordtype}{void}
on\_send\_array\_int(\textcolor{keywordtype}{void} *data \hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}, \textcolor{keyword}{const} \hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message} *msg, 
      \hyperlink{group__Eldbus__Core_ga7a5d4dc070bd925034de6e52c4260be7}{Eldbus\_Pending} *pending \hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED})
\{
   \hyperlink{group__Eldbus__Core_ga08a70c6651064414e56d75fba2232925}{Eldbus\_Message\_Iter} *array = NULL;
   \textcolor{keywordtype}{int} num;

   printf(\textcolor{stringliteral}{"on\_send\_array\_int()\(\backslash\)n"});
   \textcolor{keywordflow}{if} (\hyperlink{group__Eldbus__Message_ga3aeec7d275bef2bb244ed9a045540921}{eldbus\_message\_error\_get}(msg, NULL, NULL))
     \{
        printf(\textcolor{stringliteral}{"Message error\(\backslash\)n\(\backslash\)n"});
        \textcolor{keywordflow}{return};
     \}
   \textcolor{keywordflow}{if} (!\hyperlink{group__Eldbus__Message_ga7aec6beec8e8a73982c7f43bd1322df8}{eldbus\_message\_arguments\_get}(msg, \textcolor{stringliteral}{"ai"}, &array))
     \{
        printf(\textcolor{stringliteral}{"Error getting arguments."});
        \textcolor{keywordflow}{return};
     \}

   \textcolor{keywordflow}{while} (\hyperlink{group__Eldbus__Message__Iter_ga45c7d707ee830ae5be39c17df05af615}{eldbus\_message\_iter\_get\_and\_next}(array, \textcolor{charliteral}{'i'}, &num))
     \{
        printf(\textcolor{stringliteral}{"%d\(\backslash\)n"}, num);
     \}
\}

\textcolor{keyword}{static} \textcolor{keywordtype}{void}
on\_send\_array(\textcolor{keywordtype}{void} *data \hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}, \textcolor{keyword}{const} \hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message} *msg, 
      \hyperlink{group__Eldbus__Core_ga7a5d4dc070bd925034de6e52c4260be7}{Eldbus\_Pending} *pending \hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED})
\{
   \hyperlink{group__Eldbus__Core_ga08a70c6651064414e56d75fba2232925}{Eldbus\_Message\_Iter} *array = NULL;
   \textcolor{keywordtype}{char} *txt = NULL;
   \textcolor{keywordtype}{char} *\textcolor{keywordtype}{string}[10];
   \textcolor{keywordtype}{int} i = 0;
   \textcolor{keywordtype}{int} z;

   printf(\textcolor{stringliteral}{"on\_send\_array()\(\backslash\)n"});
   \textcolor{keywordflow}{if} (\hyperlink{group__Eldbus__Message_ga3aeec7d275bef2bb244ed9a045540921}{eldbus\_message\_error\_get}(msg, NULL, NULL))
     \{
        printf(\textcolor{stringliteral}{"Message error\(\backslash\)n\(\backslash\)n"});
        \textcolor{keywordflow}{return};
     \}
   \textcolor{keywordflow}{if} (!\hyperlink{group__Eldbus__Message_ga7aec6beec8e8a73982c7f43bd1322df8}{eldbus\_message\_arguments\_get}(msg, \textcolor{stringliteral}{"as"}, &array))
     \{
        printf(\textcolor{stringliteral}{"Error getting arguments."});
        \textcolor{keywordflow}{return};
     \}

   \textcolor{keywordflow}{while} (\hyperlink{group__Eldbus__Message__Iter_ga45c7d707ee830ae5be39c17df05af615}{eldbus\_message\_iter\_get\_and\_next}(array, \textcolor{charliteral}{'s'}, &txt))
     \{
        \textcolor{keywordtype}{string}[i] = txt;
        i++;
     \}

   \textcolor{keywordflow}{for} (z = 0; z < i; z++)
     printf(\textcolor{stringliteral}{"string = %s\(\backslash\)n"}, \textcolor{keywordtype}{string}[z]);
\}

\textcolor{keyword}{static} \textcolor{keywordtype}{void}
on\_receive\_array\_with\_size(\textcolor{keywordtype}{void} *data \hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}, \textcolor{keyword}{const} 
      \hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message} *msg, \hyperlink{group__Eldbus__Core_ga7a5d4dc070bd925034de6e52c4260be7}{Eldbus\_Pending} *pending 
      \hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED})
\{
   \textcolor{keyword}{const} \textcolor{keywordtype}{char} *errname;
   \textcolor{keyword}{const} \textcolor{keywordtype}{char} *errmsg;

   printf(\textcolor{stringliteral}{"on\_receive\_array\_with\_size()\(\backslash\)n"});
   \textcolor{keywordflow}{if} (\hyperlink{group__Eldbus__Message_ga3aeec7d275bef2bb244ed9a045540921}{eldbus\_message\_error\_get}(msg, &errname, &errmsg))
     \{
        fprintf(stderr, \textcolor{stringliteral}{"Error: %s %s\(\backslash\)n"}, errname, errmsg);
     \}
\}

\textcolor{keyword}{static} \textcolor{keywordtype}{void}
on\_send\_variant(\textcolor{keywordtype}{void} *data \hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}, \textcolor{keyword}{const} \hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message} *msg 
      \hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}, \hyperlink{group__Eldbus__Core_ga7a5d4dc070bd925034de6e52c4260be7}{Eldbus\_Pending} *pending \hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED})
\{
   printf(\textcolor{stringliteral}{"on\_send\_variant()\(\backslash\)n\(\backslash\)n"});
\}

\textcolor{keyword}{static} \textcolor{keywordtype}{void}
on\_receive\_array(\textcolor{keywordtype}{void} *data \hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}, \textcolor{keyword}{const} \hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message} *msg, 
      \hyperlink{group__Eldbus__Core_ga7a5d4dc070bd925034de6e52c4260be7}{Eldbus\_Pending} *pending \hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED})
\{
   \textcolor{keyword}{const} \textcolor{keywordtype}{char} *errname;
   \textcolor{keyword}{const} \textcolor{keywordtype}{char} *errmsg;

   printf(\textcolor{stringliteral}{"on\_receive\_array()\(\backslash\)n"});
   \textcolor{keywordflow}{if} (\hyperlink{group__Eldbus__Message_ga3aeec7d275bef2bb244ed9a045540921}{eldbus\_message\_error\_get}(msg, &errname, &errmsg))
     \{
        fprintf(stderr, \textcolor{stringliteral}{"Error: %s %s\(\backslash\)n"}, errname, errmsg);
     \}
\}

\textcolor{keywordtype}{int}
main(\textcolor{keywordtype}{void})
\{
   \hyperlink{group__Eldbus__Core_ga49914ed24559a149426b5f2bb8294a06}{Eldbus\_Object} *test2\_obj;
   \hyperlink{group__Eldbus__Core_ga5598fdabe4f36f8c13ef7a07dc219a3c}{Eldbus\_Proxy} *test2\_proxy;
   \hyperlink{group__Eldbus__Core_ga7a5d4dc070bd925034de6e52c4260be7}{Eldbus\_Pending} *pending;
   \hyperlink{group__Eldbus__Core_ga08a70c6651064414e56d75fba2232925}{Eldbus\_Message\_Iter} *iter, *array\_of\_string, *variant;
   \hyperlink{group__Eldbus__Core_ga08a70c6651064414e56d75fba2232925}{Eldbus\_Message\_Iter} *array\_itr, *structure;
   \hyperlink{group__Eldbus__Core_ga14e8c4d4b96af5fb8bb5c66dc315593a}{Eldbus\_Message} *msg;
   \textcolor{keywordtype}{int} size\_of\_array = 5;
   \textcolor{keyword}{const} \textcolor{keywordtype}{char} *array[5] = \{ \textcolor{stringliteral}{"aaaa"}, \textcolor{stringliteral}{"bbbb"}, \textcolor{stringliteral}{"cccc"}, \textcolor{stringliteral}{"dddd"}, \textcolor{stringliteral}{"eeee"} \};
   \textcolor{keywordtype}{int} i;
   \textcolor{keywordtype}{int} plus\_one = 24;

   \hyperlink{group__Ecore__Init__Group_ga77757609684a2c922dc5ec398274751b}{ecore\_init}();
   \hyperlink{group__Eldbus__Core_gadd7c8b8a43b5dd590f7fd06166288754}{eldbus\_init}();

   conn = \hyperlink{group__Eldbus__Conneciton_ga203ec794fc0c7e1bddce4eb18b628c04}{eldbus\_connection\_get}(ELDBUS\_CONNECTION\_TYPE\_SESSION);

   test2\_obj = \hyperlink{group__Eldbus__Object__Mapper_ga067d5c8eba2590fb58e7dc39de87d203}{eldbus\_object\_get}(conn, BUS, PATH);
   test2\_proxy = \hyperlink{group__Eldbus__Proxy_ga58b8d61188435800e1e866ab3fdc7090}{eldbus\_proxy\_get}(test2\_obj, IFACE);

   msg = \hyperlink{group__Eldbus__Proxy_ga443bd02f44bf6c61c7b6c5ca4fde87de}{eldbus\_proxy\_method\_call\_new}(test2\_proxy, \textcolor{stringliteral}{"ReceiveArray"});
   iter = \hyperlink{group__Eldbus__Message__Iter_ga7ca2412ef3cf3c8f77e3782413820814}{eldbus\_message\_iter\_get}(msg);
   array\_of\_string = \hyperlink{group__Eldbus__Message__Iter_gac053452551e924020d2105d87e73521e}{eldbus\_message\_iter\_container\_new}(iter, \textcolor{charliteral}{'a'},\textcolor{stringliteral}{"s"});
   \textcolor{keywordflow}{if} (!array\_of\_string) printf(\textcolor{stringliteral}{"array\_of\_string == NULL\(\backslash\)n\(\backslash\)n"});
   \textcolor{keywordflow}{for} (i = 0; i < 5; i++)
     \hyperlink{group__Eldbus__Message__Iter_gaf3be6a0eb61416b21f21b65c57109b97}{eldbus\_message\_iter\_basic\_append}(array\_of\_string, \textcolor{charliteral}{'s'}, array[i]);
   \hyperlink{group__Eldbus__Message__Iter_ga01840f4c9fb71cbf1c8081cf4e84189c}{eldbus\_message\_iter\_container\_close}(iter, array\_of\_string);
   pending = \hyperlink{group__Eldbus__Proxy_ga8e4268bf0000bd0ab9596bb2c4d86489}{eldbus\_proxy\_send}(test2\_proxy, msg, on\_receive\_array, NULL, -1);
   \textcolor{keywordflow}{if} (!pending) printf(\textcolor{stringliteral}{"Error in eldbus\_proxy\_send()\(\backslash\)n\(\backslash\)n"});

   msg = \hyperlink{group__Eldbus__Proxy_ga443bd02f44bf6c61c7b6c5ca4fde87de}{eldbus\_proxy\_method\_call\_new}(test2\_proxy, \textcolor{stringliteral}{"
      ReceiveArrayOfStringIntWithSize"});
   iter = \hyperlink{group__Eldbus__Message__Iter_ga7ca2412ef3cf3c8f77e3782413820814}{eldbus\_message\_iter\_get}(msg);
   \textcolor{keywordflow}{if} (!\hyperlink{group__Eldbus__Message__Iter_gae00cddea6435838b7189bcf5ca816332}{eldbus\_message\_iter\_arguments\_append}(iter, \textcolor{stringliteral}{"ia(si)"}, 
      size\_of\_array, &array\_of\_string))
     printf(\textcolor{stringliteral}{"error on eldbus\_massage\_iterator\_arguments\_set()\(\backslash\)n\(\backslash\)n"});
   \textcolor{keywordflow}{for} (i = 0; i < size\_of\_array; i++)
     \{
         \hyperlink{group__Eldbus__Core_ga08a70c6651064414e56d75fba2232925}{Eldbus\_Message\_Iter} *struct\_of\_si;
         \hyperlink{group__Eldbus__Message__Iter_gae00cddea6435838b7189bcf5ca816332}{eldbus\_message\_iter\_arguments\_append}(array\_of\_string, \textcolor{stringliteral}{"(si)"}, 
      &struct\_of\_si);
         \hyperlink{group__Eldbus__Message__Iter_gae00cddea6435838b7189bcf5ca816332}{eldbus\_message\_iter\_arguments\_append}(struct\_of\_si, \textcolor{stringliteral}{"si"}, array
      [i], i);
         \hyperlink{group__Eldbus__Message__Iter_ga01840f4c9fb71cbf1c8081cf4e84189c}{eldbus\_message\_iter\_container\_close}(array\_of\_string, 
      struct\_of\_si);
     \}
   \hyperlink{group__Eldbus__Message__Iter_ga01840f4c9fb71cbf1c8081cf4e84189c}{eldbus\_message\_iter\_container\_close}(iter, array\_of\_string);
   pending = \hyperlink{group__Eldbus__Proxy_ga8e4268bf0000bd0ab9596bb2c4d86489}{eldbus\_proxy\_send}(test2\_proxy, msg, on\_receive\_array\_with\_size, NULL, -1);

   msg = \hyperlink{group__Eldbus__Proxy_ga443bd02f44bf6c61c7b6c5ca4fde87de}{eldbus\_proxy\_method\_call\_new}(test2\_proxy, \textcolor{stringliteral}{"SendVariantData"});
   iter = \hyperlink{group__Eldbus__Message__Iter_ga7ca2412ef3cf3c8f77e3782413820814}{eldbus\_message\_iter\_get}(msg);
   variant = \hyperlink{group__Eldbus__Message__Iter_gac053452551e924020d2105d87e73521e}{eldbus\_message\_iter\_container\_new}(iter, \textcolor{charliteral}{'v'}, \textcolor{stringliteral}{"s"});
   \hyperlink{group__Eldbus__Message__Iter_gaf3be6a0eb61416b21f21b65c57109b97}{eldbus\_message\_iter\_basic\_append}(variant, \textcolor{charliteral}{'s'}, \textcolor{stringliteral}{"test"});
   \hyperlink{group__Eldbus__Message__Iter_ga01840f4c9fb71cbf1c8081cf4e84189c}{eldbus\_message\_iter\_container\_close}(iter, variant);
   pending = \hyperlink{group__Eldbus__Proxy_ga8e4268bf0000bd0ab9596bb2c4d86489}{eldbus\_proxy\_send}(test2\_proxy, msg, on\_send\_variant, NULL, -1);

   msg = \hyperlink{group__Eldbus__Proxy_ga443bd02f44bf6c61c7b6c5ca4fde87de}{eldbus\_proxy\_method\_call\_new}(test2\_proxy, \textcolor{stringliteral}{"DoubleContainner"});
   iter = \hyperlink{group__Eldbus__Message__Iter_ga7ca2412ef3cf3c8f77e3782413820814}{eldbus\_message\_iter\_get}(msg);
   \hyperlink{group__Eldbus__Message__Iter_gae00cddea6435838b7189bcf5ca816332}{eldbus\_message\_iter\_arguments\_append}(iter, \textcolor{stringliteral}{"a(ii)"}, &array\_itr);
   \textcolor{keywordflow}{for} (i = 0; i < 5; i++)
     \{
        \hyperlink{group__Eldbus__Message__Iter_gae00cddea6435838b7189bcf5ca816332}{eldbus\_message\_iter\_arguments\_append}(array\_itr, \textcolor{stringliteral}{"(ii)"}, &
      structure);
        \hyperlink{group__Eldbus__Message__Iter_gae00cddea6435838b7189bcf5ca816332}{eldbus\_message\_iter\_arguments\_append}(structure, \textcolor{stringliteral}{"ii"}, i, i*i);
        \hyperlink{group__Eldbus__Message__Iter_ga01840f4c9fb71cbf1c8081cf4e84189c}{eldbus\_message\_iter\_container\_close}(array\_itr, structure);
     \}
   \hyperlink{group__Eldbus__Message__Iter_ga01840f4c9fb71cbf1c8081cf4e84189c}{eldbus\_message\_iter\_container\_close}(iter, array\_itr);
   \hyperlink{group__Eldbus__Message__Iter_gae00cddea6435838b7189bcf5ca816332}{eldbus\_message\_iter\_arguments\_append}(iter, \textcolor{stringliteral}{"a(ii)"}, &array\_itr);
   \textcolor{keywordflow}{for} (i = 0; i < 7; i++)
     \{
        \hyperlink{group__Eldbus__Message__Iter_gae00cddea6435838b7189bcf5ca816332}{eldbus\_message\_iter\_arguments\_append}(array\_itr, \textcolor{stringliteral}{"(ii)"}, &
      structure);
        \hyperlink{group__Eldbus__Message__Iter_gae00cddea6435838b7189bcf5ca816332}{eldbus\_message\_iter\_arguments\_append}(structure, \textcolor{stringliteral}{"ii"}, i, i*i*i)
      ;
        \hyperlink{group__Eldbus__Message__Iter_ga01840f4c9fb71cbf1c8081cf4e84189c}{eldbus\_message\_iter\_container\_close}(array\_itr, structure);
     \}
   \hyperlink{group__Eldbus__Message__Iter_ga01840f4c9fb71cbf1c8081cf4e84189c}{eldbus\_message\_iter\_container\_close}(iter, array\_itr);
   \hyperlink{group__Eldbus__Proxy_ga8e4268bf0000bd0ab9596bb2c4d86489}{eldbus\_proxy\_send}(test2\_proxy, msg, NULL, NULL, -1);

   pending = \hyperlink{group__Eldbus__Proxy_ga0eaac8e928bd7605855bf61d97eea37c}{eldbus\_proxy\_call}(test2\_proxy, \textcolor{stringliteral}{"SendArrayInt"}, on\_send\_array\_int, NULL,
                                 -1 , \textcolor{stringliteral}{""});

   pending = \hyperlink{group__Eldbus__Proxy_ga0eaac8e928bd7605855bf61d97eea37c}{eldbus\_proxy\_call}(test2\_proxy, \textcolor{stringliteral}{"SendArray"}, on\_send\_array, NULL,
                              -1 , \textcolor{stringliteral}{""});

   pending = \hyperlink{group__Eldbus__Proxy_ga0eaac8e928bd7605855bf61d97eea37c}{eldbus\_proxy\_call}(test2\_proxy, \textcolor{stringliteral}{"PlusOne"}, on\_plus\_one, NULL,
                              -1 , \textcolor{stringliteral}{"i"}, plus\_one);

   pending = \hyperlink{group__Eldbus__FDO__Properties_gaa1d2c82ea9765c6e1ca9d51f50afb61a}{eldbus\_proxy\_property\_get}(test2\_proxy, \textcolor{stringliteral}{"Resp2"}, get\_property\_resp2, 
      test2\_proxy);

   \hyperlink{group__Ecore__Timer__Group_ga7b9cb9d24ecebfdbb957436e2e669402}{ecore\_timer\_add}(10, \_timer1\_cb, NULL);

   \hyperlink{group__Ecore__Main__Loop__Group_gaf103b9f668bb3e4fed12e52c6180132d}{ecore\_main\_loop\_begin}();

   \hyperlink{group__Eldbus__Conneciton_ga1c035aac8b601b416bba11d0d68f80ae}{eldbus\_connection\_unref}(conn);

   \hyperlink{group__Eldbus__Core_ga255ee3e090da6704d009ee74ba9d8a79}{eldbus\_shutdown}();
   \hyperlink{group__Ecore__Init__Group_ga768298b932f18d7e7593a447493e5cde}{ecore\_shutdown}();
   \textcolor{keywordflow}{return} 0;
\}
\end{DoxyCodeInclude}
 