Function

GgitTreeWalkCallback

Declaration

gint
(* GgitTreeWalkCallback) (
  const gchar* root,
  const GgitTreeEntry* entry,
  gpointer user_data
)

Description [src]

The type of the callback functions for walking a tree. See ggit_tree_walk().

Parameters

root const gchar*
 

The current (relative) root of the entry.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
entry GgitTreeEntry
 

The tree entry.

 The data is owned by the caller of the function.
user_data gpointer
 

User-supplied data.

 The argument can be NULL.
 The data is owned by the caller of the function.

Return value

Returns: gint
 

0 to go for the next entry or a GgitError in case there was an error.