List All Resource Pools

The following example lists all resource pools defined in an application's
pools pset.

The key points of the example include the following:

Open the dynamic conf file read-only, PO_RDONLY. pool_query_pools() returns the list of pools in pl and
the number of pools in nelem. For each pool, call pool_get_property() to get the pool.name property from the element into
the pval value.

pool_get_property() calls pool_to_elem() to convert the libpool entity to an opaque value. pool_value_get_string() gets the string from the opaque pool value.