libgit2

git_config_iterator

Version:

Every iterator must have this struct as its first element, so the API can talk to it. You'd define your iterator as

struct my_iterator { git_config_iterator parent; ... }

and assign iter->parent.backend to your git_config_backend.

Signature

typedef struct git_config_iterator { git_config_backend *backend unsigned int flags int (*)(git_config_backend_entry **, git_config_iterator *) next void (*)(git_config_iterator *) free };

Members

unsigned int
flags
int (*)(git_config_backend_entry **, git_config_iterator *)
next

Return the current entry and advance the iterator. The memory belongs to the library.

void (*)(git_config_iterator *)
free

Free the iterator

Parameter To

Versions