Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
14c90980
Commit
14c90980
authored
Mar 04, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FreeRDP: support 1.1.0-beta2 API
Close #10832
parent
20e06550
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
9 deletions
+32
-9
modules/access/rdp.c
modules/access/rdp.c
+32
-9
No files found.
modules/access/rdp.c
View file @
14c90980
...
...
@@ -41,6 +41,22 @@
#include <freerdp/channels/channels.h>
#include <freerdp/gdi/gdi.h>
#if !defined(FREERDP_INTERFACE_VERSION)
# include <freerdp/version.h>
#endif
#if !defined(FREERDP_VERSION_MAJOR) || \
(defined(FREERDP_VERSION_MAJOR) && !(FREERDP_VERSION_MAJOR >= 1 && FREERDP_VERSION_MINOR >= 1 ))
# define SoftwareGdi sw_gdi
# define Fullscreen fullscreen
# define ServerHostname hostname
# define Username username
# define Password password
# define ServerPort port
# define EncryptionMethods encryption
# define ContextSize context_size
#endif
#include <errno.h>
#ifdef HAVE_POLL
# include <poll.h>
...
...
@@ -198,15 +214,15 @@ static bool preConnectHandler( freerdp *p_instance )
demux_sys_t
*
p_sys
=
p_vlccontext
->
p_demux
->
p_sys
;
/* Configure connexion */
p_instance
->
settings
->
sw_g
di
=
true
;
/* render in buffer */
p_instance
->
settings
->
f
ullscreen
=
true
;
p_instance
->
settings
->
h
ostname
=
strdup
(
p_sys
->
psz_hostname
);
p_instance
->
settings
->
u
sername
=
p_instance
->
settings
->
SoftwareG
di
=
true
;
/* render in buffer */
p_instance
->
settings
->
F
ullscreen
=
true
;
p_instance
->
settings
->
ServerH
ostname
=
strdup
(
p_sys
->
psz_hostname
);
p_instance
->
settings
->
U
sername
=
var_InheritString
(
p_vlccontext
->
p_demux
,
CFG_PREFIX
"user"
);
p_instance
->
settings
->
p
assword
=
p_instance
->
settings
->
P
assword
=
var_InheritString
(
p_vlccontext
->
p_demux
,
CFG_PREFIX
"password"
);
p_instance
->
settings
->
p
ort
=
p_sys
->
i_port
;
p_instance
->
settings
->
encryption
=
p_instance
->
settings
->
ServerP
ort
=
p_sys
->
i_port
;
p_instance
->
settings
->
EncryptionMethods
=
var_InheritBool
(
p_vlccontext
->
p_demux
,
CFG_PREFIX
"encrypt"
);
return
true
;
...
...
@@ -217,9 +233,16 @@ static bool postConnectHandler( freerdp *p_instance )
vlcrdp_context_t
*
p_vlccontext
=
(
vlcrdp_context_t
*
)
p_instance
->
context
;
msg_Dbg
(
p_vlccontext
->
p_demux
,
"connected to desktop %dx%d (%d bpp)"
,
#if (FREERDP_VERSION_MAJOR >= 1 && FREERDP_VERSION_MINOR >= 1 )
p_instance
->
settings
->
DesktopWidth
,
p_instance
->
settings
->
DesktopHeight
,
p_instance
->
settings
->
ColorDepth
#else
p_instance
->
settings
->
width
,
p_instance
->
settings
->
height
,
p_instance
->
settings
->
color_depth
);
p_instance
->
settings
->
color_depth
#endif
);
p_instance
->
update
->
DesktopResize
=
desktopResizeHandler
;
p_instance
->
update
->
BeginPaint
=
beginPaintHandler
;
...
...
@@ -415,7 +438,7 @@ static int Open( vlc_object_t *p_this )
p_sys
->
p_instance
->
Authenticate
=
authenticateHandler
;
/* Set up context handlers and let it be allocated */
p_sys
->
p_instance
->
context_s
ize
=
sizeof
(
vlcrdp_context_t
);
p_sys
->
p_instance
->
ContextS
ize
=
sizeof
(
vlcrdp_context_t
);
freerdp_context_new
(
p_sys
->
p_instance
);
vlcrdp_context_t
*
p_vlccontext
=
(
vlcrdp_context_t
*
)
p_sys
->
p_instance
->
context
;
...
...
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