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
0f667408
Commit
0f667408
authored
Feb 07, 2003
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved files to include; moved a file to examples/
parent
6b7cdeb9
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
55 additions
and
270 deletions
+55
-270
Makefile
Makefile
+13
-64
Makefile
contrib/Makefile
+29
-2
zippy.c
contrib/zippy.c
+3
-3
1instance.c
examples/1instance.c
+0
-0
pnmshow24.c
examples/pnmshow24.c
+4
-4
default8x16.h
include/default8x16.h
+0
-0
keysym.h
include/keysym.h
+1
-1
rfb.h
include/rfb.h
+4
-0
rfbproto.h
include/rfbproto.h
+0
-0
main.c
main.c
+1
-1
radon.h
radon.h
+0
-195
No files found.
Makefile
View file @
0f667408
INCLUDES
=
-I
.
INCLUDES
=
-I
.
-Iinclude
VNCSERVERLIB
=
-L
.
-lvncserver
-L
/usr/local/lib
-lz
-ljpeg
#CXX=
...
...
@@ -16,12 +16,10 @@ LINK=gcc
#EXTRAINCLUDES=-I/usr/X11R6/include
# Uncomment these two lines to enable use of PThreads
#PTHREADDEF = -DHAVE_PTHREADS
#PTHREADLIB = -lpthread
# Comment the following line to disable the use of 3 Bytes/Pixel.
# The code for 3 Bytes/Pixel is not very efficient!
FLAG24
=
-DALLOW24BPP
OPTFLAGS
=
-g
-Wall
-pedantic
#OPTFLAGS=-O2 -Wall
...
...
@@ -30,10 +28,6 @@ RANLIB=ranlib
# for Mac OS X
OSX_LIBS
=
-framework
ApplicationServices
-framework
Carbon
-framework
IOKit
# for x11vnc
#XLIBS = -L/usr/X11R6/lib -lXtst -lXext -lX11
XLIBS
=
-L
/usr/X11R6/lib
-L
/usr/lib32
-lXtst
-lXext
-lX11
ifdef
CXX
ZRLE_SRCS
=
zrle.cc rdr/FdInStream.cxx rdr/FdOutStream.cxx rdr/InStream.cxx
\
...
...
@@ -48,8 +42,8 @@ LINK=$(CXX)
endif
CFLAGS
=
$(OPTFLAGS)
$(
PTHREADDEF)
$(FLAG24)
$(INCLUDES)
$(EXTRAINCLUDES)
$(ZRLE_DEF)
-DBACKCHANNEL
CXXFLAGS
=
$(OPTFLAGS)
$(
PTHREADDEF)
$(FLAG24)
$(INCLUDES)
$(EXTRAINCLUDES)
$(ZRLE_DEF)
-DBACKCHANNEL
CFLAGS
=
$(OPTFLAGS)
$(
INCLUDES)
$(EXTRAINCLUDES)
CXXFLAGS
=
$(OPTFLAGS)
$(
INCLUDES)
$(EXTRAINCLUDES)
LIBS
=
$(LDFLAGS)
$(VNCSERVERLIB)
$(PTHREADLIB)
$(EXTRALIBS)
SOURCES
=
main.c rfbserver.c sraRegion.c auth.c sockets.c
\
...
...
@@ -62,9 +56,13 @@ OBJS=main.o rfbserver.o sraRegion.o auth.o sockets.o \
draw.o selbox.o d3des.o vncauth.o cargs.o
$(ZRLE_OBJS)
INSTALLHEADER
=
rfb.h rfbproto.h sraRegion.h keysym.h
all
:
example pnmshow storepasswd
all
:
libvncserver.a all_examples
all_examples
:
cd
examples
&&
make
all_examples
:
example pnmshow x11vnc x11vnc_static sratest blooptest pnmshow24 fontsel vncev zippy storepasswd
all_contrib
:
cd
contrib
&&
make
install_OSX
:
OSXvnc-server
cp
OSXvnc-server storepasswd ../OSXvnc/build/OSXvnc.app/Contents/MacOS
...
...
@@ -72,7 +70,7 @@ install_OSX: OSXvnc-server
.c.o
:
$(CC)
$(CFLAGS)
-c
$<
$(OBJS)
pnmshow24.o pnmshow.o example.o mac.o blooptest.o
:
Makefile
rfb.h
$(OBJS)
:
Makefile include/
rfb.h
libvncserver.a
:
$(OBJS)
$(AR)
cru
$@
$(OBJS)
...
...
@@ -80,59 +78,10 @@ libvncserver.a: $(OBJS)
translate.o
:
translate.c tableinit24.c tableinitcmtemplate.c tableinittctemplate.c tabletrans24template.c tabletranstemplate.c
example
:
example.o libvncserver.a
$(LINK)
-o
example example.o
$(LIBS)
pnmshow
:
pnmshow.o libvncserver.a
$(LINK)
-o
pnmshow pnmshow.o
$(LIBS)
mac.o
:
mac.c 1instance.c
OSXvnc-server
:
mac.o libvncserver.a
$(LINK)
-o
OSXvnc-server mac.o
$(LIBS)
$(OSX_LIBS)
x11vnc.o
:
contrib/x11vnc.c rfb.h 1instance.c Makefile
$(CC)
$(CFLAGS)
-I
.
-c
-o
x11vnc.o contrib/x11vnc.c
x11vnc
:
x11vnc.o libvncserver.a
$(LINK)
-g
-o
x11vnc x11vnc.o
$(LIBS)
$(XLIBS)
x11vnc_static
:
x11vnc.o libvncserver.a
$(LINK)
-o
x11vnc_static x11vnc.o libvncserver.a /usr/lib/libz.a /usr/lib/libjpeg.a
$(XLIBS)
#$(LIBS) $(XLIBS)
storepasswd
:
storepasswd.o d3des.o vncauth.o
$(LINK)
-o
storepasswd storepasswd.o d3des.o vncauth.o
sratest
:
sratest.o
$(LINK)
-o
sratest sratest.o
sratest.o
:
sraRegion.c
$(CC)
$(CFLAGS)
-DSRA_TEST
-c
-o
sratest.o sraRegion.c
blooptest
:
blooptest.o libvncserver.a
$(LINK)
-o
blooptest blooptest.o
$(LIBS)
blooptest.o
:
example.c rfb.h
$(CC)
$(CFLAGS)
-DBACKGROUND_LOOP_TEST
-c
-o
blooptest.o example.c
pnmshow24
:
pnmshow24.o libvncserver.a
$(LINK)
-o
pnmshow24 pnmshow24.o
$(LIBS)
fontsel
:
fontsel.o libvncserver.a
$(LINK)
-o
fontsel fontsel.o
-L
.
-lvncserver
-lz
-ljpeg
vncev
:
vncev.o libvncserver.a
$(LINK)
-o
vncev vncev.o
-L
.
-lvncserver
-lz
-ljpeg
# Example from Justin
zippy
:
zippy.o libvncserver.a
$(LINK)
-o
zippy zippy.o
-L
.
-lvncserver
-lz
-ljpeg
clean
:
rm
-f
$(OBJS)
*
~ core
"#"
*
*
.bak
*
.orig
storepasswd.o
\
x11vnc.o mac.o example.o pnmshow.o pnmshow24.o sratest.o
\
blooptest.o
$(OBJS)
rm
-f
$(OBJS)
*
~ core
"#"
*
*
.bak
*
.orig
cd
examples
&&
make clean
cd
contrib
&&
make clean
realclean
:
clean
rm
-f
OSXvnc-server storepasswd example pnmshow libvncserver.a
...
...
contrib/Makefile
View file @
0f667408
all
:
cd
..
;
make x11vnc zippy
CFLAGS
=
-I
.
-I
../include
VNCSERVERLIB
=
-L
..
-lvncserver
-L
/usr/local/lib
-lz
-ljpeg
-lpthread
LDFLAGS
=
$(VNCSERVERLIB)
ifdef
CXX
LINK
=
$(CXX)
else
LINK
=
$(CC)
endif
# for x11vnc
#XLIBS = -L/usr/X11R6/lib -lXtst -lXext -lX11
XLIBS
=
-L
/usr/X11R6/lib
-L
/usr/lib32
-lXtst
-lXext
-lX11
OBJS
=
*
.o
all
:
x11vnc zippy
x11vnc.o
:
x11vnc.c ../include/rfb.h ../examples/1instance.c Makefile
$(CC)
$(CFLAGS)
-I
.
-c
-o
x11vnc.o x11vnc.c
x11vnc
:
x11vnc.o ../libvncserver.a
$(LINK)
-g
-o
x11vnc x11vnc.o
$(LDFLAGS)
$(XLIBS)
# Example from Justin
zippy
:
zippy.o ../libvncserver.a
$(LINK)
-o
zippy zippy.o
$(LDFLAGS)
clean
:
rm
-f
$(OBJS)
*
~ core
"#"
*
*
.bak
*
.orig
contrib/zippy.c
View file @
0f667408
...
...
@@ -2,7 +2,7 @@
#include <stdlib.h>
#include <rfb.h>
#include <keysym.h>
#include "
radon
.h"
#include "
default8x16
.h"
int
maxx
=
400
,
maxy
=
400
,
bpp
=
4
;
/* odd maxx doesn't work (vncviewer bug) */
...
...
@@ -146,7 +146,7 @@ void on_key_press (Bool down,KeySym key,rfbClientPtr cl)
case
XK_B
:
rfbUndrawCursor
(
cl
->
screen
);
blank_framebuffer
(
cl
->
screen
->
frameBuffer
,
0
,
0
,
maxx
,
maxy
);
rfbDrawString
(
cl
->
screen
,
&
radon
Font
,
20
,
maxy
-
20
,
"Hello, World!"
,
0xffffff
);
rfbDrawString
(
cl
->
screen
,
&
default8x16
Font
,
20
,
maxy
-
20
,
"Hello, World!"
,
0xffffff
);
rfbMarkRectAsModified
(
cl
->
screen
,
0
,
0
,
maxx
,
maxy
);
fprintf
(
stderr
,
"Framebuffer blanked
\n
"
);
break
;
...
...
@@ -165,7 +165,7 @@ void on_key_press (Bool down,KeySym key,rfbClientPtr cl)
case
XK_C
:
case
XK_c
:
rfbUndrawCursor
(
cl
->
screen
);
rfbDrawString
(
cl
->
screen
,
&
radon
Font
,
20
,
100
,
"Hello, World!"
,
0xffffff
);
rfbDrawString
(
cl
->
screen
,
&
default8x16
Font
,
20
,
100
,
"Hello, World!"
,
0xffffff
);
rfbMarkRectAsModified
(
cl
->
screen
,
0
,
0
,
maxx
,
maxy
);
break
;
default:
...
...
1instance.c
→
examples/
1instance.c
View file @
0f667408
File moved
examples/pnmshow24.c
View file @
0f667408
#ifndef ALLOW24BPP
#error "I need the ALLOW24BPP flag to work"
#endif
#include <stdio.h>
#include "rfb.h"
#include "keysym.h"
#ifndef ALLOW24BPP
#error "I need the ALLOW24BPP flag to work"
#endif
void
HandleKey
(
Bool
down
,
KeySym
key
,
rfbClientPtr
cl
)
{
if
(
down
&&
(
key
==
XK_Escape
||
key
==
'q'
||
key
==
'Q'
))
...
...
default8x16.h
→
include/
default8x16.h
View file @
0f667408
File moved
keysym.h
→
include/
keysym.h
100755 → 100644
View file @
0f667408
...
...
@@ -1083,7 +1083,7 @@ SOFTWARE.
#define XK_Greek_EPSILONaccent 0x7a2
#define XK_Greek_ETAaccent 0x7a3
#define XK_Greek_IOTAaccent 0x7a4
#define XK_Greek_IOTAdi
aeresis
0x7a5
#define XK_Greek_IOTAdi
eresis
0x7a5
#define XK_Greek_OMICRONaccent 0x7a7
#define XK_Greek_UPSILONaccent 0x7a8
#define XK_Greek_UPSILONdieresis 0x7a9
...
...
rfb.h
→
include/
rfb.h
View file @
0f667408
...
...
@@ -39,6 +39,10 @@ extern "C"
#include "keysym.h"
/* TODO: this stuff has to go into autoconf */
#define HAVE_PTHREADS
#define ALLOW24BPP
#define HAVE_ZRLE
#define BACKCHANNEL
typedef
unsigned
char
CARD8
;
typedef
unsigned
short
CARD16
;
typedef
unsigned
int
CARD32
;
...
...
rfbproto.h
→
include/
rfbproto.h
View file @
0f667408
File moved
main.c
View file @
0f667408
...
...
@@ -69,7 +69,7 @@ rfbLog(const char *format, ...)
va_start
(
args
,
format
);
time
(
&
log_clock
);
strftime
(
buf
,
255
,
"%d/%m/%Y %
T
"
,
localtime
(
&
log_clock
));
strftime
(
buf
,
255
,
"%d/%m/%Y %
X
"
,
localtime
(
&
log_clock
));
fprintf
(
stderr
,
buf
);
vfprintf
(
stderr
,
format
,
args
);
...
...
radon.h
deleted
100644 → 0
View file @
6b7cdeb9
This diff is collapsed.
Click to expand it.
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