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
336d1275
Commit
336d1275
authored
Nov 27, 2012
by
Ben Straub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API updates for transport.h
parent
f4a62c30
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
include/git2/transport.h
+12
-12
No files found.
include/git2/transport.h
View file @
336d1275
...
@@ -45,12 +45,12 @@ typedef struct git_cred_userpass_plaintext {
...
@@ -45,12 +45,12 @@ typedef struct git_cred_userpass_plaintext {
/**
/**
* Creates a new plain-text username and password credential object.
* Creates a new plain-text username and password credential object.
*
*
* @param
cred
The newly created credential object.
* @param
out
The newly created credential object.
* @param username The username of the credential.
* @param username The username of the credential.
* @param password The password of the credential.
* @param password The password of the credential.
*/
*/
GIT_EXTERN
(
int
)
git_cred_userpass_plaintext_new
(
GIT_EXTERN
(
int
)
git_cred_userpass_plaintext_new
(
git_cred
**
cred
,
git_cred
**
out
,
const
char
*
username
,
const
char
*
username
,
const
char
*
password
);
const
char
*
password
);
...
@@ -64,7 +64,7 @@ GIT_EXTERN(int) git_cred_userpass_plaintext_new(
...
@@ -64,7 +64,7 @@ GIT_EXTERN(int) git_cred_userpass_plaintext_new(
typedef
int
(
*
git_cred_acquire_cb
)(
typedef
int
(
*
git_cred_acquire_cb
)(
git_cred
**
cred
,
git_cred
**
cred
,
const
char
*
url
,
const
char
*
url
,
int
allowed_types
);
unsigned
int
allowed_types
);
/*
/*
*** End interface for credentials acquisition ***
*** End interface for credentials acquisition ***
...
@@ -144,11 +144,11 @@ typedef struct git_transport {
...
@@ -144,11 +144,11 @@ typedef struct git_transport {
* is scanned to find a transport that implements the scheme of the URI (i.e.
* is scanned to find a transport that implements the scheme of the URI (i.e.
* git:// or http://) and a transport object is returned to the caller.
* git:// or http://) and a transport object is returned to the caller.
*
*
* @param
transpor
t The newly created transport (out)
* @param
ou
t The newly created transport (out)
* @param url The URL to connect to
* @param url The URL to connect to
* @return 0 or an error code
* @return 0 or an error code
*/
*/
GIT_EXTERN
(
int
)
git_transport_new
(
git_transport
**
transpor
t
,
const
char
*
url
);
GIT_EXTERN
(
int
)
git_transport_new
(
git_transport
**
ou
t
,
const
char
*
url
);
/**
/**
* Function which checks to see if a transport could be created for the
* Function which checks to see if a transport could be created for the
...
@@ -161,7 +161,7 @@ GIT_EXTERN(int) git_transport_new(git_transport **transport, const char *url);
...
@@ -161,7 +161,7 @@ GIT_EXTERN(int) git_transport_new(git_transport **transport, const char *url);
GIT_EXTERN
(
int
)
git_transport_valid_url
(
const
char
*
url
);
GIT_EXTERN
(
int
)
git_transport_valid_url
(
const
char
*
url
);
/* Signature of a function which creates a transport */
/* Signature of a function which creates a transport */
typedef
int
(
*
git_transport_cb
)(
git_transport
**
transport
,
void
*
param
);
typedef
int
(
*
git_transport_cb
)(
git_transport
**
out
,
void
*
payload
);
/* Transports which come with libgit2 (match git_transport_cb). The expected
/* Transports which come with libgit2 (match git_transport_cb). The expected
* value for "param" is listed in-line below. */
* value for "param" is listed in-line below. */
...
@@ -170,34 +170,34 @@ typedef int (*git_transport_cb)(git_transport **transport, void *param);
...
@@ -170,34 +170,34 @@ typedef int (*git_transport_cb)(git_transport **transport, void *param);
* Create an instance of the dummy transport.
* Create an instance of the dummy transport.
*
*
* @param transport The newly created transport (out)
* @param transport The newly created transport (out)
* @param pa
ram
You must pass NULL for this parameter.
* @param pa
yload
You must pass NULL for this parameter.
* @return 0 or an error code
* @return 0 or an error code
*/
*/
GIT_EXTERN
(
int
)
git_transport_dummy
(
GIT_EXTERN
(
int
)
git_transport_dummy
(
git_transport
**
transport
,
git_transport
**
transport
,
/* NULL */
void
*
pa
ram
);
/* NULL */
void
*
pa
yload
);
/**
/**
* Create an instance of the local transport.
* Create an instance of the local transport.
*
*
* @param transport The newly created transport (out)
* @param transport The newly created transport (out)
* @param pa
ram
You must pass NULL for this parameter.
* @param pa
yload
You must pass NULL for this parameter.
* @return 0 or an error code
* @return 0 or an error code
*/
*/
GIT_EXTERN
(
int
)
git_transport_local
(
GIT_EXTERN
(
int
)
git_transport_local
(
git_transport
**
transport
,
git_transport
**
transport
,
/* NULL */
void
*
pa
ram
);
/* NULL */
void
*
pa
yload
);
/**
/**
* Create an instance of the smart transport.
* Create an instance of the smart transport.
*
*
* @param transport The newly created transport (out)
* @param transport The newly created transport (out)
* @param pa
ram
A pointer to a git_smart_subtransport_definition
* @param pa
yload
A pointer to a git_smart_subtransport_definition
* @return 0 or an error code
* @return 0 or an error code
*/
*/
GIT_EXTERN
(
int
)
git_transport_smart
(
GIT_EXTERN
(
int
)
git_transport_smart
(
git_transport
**
transport
,
git_transport
**
transport
,
/* (git_smart_subtransport_definition *) */
void
*
pa
ram
);
/* (git_smart_subtransport_definition *) */
void
*
pa
yload
);
/*
/*
*** End of base transport interface ***
*** End of base transport interface ***
...
...
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