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
dae41e0b
Commit
dae41e0b
authored
Apr 30, 2002
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more mac
parent
5d090960
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
Makefile
Makefile
+1
-1
mac.c
mac.c
+5
-5
No files found.
Makefile
View file @
dae41e0b
...
@@ -23,7 +23,7 @@ RANLIB=ranlib
...
@@ -23,7 +23,7 @@ RANLIB=ranlib
LIBS
=
$(LDFLAGS)
$(VNCSERVERLIB)
$(PTHREADLIB)
$(EXTRALIBS)
LIBS
=
$(LDFLAGS)
$(VNCSERVERLIB)
$(PTHREADLIB)
$(EXTRALIBS)
# for Mac OS X
# for Mac OS X
OSX_LIBS
=
-framework
ApplicationServices
-framework
Carbon
OSX_LIBS
=
-framework
ApplicationServices
-framework
Carbon
-framework
IOKit
# for x11vnc
# for x11vnc
XLIBS
=
-L
/usr/X11R6/lib
-lX11
-lXext
-lXtst
XLIBS
=
-L
/usr/X11R6/lib
-lX11
-lXext
-lXtst
...
...
mac.c
View file @
dae41e0b
...
@@ -211,7 +211,7 @@ rfbDimmingShutdown(void)
...
@@ -211,7 +211,7 @@ rfbDimmingShutdown(void)
rfbScreenInfoPtr
rfbScreen
;
rfbScreenInfoPtr
rfbScreen
;
void
s
hutdown
(
rfbClientPtr
cl
);
void
rfbS
hutdown
(
rfbClientPtr
cl
);
/* some variables to enable special behaviour */
/* some variables to enable special behaviour */
int
startTime
=
-
1
,
maxSecsToConnect
=
0
;
int
startTime
=
-
1
,
maxSecsToConnect
=
0
;
...
@@ -512,7 +512,7 @@ refreshCallback(CGRectCount count, const CGRect *rectArray, void *ignore)
...
@@ -512,7 +512,7 @@ refreshCallback(CGRectCount count, const CGRect *rectArray, void *ignore)
#endif
#endif
if
(
startTime
>
0
&&
time
(
0
)
>
startTime
+
maxSecsToConnect
)
if
(
startTime
>
0
&&
time
(
0
)
>
startTime
+
maxSecsToConnect
)
s
hutdown
(
0
);
rfbS
hutdown
(
0
);
for
(
i
=
0
;
i
<
count
;
i
++
)
for
(
i
=
0
;
i
<
count
;
i
++
)
rfbMarkRectAsModified
(
rfbScreen
,
rfbMarkRectAsModified
(
rfbScreen
,
...
@@ -523,13 +523,13 @@ refreshCallback(CGRectCount count, const CGRect *rectArray, void *ignore)
...
@@ -523,13 +523,13 @@ refreshCallback(CGRectCount count, const CGRect *rectArray, void *ignore)
void
clientGone
(
rfbClientPtr
cl
)
void
clientGone
(
rfbClientPtr
cl
)
{
{
s
hutdown
(
cl
);
rfbS
hutdown
(
cl
);
}
}
enum
rfbNewClientAction
newClient
(
rfbClientPtr
cl
)
enum
rfbNewClientAction
newClient
(
rfbClientPtr
cl
)
{
{
if
(
startTime
>
0
&&
time
(
0
)
>
startTime
+
maxSecsToConnect
)
if
(
startTime
>
0
&&
time
(
0
)
>
startTime
+
maxSecsToConnect
)
s
hutdown
(
cl
);
rfbS
hutdown
(
cl
);
if
(
disconnectAfterFirstClient
)
if
(
disconnectAfterFirstClient
)
cl
->
clientGoneHook
=
clientGone
;
cl
->
clientGoneHook
=
clientGone
;
...
@@ -596,7 +596,7 @@ int main(int argc,char *argv[])
...
@@ -596,7 +596,7 @@ int main(int argc,char *argv[])
return
(
0
);
/* never ... */
return
(
0
);
/* never ... */
}
}
void
s
hutdown
(
rfbClientPtr
cl
)
void
rfbS
hutdown
(
rfbClientPtr
cl
)
{
{
rfbScreenCleanup
(
rfbScreen
);
rfbScreenCleanup
(
rfbScreen
);
rfbDimmingShutdown
();
rfbDimmingShutdown
();
...
...
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