Move encoding of attributes before icsf_list()

... so icsf_list can call it and not have to add a declaration.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Reviewed-by: Eduardo Otubo
Reviewed-by: Marcelo Cerri
Add attributes to icsf_list() and icsf_list_objects().

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Reviewed-by: Eduardo Otubo
Reviewed-by: Marcelo Cerri
Add t_find_objects_init to ock and ICSF token.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Reviewed-by: Eduardo Otubo
Reviewed-by: Marcelo Cerri
Clear out the memory for the map.

Noticed when trying to compare icsf_object_records in findobject, there was
often garbage so compare would fail.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Reviewed-by: Eduardo Otubo
Reviewed-by: Marcelo Cerri
icsf's init_token needs to purge the object btree and start anew.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Reviewed-by: Eduardo Otubo
Reviewed-by: Marcelo Cerri
Add a findobjects testcase.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Reviewed-by: Eduardo Otubo
Reviewed-by: Marcelo Cerri