Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
ffc97d51
Commit
ffc97d51
authored
Sep 20, 2013
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remote: add some comments to the callback struct
Hopefully clear up what they're for.
parent
36a241ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
1 deletions
+33
-1
include/git2/remote.h
+33
-1
No files found.
include/git2/remote.h
View file @
ffc97d51
...
...
@@ -400,15 +400,47 @@ typedef enum git_remote_completion_type {
/**
* The callback settings structure
*
* Set the calbacks to be called by the remote.
* Set the callbacks to be called by the remote when informing the user
* about the progress of the network operations.
*/
struct
git_remote_callbacks
{
unsigned
int
version
;
/**
* Textual progress from the remote. Text send over the
* progress side-band will be passed to this function (this is
* the 'counting objects' output.
*/
void
(
*
progress
)(
const
char
*
str
,
int
len
,
void
*
data
);
/**
* Completion is called when different parts of the download
* process are done (currently unused).
*/
int
(
*
completion
)(
git_remote_completion_type
type
,
void
*
data
);
/**
* This will be called if the remote host requires
* authentication in order to connect to it.
*/
int
(
*
credentials
)(
git_cred
**
cred
,
const
char
*
url
,
const
char
*
username_from_url
,
unsigned
int
allowed_types
,
void
*
data
);
/**
* During the download of new data, this will be regularly
* called with the current count of progress done by the
* indexer.
*/
int
(
*
transfer_progress
)(
const
git_transfer_progress
*
stats
,
void
*
data
);
/**
* Each time a reference is updated locally, this function
* will be called with information about it.
*/
int
(
*
update_tips
)(
const
char
*
refname
,
const
git_oid
*
a
,
const
git_oid
*
b
,
void
*
data
);
/**
* This will be passed to each of the callbacks in this struct
* as the last parameter.
*/
void
*
payload
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment