Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
09854f8c
Commit
09854f8c
authored
Dec 21, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tls: improve vlc_tls_(Read|Write) return type
parent
10de5cff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
include/vlc_tls.h
include/vlc_tls.h
+2
-2
src/network/tls.c
src/network/tls.c
+2
-2
No files found.
include/vlc_tls.h
View file @
09854f8c
...
@@ -91,13 +91,13 @@ VLC_API void vlc_tls_SessionDelete (vlc_tls_t *);
...
@@ -91,13 +91,13 @@ VLC_API void vlc_tls_SessionDelete (vlc_tls_t *);
/**
/**
* Receives data through a TLS session.
* Receives data through a TLS session.
*/
*/
VLC_API
in
t
vlc_tls_Read
(
vlc_tls_t
*
,
void
*
buf
,
size_t
len
,
bool
waitall
);
VLC_API
ssize_
t
vlc_tls_Read
(
vlc_tls_t
*
,
void
*
buf
,
size_t
len
,
bool
waitall
);
VLC_API
char
*
vlc_tls_GetLine
(
vlc_tls_t
*
);
VLC_API
char
*
vlc_tls_GetLine
(
vlc_tls_t
*
);
/**
/**
* Sends data through a TLS session.
* Sends data through a TLS session.
*/
*/
VLC_API
in
t
vlc_tls_Write
(
vlc_tls_t
*
,
const
void
*
buf
,
size_t
len
);
VLC_API
ssize_
t
vlc_tls_Write
(
vlc_tls_t
*
,
const
void
*
buf
,
size_t
len
);
/**
/**
* Terminates a TLS session.
* Terminates a TLS session.
...
...
src/network/tls.c
View file @
09854f8c
...
@@ -217,7 +217,7 @@ error:
...
@@ -217,7 +217,7 @@ error:
return
session
;
return
session
;
}
}
in
t
vlc_tls_Read
(
vlc_tls_t
*
session
,
void
*
buf
,
size_t
len
,
bool
waitall
)
ssize_
t
vlc_tls_Read
(
vlc_tls_t
*
session
,
void
*
buf
,
size_t
len
,
bool
waitall
)
{
{
struct
pollfd
ufd
;
struct
pollfd
ufd
;
...
@@ -250,7 +250,7 @@ int vlc_tls_Read(vlc_tls_t *session, void *buf, size_t len, bool waitall)
...
@@ -250,7 +250,7 @@ int vlc_tls_Read(vlc_tls_t *session, void *buf, size_t len, bool waitall)
}
}
}
}
in
t
vlc_tls_Write
(
vlc_tls_t
*
session
,
const
void
*
buf
,
size_t
len
)
ssize_
t
vlc_tls_Write
(
vlc_tls_t
*
session
,
const
void
*
buf
,
size_t
len
)
{
{
struct
pollfd
ufd
;
struct
pollfd
ufd
;
...
...
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