mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 22:39:38 +00:00
stransport: make internal functions static
This commit is contained in:
parent
baa87dfc50
commit
067bf5dcc5
@ -16,7 +16,7 @@
|
|||||||
#include "socket_stream.h"
|
#include "socket_stream.h"
|
||||||
#include "curl_stream.h"
|
#include "curl_stream.h"
|
||||||
|
|
||||||
int stransport_error(OSStatus ret)
|
static int stransport_error(OSStatus ret)
|
||||||
{
|
{
|
||||||
CFStringRef message;
|
CFStringRef message;
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ typedef struct {
|
|||||||
git_cert_x509 cert_info;
|
git_cert_x509 cert_info;
|
||||||
} stransport_stream;
|
} stransport_stream;
|
||||||
|
|
||||||
int stransport_connect(git_stream *stream)
|
static int stransport_connect(git_stream *stream)
|
||||||
{
|
{
|
||||||
stransport_stream *st = (stransport_stream *) stream;
|
stransport_stream *st = (stransport_stream *) stream;
|
||||||
int error;
|
int error;
|
||||||
@ -90,7 +90,7 @@ on_error:
|
|||||||
return stransport_error(ret);
|
return stransport_error(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
int stransport_certificate(git_cert **out, git_stream *stream)
|
static int stransport_certificate(git_cert **out, git_stream *stream)
|
||||||
{
|
{
|
||||||
stransport_stream *st = (stransport_stream *) stream;
|
stransport_stream *st = (stransport_stream *) stream;
|
||||||
SecTrustRef trust = NULL;
|
SecTrustRef trust = NULL;
|
||||||
@ -117,7 +117,7 @@ int stransport_certificate(git_cert **out, git_stream *stream)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int stransport_set_proxy(
|
static int stransport_set_proxy(
|
||||||
git_stream *stream,
|
git_stream *stream,
|
||||||
const git_proxy_options *proxy_opts)
|
const git_proxy_options *proxy_opts)
|
||||||
{
|
{
|
||||||
@ -149,7 +149,7 @@ static OSStatus write_cb(SSLConnectionRef conn, const void *data, size_t *len)
|
|||||||
return noErr;
|
return noErr;
|
||||||
}
|
}
|
||||||
|
|
||||||
ssize_t stransport_write(git_stream *stream, const char *data, size_t len, int flags)
|
static ssize_t stransport_write(git_stream *stream, const char *data, size_t len, int flags)
|
||||||
{
|
{
|
||||||
stransport_stream *st = (stransport_stream *) stream;
|
stransport_stream *st = (stransport_stream *) stream;
|
||||||
size_t data_len, processed;
|
size_t data_len, processed;
|
||||||
@ -198,7 +198,7 @@ static OSStatus read_cb(SSLConnectionRef conn, void *data, size_t *len)
|
|||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
ssize_t stransport_read(git_stream *stream, void *data, size_t len)
|
static ssize_t stransport_read(git_stream *stream, void *data, size_t len)
|
||||||
{
|
{
|
||||||
stransport_stream *st = (stransport_stream *) stream;
|
stransport_stream *st = (stransport_stream *) stream;
|
||||||
size_t processed;
|
size_t processed;
|
||||||
@ -210,7 +210,7 @@ ssize_t stransport_read(git_stream *stream, void *data, size_t len)
|
|||||||
return processed;
|
return processed;
|
||||||
}
|
}
|
||||||
|
|
||||||
int stransport_close(git_stream *stream)
|
static int stransport_close(git_stream *stream)
|
||||||
{
|
{
|
||||||
stransport_stream *st = (stransport_stream *) stream;
|
stransport_stream *st = (stransport_stream *) stream;
|
||||||
OSStatus ret;
|
OSStatus ret;
|
||||||
@ -222,7 +222,7 @@ int stransport_close(git_stream *stream)
|
|||||||
return git_stream_close(st->io);
|
return git_stream_close(st->io);
|
||||||
}
|
}
|
||||||
|
|
||||||
void stransport_free(git_stream *stream)
|
static void stransport_free(git_stream *stream)
|
||||||
{
|
{
|
||||||
stransport_stream *st = (stransport_stream *) stream;
|
stransport_stream *st = (stransport_stream *) stream;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user