2012-11-06 07:11:13 +04:00
|
|
|
/**
|
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
|
|
|
* FreeRDP Client Command-Line Interface
|
|
|
|
*
|
|
|
|
* Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2012-12-14 09:25:48 +04:00
|
|
|
#ifndef FREERDP_CLIENT_CMDLINE_H
|
|
|
|
#define FREERDP_CLIENT_CMDLINE_H
|
2012-11-06 07:11:13 +04:00
|
|
|
|
2017-05-04 15:46:58 +03:00
|
|
|
#include <winpr/cmdline.h>
|
|
|
|
|
2012-11-06 07:11:13 +04:00
|
|
|
#include <freerdp/api.h>
|
|
|
|
#include <freerdp/freerdp.h>
|
|
|
|
|
2013-01-20 06:54:53 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-03-16 12:15:37 +03:00
|
|
|
FREERDP_API int freerdp_client_settings_parse_command_line_arguments(
|
2017-05-04 15:46:58 +03:00
|
|
|
rdpSettings* settings, int argc, char** argv, BOOL allowUnknown);
|
|
|
|
FREERDP_API int freerdp_client_settings_command_line_status_print(
|
|
|
|
rdpSettings* settings, int status, int argc, char** argv);
|
|
|
|
FREERDP_API int freerdp_client_settings_command_line_status_print_ex(
|
|
|
|
rdpSettings* settings, int status, int argc, char** argv,
|
|
|
|
COMMAND_LINE_ARGUMENT_A* custom);
|
2016-02-01 17:09:51 +03:00
|
|
|
FREERDP_API BOOL freerdp_client_load_addins(rdpChannels* channels, rdpSettings* settings);
|
2012-12-05 21:12:18 +04:00
|
|
|
|
2016-02-01 17:09:51 +03:00
|
|
|
FREERDP_API BOOL freerdp_client_print_version(void);
|
|
|
|
FREERDP_API BOOL freerdp_client_print_buildconfig(void);
|
|
|
|
FREERDP_API BOOL freerdp_client_print_command_line_help(int argc, char** argv);
|
2017-05-04 15:46:58 +03:00
|
|
|
FREERDP_API BOOL freerdp_client_print_command_line_help_ex(
|
|
|
|
int argc, char** argv, COMMAND_LINE_ARGUMENT_A* custom);
|
2012-11-06 07:11:13 +04:00
|
|
|
|
2018-03-08 15:46:46 +03:00
|
|
|
FREERDP_API BOOL freerdp_parse_username(const char* username, char** user, char** domain);
|
|
|
|
FREERDP_API BOOL freerdp_parse_hostname(const char* hostname, char** host, int* port);
|
2019-01-29 18:22:46 +03:00
|
|
|
FREERDP_API BOOL freerdp_set_connection_type(rdpSettings* settings, UINT32 type);
|
2012-11-26 23:31:31 +04:00
|
|
|
|
2016-02-01 17:09:51 +03:00
|
|
|
FREERDP_API BOOL freerdp_client_add_device_channel(rdpSettings* settings, int count, char** params);
|
|
|
|
FREERDP_API BOOL freerdp_client_add_static_channel(rdpSettings* settings, int count, char** params);
|
2017-05-04 15:46:58 +03:00
|
|
|
FREERDP_API BOOL freerdp_client_add_dynamic_channel(rdpSettings* settings, int count,
|
|
|
|
char** params);
|
2012-12-05 23:00:49 +04:00
|
|
|
|
2013-01-20 06:54:53 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2012-12-14 09:25:48 +04:00
|
|
|
#endif /* FREERDP_CLIENT_CMDLINE_H */
|