Tizen Native API
Eina_Accessor usage

We start by including necessary headers, declaring variables, and initializing eina:

Next we populate our array and list:

Now that we have two containers populated we can actually start the example and create an accessor:

Once we have the accessor we can use it to access certain elements in the container:

Note:
Unlike iterators accessors allow us non-linear access, which allows us to print only the odd elements in the container.

As with every other resource we allocate we need to free the accessor(and the array):

Now we create another accessor, this time for the list:

And now the interesting part, we use the same code we used above, to print parts of the array, to print parts of the list:

And to free the list we use a gimmick, instead of freeing list, we ask the accessor for its container and we free that:

Finally we shut eina down and leave:

The full source code can be found in the examples folder in the eina_accessor_01.c file.