element 1295 lib/utilunix.c const char *element = first_element; element 1308 lib/utilunix.c if (*element == '\0') element 1309 lib/utilunix.c element = va_arg (args, char *); element 1315 lib/utilunix.c tmp_element = g_strdup (element); element 1317 lib/utilunix.c element = va_arg (args, char *); element 1323 lib/utilunix.c if (!IS_PATH_SEP (path->str[path->len - 1]) && element != NULL) element 1329 lib/utilunix.c while (element != NULL); element 345 lib/vfs/path.c vfs_path_element_t *element; element 354 lib/vfs/path.c element = g_new0 (vfs_path_element_t, 1); element 355 lib/vfs/path.c element->class = class; element 358 lib/vfs/path.c element->path = vfs_translate_path_n (local); element 361 lib/vfs/path.c element->encoding = vfs_get_encoding (local, -1); element 362 lib/vfs/path.c element->dir.converter = element 363 lib/vfs/path.c (element->encoding != NULL) ? str_crt_conv_from (element->encoding) : INVALID_CONV; element 371 lib/vfs/path.c vfs_path_url_split (element, url_params); element 375 lib/vfs/path.c element->vfs_prefix = g_strdup (op); element 377 lib/vfs/path.c g_array_prepend_val (vpath->path, element); element 381 lib/vfs/path.c element = g_new0 (vfs_path_element_t, 1); element 382 lib/vfs/path.c element->class = g_ptr_array_index (vfs__classes_list, 0); element 383 lib/vfs/path.c element->path = vfs_translate_path_n (path); element 386 lib/vfs/path.c element->encoding = vfs_get_encoding (path, -1); element 387 lib/vfs/path.c element->dir.converter = element 388 lib/vfs/path.c (element->encoding != NULL) ? str_crt_conv_from (element->encoding) : INVALID_CONV; element 390 lib/vfs/path.c g_array_prepend_val (vpath->path, element); element 410 lib/vfs/path.c vfs_path_element_t *element; element 437 lib/vfs/path.c element = g_new0 (vfs_path_element_t, 1); element 438 lib/vfs/path.c element->class = vfs_prefix_to_class (vfs_prefix_start); element 439 lib/vfs/path.c element->vfs_prefix = g_strdup (vfs_prefix_start); element 443 lib/vfs/path.c if (element->class != NULL && (element->class->flags & VFSF_REMOTE) != 0) element 449 lib/vfs/path.c element->path = g_strdup (""); element 452 lib/vfs/path.c element->path = vfs_translate_path_n (slash_pointer + 1); element 454 lib/vfs/path.c element->encoding = vfs_get_encoding (slash_pointer, -1); element 458 lib/vfs/path.c vfs_path_url_split (element, url_delimiter); element 462 lib/vfs/path.c element->path = vfs_translate_path_n (url_delimiter); element 464 lib/vfs/path.c element->encoding = vfs_get_encoding (url_delimiter, -1); element 468 lib/vfs/path.c element->dir.converter = element 469 lib/vfs/path.c (element->encoding != NULL) ? str_crt_conv_from (element->encoding) : INVALID_CONV; element 471 lib/vfs/path.c g_array_prepend_val (vpath->path, element); element 482 lib/vfs/path.c element = g_new0 (vfs_path_element_t, 1); element 483 lib/vfs/path.c element->class = g_ptr_array_index (vfs__classes_list, 0); element 484 lib/vfs/path.c element->path = vfs_translate_path_n (path); element 486 lib/vfs/path.c element->encoding = vfs_get_encoding (path, -1); element 487 lib/vfs/path.c element->dir.converter = element 488 lib/vfs/path.c (element->encoding != NULL) ? str_crt_conv_from (element->encoding) : INVALID_CONV; element 490 lib/vfs/path.c g_array_prepend_val (vpath->path, element); element 507 lib/vfs/path.c vfs_path_tokens_add_class_info (const vfs_path_element_t *element, GString *ret_tokens, element 510 lib/vfs/path.c if (((element->class->flags & VFSF_LOCAL) == 0 || ret_tokens->len > 0) element 518 lib/vfs/path.c g_string_append (ret_tokens, element->vfs_prefix); element 521 lib/vfs/path.c url_str = vfs_path_build_url_params_str (element, TRUE); element 531 lib/vfs/path.c if (element->encoding != NULL) element 536 lib/vfs/path.c g_string_append (ret_tokens, element->encoding); element 575 lib/vfs/path.c (element->class->flags & VFSF_LOCAL) != 0) \ element 623 lib/vfs/path.c const vfs_path_element_t *element; element 626 lib/vfs/path.c element = vfs_path_get_by_index (vpath, element_index); element 627 lib/vfs/path.c if (element->vfs_prefix != NULL) element 634 lib/vfs/path.c g_string_append (buffer, element->vfs_prefix); element 637 lib/vfs/path.c url_str = vfs_path_build_url_params_str (element, (flags & VPF_STRIP_PASSWORD) == 0); element 647 lib/vfs/path.c if ((flags & VPF_RECODE) == 0 && vfs_path_element_need_cleanup_converter (element)) element 655 lib/vfs/path.c g_string_append (buffer, element->encoding); element 663 lib/vfs/path.c str_vfs_convert_from (element->dir.converter, element->path, recode_buffer); element 669 lib/vfs/path.c vfs_append_from_path (element->path, is_relative); element 849 lib/vfs/path.c vfs_path_element_clone (const vfs_path_element_t *element) element 853 lib/vfs/path.c new_element->user = g_strdup (element->user); element 854 lib/vfs/path.c new_element->password = g_strdup (element->password); element 855 lib/vfs/path.c new_element->host = g_strdup (element->host); element 856 lib/vfs/path.c new_element->ipv6 = element->ipv6; element 857 lib/vfs/path.c new_element->port = element->port; element 858 lib/vfs/path.c new_element->path = g_strdup (element->path); element 859 lib/vfs/path.c new_element->class = element->class; element 860 lib/vfs/path.c new_element->vfs_prefix = g_strdup (element->vfs_prefix); element 862 lib/vfs/path.c new_element->encoding = g_strdup (element->encoding); element 863 lib/vfs/path.c if (vfs_path_element_need_cleanup_converter (element) && element->encoding != NULL) element 864 lib/vfs/path.c new_element->dir.converter = str_crt_conv_from (element->encoding); element 866 lib/vfs/path.c new_element->dir.converter = element->dir.converter; element 868 lib/vfs/path.c new_element->dir.info = element->dir.info; element 882 lib/vfs/path.c vfs_path_element_free (vfs_path_element_t *element) element 884 lib/vfs/path.c if (element == NULL) element 887 lib/vfs/path.c g_free (element->user); element 888 lib/vfs/path.c g_free (element->password); element 889 lib/vfs/path.c g_free (element->host); element 890 lib/vfs/path.c g_free (element->path); element 891 lib/vfs/path.c g_free (element->vfs_prefix); element 894 lib/vfs/path.c g_free (element->encoding); element 896 lib/vfs/path.c if (vfs_path_element_need_cleanup_converter (element)) element 897 lib/vfs/path.c str_close_conv (element->dir.converter); element 900 lib/vfs/path.c g_free (element); element 991 lib/vfs/path.c vfs_path_element_t *element; element 999 lib/vfs/path.c element = (vfs_path_element_t *) vfs_path_get_by_index (vpath, element_index); element 1001 lib/vfs/path.c vfs_path_element_free (element); element 1080 lib/vfs/path.c vfs_path_element_need_cleanup_converter (const vfs_path_element_t *element) element 1082 lib/vfs/path.c return (element->dir.converter != str_cnv_from_term && element->dir.converter != INVALID_CONV); element 1150 lib/vfs/path.c const vfs_path_element_t *element; element 1153 lib/vfs/path.c element = vfs_path_get_by_index (vpath, element_index); element 1156 lib/vfs/path.c mc_config_set_string_raw (cpath, groupname, "path", element->path); element 1157 lib/vfs/path.c mc_config_set_string_raw (cpath, groupname, "class-name", element->class->name); element 1159 lib/vfs/path.c mc_config_set_string_raw (cpath, groupname, "encoding", element->encoding); element 1161 lib/vfs/path.c mc_config_set_string_raw (cpath, groupname, "vfs_prefix", element->vfs_prefix); element 1163 lib/vfs/path.c mc_config_set_string_raw (cpath, groupname, "user", element->user); element 1164 lib/vfs/path.c mc_config_set_string_raw (cpath, groupname, "password", element->password); element 1165 lib/vfs/path.c mc_config_set_string_raw (cpath, groupname, "host", element->host); element 1166 lib/vfs/path.c if (element->port != 0) element 1167 lib/vfs/path.c mc_config_set_int (cpath, groupname, "port", element->port); element 1203 lib/vfs/path.c vfs_path_element_t *element; element 1223 lib/vfs/path.c element = g_new0 (vfs_path_element_t, 1); element 1224 lib/vfs/path.c element->class = eclass; element 1225 lib/vfs/path.c element->path = mc_config_get_string_raw (cpath, groupname, "path", NULL); element 1228 lib/vfs/path.c element->encoding = mc_config_get_string_raw (cpath, groupname, "encoding", NULL); element 1229 lib/vfs/path.c element->dir.converter = element 1230 lib/vfs/path.c (element->encoding != NULL) ? str_crt_conv_from (element->encoding) : INVALID_CONV; element 1233 lib/vfs/path.c element->vfs_prefix = mc_config_get_string_raw (cpath, groupname, "vfs_prefix", NULL); element 1235 lib/vfs/path.c element->user = mc_config_get_string_raw (cpath, groupname, "user", NULL); element 1236 lib/vfs/path.c element->password = mc_config_get_string_raw (cpath, groupname, "password", NULL); element 1237 lib/vfs/path.c element->host = mc_config_get_string_raw (cpath, groupname, "host", NULL); element 1238 lib/vfs/path.c element->port = mc_config_get_int (cpath, groupname, "port", 0); element 1240 lib/vfs/path.c vpath->path = g_array_append_val (vpath->path, element); element 1383 lib/vfs/path.c const vfs_path_element_t *element; element 1386 lib/vfs/path.c element = vfs_path_get_by_index (vpath, element_index); element 1388 lib/vfs/path.c for (prev_token = element->path; (token = strchr (prev_token, PATH_SEP)) != NULL; element 1449 lib/vfs/path.c const vfs_path_element_t *element; element 1453 lib/vfs/path.c element = vfs_path_get_by_index (vpath, element_index); element 1454 lib/vfs/path.c path_tokens = g_strsplit (element->path, PATH_SEP_STR, -1); element 1464 lib/vfs/path.c vfs_path_tokens_add_class_info (element, ret_tokens, element_tokens); element 1479 lib/vfs/path.c vfs_path_tokens_add_class_info (element, ret_tokens, element_tokens); element 1525 lib/vfs/path.c vfs_path_build_url_params_str (const vfs_path_element_t *element, gboolean keep_password) element 1529 lib/vfs/path.c if (element == NULL) element 1534 lib/vfs/path.c if (element->user != NULL) element 1535 lib/vfs/path.c g_string_append (buffer, element->user); element 1537 lib/vfs/path.c if (element->password != NULL && keep_password) element 1540 lib/vfs/path.c g_string_append (buffer, element->password); element 1543 lib/vfs/path.c if (element->host != NULL) element 1545 lib/vfs/path.c if ((element->user != NULL) || (element->password != NULL)) element 1547 lib/vfs/path.c if (element->ipv6) element 1549 lib/vfs/path.c g_string_append (buffer, element->host); element 1550 lib/vfs/path.c if (element->ipv6) element 1553 lib/vfs/path.c if (element->port != 0) element 1554 lib/vfs/path.c g_string_append_printf (buffer, ":%d", element->port); element 1574 lib/vfs/path.c vfs_path_element_build_pretty_path_str (const vfs_path_element_t *element) element 1578 lib/vfs/path.c pretty_path = g_string_new (element->class->prefix); element 1581 lib/vfs/path.c url_params = vfs_path_build_url_params_str (element, FALSE); element 1588 lib/vfs/path.c if (!IS_PATH_SEP (*element->path)) element 1591 lib/vfs/path.c return g_string_append (pretty_path, element->path); element 79 lib/vfs/path.h vfs_path_element_t *vfs_path_element_clone (const vfs_path_element_t * element); element 80 lib/vfs/path.h void vfs_path_element_free (vfs_path_element_t * element); element 86 lib/vfs/path.h gboolean vfs_path_element_need_cleanup_converter (const vfs_path_element_t * element); element 93 lib/vfs/path.h GString *vfs_path_build_url_params_str (const vfs_path_element_t * element, gboolean keep_password); element 94 lib/vfs/path.h GString *vfs_path_element_build_pretty_path_str (const vfs_path_element_t * element); element 104 lib/vfs/path.h vfs_path_element_valid (const vfs_path_element_t *element) element 106 lib/vfs/path.h return (element != NULL && element->class != NULL); element 114 lib/vfs/path.h const vfs_path_element_t *element; element 118 lib/vfs/path.h element = vfs_path_get_by_index (vpath, -1); element 119 lib/vfs/path.h return (element != NULL) ? element->path : NULL; element 127 lib/vfs/path.h const vfs_path_element_t *element; element 131 lib/vfs/path.h element = vfs_path_get_by_index (vpath, -1); element 132 lib/vfs/path.h return (element != NULL) ? element->class : NULL; element 3471 src/filemanager/panel.c const vfs_path_element_t *element; element 3473 src/filemanager/panel.c element = vfs_path_get_by_index (new_dir_vpath, 0); element 3474 src/filemanager/panel.c if (strcmp (element->path, "-") == 0) element 291 tests/lib/vfs/vfs_path_string_convert.c const vfs_path_element_t *element; element 298 tests/lib/vfs/vfs_path_string_convert.c element = vfs_path_get_by_index (vpath, -1); element 301 tests/lib/vfs/vfs_path_string_convert.c mctest_assert_str_eq (element->path, ""); element 302 tests/lib/vfs/vfs_path_string_convert.c mctest_assert_not_null (element->encoding);