---
name: "confdb_object_iter_start"
section: "3"
platform: "linux"
package: "corosync-dev"
version: "1.4.6-1.1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/confdb_object_iter"
---

# confdb\_object\_iter\_start(3)

Iterate through objects in the Configuration Database

Part of [confdb\_object\_iter(3)](/confdb_object_iter/3.md).

## NAME

confdb\_object\_iter - Iterate through objects in the Configuration Database

## SYNOPSIS

**#include \<corosync/confdb.h\>**

**confdb\_error\_t confdb\_object\_iter\_start(confdb\_handle\_t** *handle***, unsigned int** *parent\_object\_handle* **);**

**confdb\_error\_t confdb\_object\_iter(confdb\_handle\_t** *handle***, unsigned int** *parent\_object\_handle***, unsigned int** *\*object\_handle***, void** *\*object\_name***, int** *\*object\_name\_len* **);**

**confdb\_error\_t confdb\_object\_iter\_destroy(confdb\_handle\_t** *handle***, unsigned int** *parent\_object\_handle* **);**

## DESCRIPTION

The **confdb\_object\_iter** function repeatedly returns all objects that are subobjects of the specified parent. You must call **confdb\_object\_iter\_start** first. This establishes a context for the parent object so that it knows where you are in the list. Then the next call to **confdb\_object\_iter** will return the handle of the first object in the list. Subsequent calls will return any remaining objects. The function returns CONFDB\_ERR\_ACCESS when the all of the matching objects have been seen. The function returns the name and length of the object as well as its handle. **When you have finished searching for objects, call the** **confdb\_object\_iter\_destroy** library call to free up memory associated with the search context.

## RETURN VALUE

This call returns the CONFDB\_OK value if successful, otherwise an error is returned.

## ERRORS

The errors are undocumented.

## SEE ALSO

[**confdb\_overview**(8)](/confdb_overview/8.md), [**confdb\_initialize**(3)](/confdb_initialize/3.md), [**confdb\_finalize**(3)](/confdb_finalize/3.md), [**confdb\_dispatch**(3)](/confdb_dispatch/3.md), [**confdb\_object\_create**(3)](/confdb_object_create/3.md), [**confdb\_object\_destroy**(3)](/confdb_object_destroy/3.md), [**confdb\_object\_parent\_get**(3)](/confdb_object_parent_get/3.md), [**confdb\_key\_create**(3)](/confdb_key_create/3.md), [**confdb\_key\_delete**(3)](/confdb_key_delete/3.md), [**confdb\_key\_get**(3)](/confdb_key_get/3.md), [**confdb\_key\_replace**(3)](/confdb_key_replace/3.md), [**confdb\_object\_find\_start**(3)](/confdb_object_find_start/3.md), [**confdb\_object\_find**(3)](/confdb_object_find/3.md), [**confdb\_object\_iter\_start**(3)](/confdb_object_iter_start/3.md), [**confdb\_object\_iter**(3)](/confdb_object_iter/3.md), [**confdb\_key\_iter\_start**(3)](/confdb_key_iter_start/3.md), [**confdb\_key\_iter**(3)](/confdb_key_iter/3.md),
