void freerdp_client_parse_rdp_file_option_unicode(rdpFile* file, WCHAR* option) { char* optionA = NULL; ConvertFromUnicode(CP_UTF8, 0, option, -1, &optionA, 0, NULL, NULL); freerdp_client_add_option(file, optionA); free(optionA); }
static BOOL freerdp_client_parse_rdp_file_option_unicode(rdpFile* file, const WCHAR* option, int index) { char* optionA = NULL; BOOL ret; ConvertFromUnicode(CP_UTF8, 0, option, -1, &optionA, 0, NULL, NULL); if (!optionA) return FALSE; ret = freerdp_client_add_option(file, optionA); free(optionA); return ret; }
rdpFile* freerdp_client_rdp_file_new() { rdpFile* file; file = (rdpFile*) malloc(sizeof(rdpFile)); if (file) { FillMemory(file, sizeof(rdpFile), 0xFF); file->argc = 0; file->argSize = 32; file->argv = (char**) malloc(file->argSize * sizeof(char*)); freerdp_client_add_option(file, "freerdp"); } return file; }
rdpFile* freerdp_client_rdp_file_new() { rdpFile* file; file = (rdpFile*) malloc(sizeof(rdpFile)); if (file) { FillMemory(file, sizeof(rdpFile), 0xFF); file->lineCount = 0; file->lineSize = 32; file->lines = (rdpFileLine*) calloc(file->lineSize, sizeof(rdpFileLine)); if (!file->lines) { free(file); return NULL; } file->argc = 0; file->argSize = 32; file->argv = (char**) calloc(file->argSize, sizeof(char*)); if (!file->argv) { free(file->lines); free(file); return NULL; } if (!freerdp_client_add_option(file, "freerdp")) { free(file->argv); free(file->lines); free(file); return NULL; } } return file; }
void freerdp_client_parse_rdp_file_option_ascii(rdpFile* file, char* option) { freerdp_client_add_option(file, option); }
static BOOL freerdp_client_parse_rdp_file_option_ascii(rdpFile* file, char* option, int index) { return freerdp_client_add_option(file, option); }