Synchronously queries the server for its capabilities and returns them in a List. the list elements with g_free and the list itself with g_list_free.