GgitTransferProgress

GgitTransferProgress

Synopsis

                    GgitTransferProgress;
gint                (*GgitTransferProgressCallback)     (GgitTransferProgress *stats,
                                                         gpointer user_data);
GgitTransferProgress * ggit_transfer_progress_copy      (GgitTransferProgress *progress);
void                ggit_transfer_progress_free         (GgitTransferProgress *progress);
guint               ggit_transfer_progress_get_total_objects
                                                        (GgitTransferProgress *progress);
guint               ggit_transfer_progress_get_indexed_objects
                                                        (GgitTransferProgress *progress);
guint               ggit_transfer_progress_get_received_objects
                                                        (GgitTransferProgress *progress);
gsize               ggit_transfer_progress_get_received_bytes
                                                        (GgitTransferProgress *progress);

Object Hierarchy

  GBoxed
   +----GgitTransferProgress

Description

Details

GgitTransferProgress

typedef struct _GgitTransferProgress GgitTransferProgress;

Represents transfering progress.


GgitTransferProgressCallback ()

gint                (*GgitTransferProgressCallback)     (GgitTransferProgress *stats,
                                                         gpointer user_data);

Progress callbacks during indexing.

stats :

a GgitTransferProgress.

user_data :

user-supplied data. [closure]

Returns :

a value less than zero to cancel the transfer.

ggit_transfer_progress_copy ()

GgitTransferProgress * ggit_transfer_progress_copy      (GgitTransferProgress *progress);

Copies progress into a newly allocated GgitTransferProgress.

progress :

a GgitTransferProgress.

Returns :

a newly allocated GgitTransferProgress. [transfer full]

ggit_transfer_progress_free ()

void                ggit_transfer_progress_free         (GgitTransferProgress *progress);

Frees progress.

progress :

a GgitTransferProgress.

ggit_transfer_progress_get_total_objects ()

guint               ggit_transfer_progress_get_total_objects
                                                        (GgitTransferProgress *progress);

Gets the total objects of the transfer.

progress :

a GgitTransferProgress.

Returns :

the total objects of the transfer.

ggit_transfer_progress_get_indexed_objects ()

guint               ggit_transfer_progress_get_indexed_objects
                                                        (GgitTransferProgress *progress);

Gets the indexed objects of the transfer.

progress :

a GgitTransferProgress.

Returns :

the indexed objects of the transfer.

ggit_transfer_progress_get_received_objects ()

guint               ggit_transfer_progress_get_received_objects
                                                        (GgitTransferProgress *progress);

Gets the received objects of the transfer.

progress :

a GgitTransferProgress.

Returns :

the received objects of the transfer.

ggit_transfer_progress_get_received_bytes ()

gsize               ggit_transfer_progress_get_received_bytes
                                                        (GgitTransferProgress *progress);

Gets the received bytes of the transfer.

progress :

a GgitTransferProgress.

Returns :

the received bytes of the transfer.