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
71ca3dc7
Unverified
Commit
71ca3dc7
authored
Sep 12, 2019
by
Etienne Samson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
transport: move transport-related typedef in transport.h
parent
606f6e21
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
include/git2/transport.h
+11
-0
include/git2/types.h
+0
-11
No files found.
include/git2/transport.h
View file @
71ca3dc7
...
...
@@ -22,6 +22,17 @@
*/
GIT_BEGIN_DECL
/**
* Callback for messages recieved by the transport.
*
* Return a negative value to cancel the network operation.
*
* @param str The message from the transport
* @param len The length of the message
* @param payload Payload provided by the caller
*/
typedef
int
GIT_CALLBACK
(
git_transport_message_cb
)(
const
char
*
str
,
int
len
,
void
*
payload
);
/** Signature of a function which creates a transport */
typedef
int
GIT_CALLBACK
(
git_transport_cb
)(
git_transport
**
out
,
git_remote
*
owner
,
void
*
param
);
...
...
include/git2/types.h
View file @
71ca3dc7
...
...
@@ -245,17 +245,6 @@ typedef struct git_remote_head git_remote_head;
typedef
struct
git_remote_callbacks
git_remote_callbacks
;
/**
* Type for messages delivered by the transport. Return a negative value
* to cancel the network operation.
*
* @param str The message from the transport
* @param len The length of the message
* @param payload Payload provided by the caller
*/
typedef
int
GIT_CALLBACK
(
git_transport_message_cb
)(
const
char
*
str
,
int
len
,
void
*
payload
);
/**
* Parent type for `git_cert_hostkey` and `git_cert_x509`.
*/
typedef
struct
git_cert
git_cert
;
...
...
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