Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
35246edd
Commit
35246edd
authored
Nov 10, 2010
by
George Kiagiadakis
Committed by
Johannes Schindelin
Apr 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation in c89 mode.
Signed-off-by:
Johannes Schindelin
<
johannes.schindelin@gmx.de
>
parent
d8fca9d0
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
9 deletions
+13
-9
zywrletemplate.c
common/zywrletemplate.c
+5
-1
auth.c
libvncserver/auth.c
+1
-1
rfbserver.c
libvncserver/rfbserver.c
+3
-3
scale.c
libvncserver/scale.c
+1
-1
scale.h
libvncserver/scale.h
+1
-1
rfb.h
rfb/rfb.h
+2
-2
No files found.
common/zywrletemplate.c
View file @
35246edd
...
@@ -143,7 +143,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
...
@@ -143,7 +143,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifdef WIN32
#ifdef WIN32
#define InlineX __inline
#define InlineX __inline
#else
#else
#define InlineX inline
# ifndef __STRICT_ANSI__
# define InlineX inline
# else
# define InlineX
# endif
#endif
#endif
#ifdef ZYWRLE_ENCODE
#ifdef ZYWRLE_ENCODE
...
...
libvncserver/auth.c
View file @
35246edd
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
#include <rfb/rfb.h>
#include <rfb/rfb.h>
/* RFB 3.8 clients are well informed */
/* RFB 3.8 clients are well informed */
void
rfbClientSendString
(
rfbClientPtr
cl
,
char
*
reason
);
void
rfbClientSendString
(
rfbClientPtr
cl
,
c
onst
c
har
*
reason
);
/*
/*
...
...
libvncserver/rfbserver.c
View file @
35246edd
...
@@ -636,7 +636,7 @@ rfbProcessClientProtocolVersion(rfbClientPtr cl)
...
@@ -636,7 +636,7 @@ rfbProcessClientProtocolVersion(rfbClientPtr cl)
void
void
rfbClientSendString
(
rfbClientPtr
cl
,
char
*
reason
)
rfbClientSendString
(
rfbClientPtr
cl
,
c
onst
c
har
*
reason
)
{
{
char
*
buf
;
char
*
buf
;
int
len
=
strlen
(
reason
);
int
len
=
strlen
(
reason
);
...
@@ -661,7 +661,7 @@ rfbClientSendString(rfbClientPtr cl, char *reason)
...
@@ -661,7 +661,7 @@ rfbClientSendString(rfbClientPtr cl, char *reason)
void
void
rfbClientConnFailed
(
rfbClientPtr
cl
,
rfbClientConnFailed
(
rfbClientPtr
cl
,
char
*
reason
)
c
onst
c
har
*
reason
)
{
{
char
*
buf
;
char
*
buf
;
int
len
=
strlen
(
reason
);
int
len
=
strlen
(
reason
);
...
@@ -1104,7 +1104,7 @@ rfbBool rfbSendTextChatMessage(rfbClientPtr cl, uint32_t length, char *buffer)
...
@@ -1104,7 +1104,7 @@ rfbBool rfbSendTextChatMessage(rfbClientPtr cl, uint32_t length, char *buffer)
int
DB
=
1
;
int
DB
=
1
;
rfbBool
rfbSendFileTransferMessage
(
rfbClientPtr
cl
,
uint8_t
contentType
,
uint8_t
contentParam
,
uint32_t
size
,
uint32_t
length
,
char
*
buffer
)
rfbBool
rfbSendFileTransferMessage
(
rfbClientPtr
cl
,
uint8_t
contentType
,
uint8_t
contentParam
,
uint32_t
size
,
uint32_t
length
,
c
onst
c
har
*
buffer
)
{
{
rfbFileTransferMsg
ft
;
rfbFileTransferMsg
ft
;
ft
.
type
=
rfbFileTransfer
;
ft
.
type
=
rfbFileTransfer
;
...
...
libvncserver/scale.c
View file @
35246edd
...
@@ -82,7 +82,7 @@ int ScaleY(rfbScreenInfoPtr from, rfbScreenInfoPtr to, int y)
...
@@ -82,7 +82,7 @@ int ScaleY(rfbScreenInfoPtr from, rfbScreenInfoPtr to, int y)
/* So, all of the encodings point to the ->screen->frameBuffer,
/* So, all of the encodings point to the ->screen->frameBuffer,
* We need to change this!
* We need to change this!
*/
*/
void
rfbScaledCorrection
(
rfbScreenInfoPtr
from
,
rfbScreenInfoPtr
to
,
int
*
x
,
int
*
y
,
int
*
w
,
int
*
h
,
char
*
function
)
void
rfbScaledCorrection
(
rfbScreenInfoPtr
from
,
rfbScreenInfoPtr
to
,
int
*
x
,
int
*
y
,
int
*
w
,
int
*
h
,
c
onst
c
har
*
function
)
{
{
double
x1
,
y1
,
w1
,
h1
,
x2
,
y2
,
w2
,
h2
;
double
x1
,
y1
,
w1
,
h1
,
x2
,
y2
,
w2
,
h2
;
double
scaleW
=
((
double
)
to
->
width
)
/
((
double
)
from
->
width
);
double
scaleW
=
((
double
)
to
->
width
)
/
((
double
)
from
->
width
);
...
...
libvncserver/scale.h
View file @
35246edd
int
ScaleX
(
rfbScreenInfoPtr
from
,
rfbScreenInfoPtr
to
,
int
x
);
int
ScaleX
(
rfbScreenInfoPtr
from
,
rfbScreenInfoPtr
to
,
int
x
);
int
ScaleY
(
rfbScreenInfoPtr
from
,
rfbScreenInfoPtr
to
,
int
y
);
int
ScaleY
(
rfbScreenInfoPtr
from
,
rfbScreenInfoPtr
to
,
int
y
);
void
rfbScaledCorrection
(
rfbScreenInfoPtr
from
,
rfbScreenInfoPtr
to
,
int
*
x
,
int
*
y
,
int
*
w
,
int
*
h
,
char
*
function
);
void
rfbScaledCorrection
(
rfbScreenInfoPtr
from
,
rfbScreenInfoPtr
to
,
int
*
x
,
int
*
y
,
int
*
w
,
int
*
h
,
c
onst
c
har
*
function
);
void
rfbScaledScreenUpdateRect
(
rfbScreenInfoPtr
screen
,
rfbScreenInfoPtr
ptr
,
int
x0
,
int
y0
,
int
w0
,
int
h0
);
void
rfbScaledScreenUpdateRect
(
rfbScreenInfoPtr
screen
,
rfbScreenInfoPtr
ptr
,
int
x0
,
int
y0
,
int
w0
,
int
h0
);
void
rfbScaledScreenUpdate
(
rfbScreenInfoPtr
screen
,
int
x1
,
int
y1
,
int
x2
,
int
y2
);
void
rfbScaledScreenUpdate
(
rfbScreenInfoPtr
screen
,
int
x1
,
int
y1
,
int
x2
,
int
y2
);
rfbScreenInfoPtr
rfbScaledScreenAllocate
(
rfbClientPtr
cl
,
int
width
,
int
height
);
rfbScreenInfoPtr
rfbScaledScreenAllocate
(
rfbClientPtr
cl
,
int
width
,
int
height
);
...
...
rfb/rfb.h
View file @
35246edd
...
@@ -704,7 +704,7 @@ extern rfbClientPtr rfbNewUDPClient(rfbScreenInfoPtr rfbScreen);
...
@@ -704,7 +704,7 @@ extern rfbClientPtr rfbNewUDPClient(rfbScreenInfoPtr rfbScreen);
extern
rfbClientPtr
rfbReverseConnection
(
rfbScreenInfoPtr
rfbScreen
,
char
*
host
,
int
port
);
extern
rfbClientPtr
rfbReverseConnection
(
rfbScreenInfoPtr
rfbScreen
,
char
*
host
,
int
port
);
extern
void
rfbClientConnectionGone
(
rfbClientPtr
cl
);
extern
void
rfbClientConnectionGone
(
rfbClientPtr
cl
);
extern
void
rfbProcessClientMessage
(
rfbClientPtr
cl
);
extern
void
rfbProcessClientMessage
(
rfbClientPtr
cl
);
extern
void
rfbClientConnFailed
(
rfbClientPtr
cl
,
char
*
reason
);
extern
void
rfbClientConnFailed
(
rfbClientPtr
cl
,
c
onst
c
har
*
reason
);
extern
void
rfbNewUDPConnection
(
rfbScreenInfoPtr
rfbScreen
,
int
sock
);
extern
void
rfbNewUDPConnection
(
rfbScreenInfoPtr
rfbScreen
,
int
sock
);
extern
void
rfbProcessUDPInput
(
rfbScreenInfoPtr
rfbScreen
);
extern
void
rfbProcessUDPInput
(
rfbScreenInfoPtr
rfbScreen
);
extern
rfbBool
rfbSendFramebufferUpdate
(
rfbClientPtr
cl
,
sraRegionPtr
updateRegion
);
extern
rfbBool
rfbSendFramebufferUpdate
(
rfbClientPtr
cl
,
sraRegionPtr
updateRegion
);
...
@@ -720,7 +720,7 @@ extern void rfbSendBell(rfbScreenInfoPtr rfbScreen);
...
@@ -720,7 +720,7 @@ extern void rfbSendBell(rfbScreenInfoPtr rfbScreen);
extern
char
*
rfbProcessFileTransferReadBuffer
(
rfbClientPtr
cl
,
uint32_t
length
);
extern
char
*
rfbProcessFileTransferReadBuffer
(
rfbClientPtr
cl
,
uint32_t
length
);
extern
rfbBool
rfbSendFileTransferChunk
(
rfbClientPtr
cl
);
extern
rfbBool
rfbSendFileTransferChunk
(
rfbClientPtr
cl
);
extern
rfbBool
rfbSendDirContent
(
rfbClientPtr
cl
,
int
length
,
char
*
buffer
);
extern
rfbBool
rfbSendDirContent
(
rfbClientPtr
cl
,
int
length
,
char
*
buffer
);
extern
rfbBool
rfbSendFileTransferMessage
(
rfbClientPtr
cl
,
uint8_t
contentType
,
uint8_t
contentParam
,
uint32_t
size
,
uint32_t
length
,
char
*
buffer
);
extern
rfbBool
rfbSendFileTransferMessage
(
rfbClientPtr
cl
,
uint8_t
contentType
,
uint8_t
contentParam
,
uint32_t
size
,
uint32_t
length
,
c
onst
c
har
*
buffer
);
extern
char
*
rfbProcessFileTransferReadBuffer
(
rfbClientPtr
cl
,
uint32_t
length
);
extern
char
*
rfbProcessFileTransferReadBuffer
(
rfbClientPtr
cl
,
uint32_t
length
);
extern
rfbBool
rfbProcessFileTransfer
(
rfbClientPtr
cl
,
uint8_t
contentType
,
uint8_t
contentParam
,
uint32_t
size
,
uint32_t
length
);
extern
rfbBool
rfbProcessFileTransfer
(
rfbClientPtr
cl
,
uint8_t
contentType
,
uint8_t
contentParam
,
uint32_t
size
,
uint32_t
length
);
...
...
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