cmdline.h (2892B)
1/** 2 * FreeRDP: A Remote Desktop Protocol Implementation 3 * FreeRDP Client Command-Line Interface 4 * 5 * Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com> 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19 20#ifndef FREERDP_CLIENT_CMDLINE_H 21#define FREERDP_CLIENT_CMDLINE_H 22 23#include <winpr/cmdline.h> 24 25#include <freerdp/api.h> 26#include <freerdp/freerdp.h> 27 28#ifdef __cplusplus 29extern "C" 30{ 31#endif 32 33 FREERDP_API int freerdp_client_settings_parse_command_line_arguments(rdpSettings* settings, 34 int argc, char** argv, 35 BOOL allowUnknown); 36 FREERDP_API int freerdp_client_settings_command_line_status_print(rdpSettings* settings, 37 int status, int argc, 38 char** argv); 39 FREERDP_API int freerdp_client_settings_command_line_status_print_ex( 40 rdpSettings* settings, int status, int argc, char** argv, COMMAND_LINE_ARGUMENT_A* custom); 41 FREERDP_API BOOL freerdp_client_load_addins(rdpChannels* channels, rdpSettings* settings); 42 43 FREERDP_API BOOL freerdp_client_print_version(void); 44 FREERDP_API BOOL freerdp_client_print_buildconfig(void); 45 FREERDP_API BOOL freerdp_client_print_command_line_help(int argc, char** argv); 46 FREERDP_API BOOL freerdp_client_print_command_line_help_ex(int argc, char** argv, 47 COMMAND_LINE_ARGUMENT_A* custom); 48 49 FREERDP_API BOOL freerdp_parse_username(const char* username, char** user, char** domain); 50 FREERDP_API BOOL freerdp_parse_hostname(const char* hostname, char** host, int* port); 51 FREERDP_API BOOL freerdp_set_connection_type(rdpSettings* settings, UINT32 type); 52 53 FREERDP_API BOOL freerdp_client_add_device_channel(rdpSettings* settings, size_t count, 54 char** params); 55 FREERDP_API BOOL freerdp_client_add_static_channel(rdpSettings* settings, size_t count, 56 char** params); 57 FREERDP_API BOOL freerdp_client_add_dynamic_channel(rdpSettings* settings, size_t count, 58 char** params); 59 60#ifdef __cplusplus 61} 62#endif 63 64#endif /* FREERDP_CLIENT_CMDLINE_H */