FreeRDP
include/freerdp/client/cmdline.h
1 
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/types.h>
27 #include <freerdp/settings.h>
28 
29 #ifdef __cplusplus
30 extern "C"
31 {
32 #endif
33 
43  FREERDP_API int freerdp_client_settings_parse_command_line_arguments(rdpSettings* settings,
44  int argc, char** argv,
45  BOOL allowUnknown);
46 
63  FREERDP_API int freerdp_client_settings_parse_command_line_arguments_ex(
64  rdpSettings* settings, int argc, char** argv, BOOL allowUnknown,
65  COMMAND_LINE_ARGUMENT_A* args, size_t count,
66  int (*handle_option)(const COMMAND_LINE_ARGUMENT_A* arg, void* custom),
67  void* handle_userdata);
68 
69  FREERDP_API int freerdp_client_settings_command_line_status_print(rdpSettings* settings,
70  int status, int argc,
71  char** argv);
72  FREERDP_API int
73  freerdp_client_settings_command_line_status_print_ex(rdpSettings* settings, int status,
74  int argc, char** argv,
75  const COMMAND_LINE_ARGUMENT_A* custom);
76  FREERDP_API BOOL freerdp_client_load_addins(rdpChannels* channels, rdpSettings* settings);
77 
82  FREERDP_API void freerdp_client_warn_unmaintained(int argc, char* argv[]);
83 
88  FREERDP_API void freerdp_client_warn_experimental(int argc, char* argv[]);
89 
94  FREERDP_API void freerdp_client_warn_deprecated(int argc, char* argv[]);
95 
96  FREERDP_API BOOL freerdp_client_print_version(void);
97 
107  FREERDP_API BOOL freerdp_client_print_version_ex(int argc, char** argv);
108  FREERDP_API BOOL freerdp_client_print_buildconfig(void);
109 
120  FREERDP_API BOOL freerdp_client_print_buildconfig_ex(int argc, char** argv);
121  FREERDP_API BOOL freerdp_client_print_command_line_help(int argc, char** argv);
122  FREERDP_API BOOL freerdp_client_print_command_line_help_ex(
123  int argc, char** argv, const COMMAND_LINE_ARGUMENT_A* custom);
124 
125  FREERDP_API BOOL freerdp_parse_username(const char* username, char** user, char** domain);
126  FREERDP_API BOOL freerdp_parse_hostname(const char* hostname, char** host, int* port);
127  FREERDP_API BOOL freerdp_set_connection_type(rdpSettings* settings, UINT32 type);
128 
129  FREERDP_API BOOL freerdp_client_add_device_channel(rdpSettings* settings, size_t count,
130  const char* const* params);
131  FREERDP_API BOOL freerdp_client_add_static_channel(rdpSettings* settings, size_t count,
132  const char* const* params);
133  FREERDP_API BOOL freerdp_client_del_static_channel(rdpSettings* settings, const char* name);
134  FREERDP_API BOOL freerdp_client_add_dynamic_channel(rdpSettings* settings, size_t count,
135  const char* const* params);
136  FREERDP_API BOOL freerdp_client_del_dynamic_channel(rdpSettings* settings, const char* name);
137 
138 #ifdef __cplusplus
139 }
140 #endif
141 
142 #endif /* FREERDP_CLIENT_CMDLINE_H */