Changeset 7aeb52cb in mainline
- Timestamp:
- 2021-10-25T00:32:45Z (3 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 01e9991
- Parents:
- f783081
- git-author:
- Jiri Svoboda <jiri@…> (2021-10-16 21:51:33)
- git-committer:
- jxsvoboda <5887334+jxsvoboda@…> (2021-10-25 00:32:45)
- Location:
- uspace/app/nav
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/nav/panel.c
rf783081 r7aeb52cb 98 98 99 99 rc = gfx_color_new_ega(0x0f, &panel->dir_color); 100 if (rc != EOK) 101 goto error; 102 103 rc = gfx_color_new_ega(0x0a, &panel->svc_color); 100 104 if (rc != EOK) 101 105 goto error; … … 116 120 if (panel->dir_color != NULL) 117 121 gfx_color_delete(panel->dir_color); 122 if (panel->svc_color != NULL) 123 gfx_color_delete(panel->svc_color); 118 124 ui_control_delete(panel->control); 119 125 free(panel); … … 131 137 gfx_color_delete(panel->act_border_color); 132 138 gfx_color_delete(panel->dir_color); 139 gfx_color_delete(panel->svc_color); 133 140 panel_clear_entries(panel); 134 141 ui_control_delete(panel->control); … … 169 176 else if (entry->isdir) 170 177 fmt.color = panel->dir_color; 178 else if (entry->svc != 0) 179 fmt.color = panel->svc_color; 171 180 else 172 181 fmt.color = panel->color; … … 375 384 } 376 385 386 /** Initialize panel entry attributes. 387 * 388 * @param attr Attributes 389 */ 390 void panel_entry_attr_init(panel_entry_attr_t *attr) 391 { 392 memset(attr, 0, sizeof(*attr)); 393 } 394 377 395 /** Destroy panel control. 378 396 * … … 427 445 * 428 446 * @param panel Panel 429 * @param name File name 430 * @param size File size 431 * @param isdir @c true iff the entry is a directory 447 * @param attr Entry attributes 432 448 * @return EOK on success or an error code 433 449 */ 434 errno_t panel_entry_append(panel_t *panel, const char *name, uint64_t size, 435 bool isdir) 450 errno_t panel_entry_append(panel_t *panel, panel_entry_attr_t *attr) 436 451 { 437 452 panel_entry_t *entry; … … 442 457 443 458 entry->panel = panel; 444 entry->name = str_dup( name);459 entry->name = str_dup(attr->name); 445 460 if (entry->name == NULL) { 446 461 free(entry); … … 448 463 } 449 464 450 entry->size = size; 451 entry->isdir = isdir; 465 entry->size = attr->size; 466 entry->isdir = attr->isdir; 467 entry->svc = attr->svc; 452 468 link_initialize(&entry->lentries); 453 469 list_append(&entry->lentries, &panel->entries); … … 469 485 list_remove(&entry->lentries); 470 486 --entry->panel->entries_cnt; 471 free( entry->name);487 free((char *) entry->name); 472 488 free(entry); 473 489 } … … 501 517 char newdir[256]; 502 518 char *ndir = NULL; 519 panel_entry_attr_t attr; 503 520 errno_t rc; 504 521 … … 523 540 if (str_cmp(ndir, "/") != 0) { 524 541 /* Need to add a synthetic up-dir entry */ 525 rc = panel_entry_append(panel, "..", 0, true); 542 panel_entry_attr_init(&attr); 543 attr.name = ".."; 544 attr.isdir = true; 545 546 rc = panel_entry_append(panel, &attr); 526 547 if (rc != EOK) 527 548 goto error; … … 537 558 } 538 559 539 rc = panel_entry_append(panel, dirent->d_name, finfo.size, 540 finfo.is_directory); 560 panel_entry_attr_init(&attr); 561 attr.name = dirent->d_name; 562 attr.size = finfo.size; 563 attr.isdir = finfo.is_directory; 564 attr.svc = finfo.service; 565 566 rc = panel_entry_append(panel, &attr); 541 567 if (rc != EOK) 542 568 goto error; -
uspace/app/nav/panel.h
rf783081 r7aeb52cb 58 58 extern errno_t panel_activate(panel_t *); 59 59 extern void panel_deactivate(panel_t *); 60 extern errno_t panel_entry_append(panel_t *, const char *, uint64_t, bool); 60 extern void panel_entry_attr_init(panel_entry_attr_t *); 61 extern errno_t panel_entry_append(panel_t *, panel_entry_attr_t *); 61 62 extern void panel_entry_delete(panel_entry_t *); 62 63 extern void panel_clear_entries(panel_t *); -
uspace/app/nav/test/panel.c
rf783081 r7aeb52cb 59 59 ui_wnd_params_t params; 60 60 panel_t *panel; 61 panel_entry_attr_t attr; 61 62 errno_t rc; 62 63 … … 73 74 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 74 75 75 rc = panel_entry_append(panel, "a", 1, false); 76 panel_entry_attr_init(&attr); 77 attr.name = "a"; 78 attr.size = 1; 79 80 rc = panel_entry_append(panel, &attr); 76 81 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 77 82 … … 320 325 { 321 326 panel_t *panel; 322 errno_t rc; 323 324 rc = panel_create(NULL, true, &panel); 325 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 326 327 rc = panel_entry_append(panel, "a", 1, false); 327 panel_entry_attr_t attr; 328 errno_t rc; 329 330 rc = panel_create(NULL, true, &panel); 331 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 332 333 panel_entry_attr_init(&attr); 334 335 attr.name = "a"; 336 attr.size = 1; 337 rc = panel_entry_append(panel, &attr); 328 338 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 329 339 330 340 PCUT_ASSERT_INT_EQUALS(1, list_count(&panel->entries)); 331 341 332 rc = panel_entry_append(panel, "b", 2, false); 342 attr.name = "b"; 343 attr.size = 2; 344 rc = panel_entry_append(panel, &attr); 333 345 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 334 346 … … 343 355 panel_t *panel; 344 356 panel_entry_t *entry; 345 errno_t rc; 346 347 rc = panel_create(NULL, true, &panel); 348 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 349 350 rc = panel_entry_append(panel, "a", 1, false); 351 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 352 353 rc = panel_entry_append(panel, "b", 2, false); 357 panel_entry_attr_t attr; 358 errno_t rc; 359 360 rc = panel_create(NULL, true, &panel); 361 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 362 363 attr.name = "a"; 364 attr.size = 1; 365 rc = panel_entry_append(panel, &attr); 366 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 367 368 attr.name = "b"; 369 attr.size = 2; 370 rc = panel_entry_append(panel, &attr); 354 371 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 355 372 … … 373 390 { 374 391 panel_t *panel; 375 errno_t rc; 376 377 rc = panel_create(NULL, true, &panel); 378 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 379 380 rc = panel_entry_append(panel, "a", 1, false); 381 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 382 383 rc = panel_entry_append(panel, "b", 2, false); 392 panel_entry_attr_t attr; 393 errno_t rc; 394 395 rc = panel_create(NULL, true, &panel); 396 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 397 398 panel_entry_attr_init(&attr); 399 attr.name = "a"; 400 attr.size = 1; 401 rc = panel_entry_append(panel, &attr); 402 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 403 404 attr.name = "a"; 405 attr.size = 2; 406 rc = panel_entry_append(panel, &attr); 384 407 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 385 408 … … 456 479 panel_t *panel; 457 480 panel_entry_t *entry; 458 errno_t rc; 459 460 rc = panel_create(NULL, true, &panel); 461 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 462 463 rc = panel_entry_append(panel, "b", 1, false); 464 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 465 466 rc = panel_entry_append(panel, "c", 3, false); 467 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 468 469 rc = panel_entry_append(panel, "a", 2, false); 481 panel_entry_attr_t attr; 482 errno_t rc; 483 484 rc = panel_create(NULL, true, &panel); 485 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 486 487 panel_entry_attr_init(&attr); 488 489 attr.name = "b"; 490 attr.size = 1; 491 rc = panel_entry_append(panel, &attr); 492 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 493 494 attr.name = "c"; 495 attr.size = 3; 496 rc = panel_entry_append(panel, &attr); 497 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 498 499 attr.name = "a"; 500 attr.size = 2; 501 rc = panel_entry_append(panel, &attr); 470 502 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 471 503 … … 493 525 panel_t *panel; 494 526 panel_entry_t *a, *b; 527 panel_entry_attr_t attr; 495 528 int rel; 496 529 errno_t rc; … … 499 532 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 500 533 501 rc = panel_entry_append(panel, "a", 2, false); 502 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 503 504 rc = panel_entry_append(panel, "b", 1, false); 534 panel_entry_attr_init(&attr); 535 536 attr.name = "a"; 537 attr.size = 2; 538 rc = panel_entry_append(panel, &attr); 539 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 540 541 attr.name = "b"; 542 attr.size = 1; 543 rc = panel_entry_append(panel, &attr); 505 544 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 506 545 … … 530 569 panel_t *panel; 531 570 panel_entry_t *entry; 532 errno_t rc; 533 534 rc = panel_create(NULL, true, &panel); 535 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 571 panel_entry_attr_t attr; 572 errno_t rc; 573 574 rc = panel_create(NULL, true, &panel); 575 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 576 577 panel_entry_attr_init(&attr); 536 578 537 579 entry = panel_first(panel); … … 539 581 540 582 /* Add one entry */ 541 rc = panel_entry_append(panel, "a", 1, false); 583 attr.name = "a"; 584 attr.size = 1; 585 rc = panel_entry_append(panel, &attr); 542 586 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 543 587 … … 549 593 550 594 /* Add another entry */ 551 rc = panel_entry_append(panel, "b", 2, false); 595 attr.name = "b"; 596 attr.size= 2; 597 rc = panel_entry_append(panel, &attr); 552 598 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 553 599 … … 566 612 panel_t *panel; 567 613 panel_entry_t *entry; 568 errno_t rc; 569 570 rc = panel_create(NULL, true, &panel); 571 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 614 panel_entry_attr_t attr; 615 errno_t rc; 616 617 rc = panel_create(NULL, true, &panel); 618 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 619 620 panel_entry_attr_init(&attr); 572 621 573 622 entry = panel_last(panel); … … 575 624 576 625 /* Add one entry */ 577 rc = panel_entry_append(panel, "a", 1, false); 626 attr.name = "a"; 627 attr.size = 1; 628 rc = panel_entry_append(panel, &attr); 578 629 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 579 630 … … 585 636 586 637 /* Add another entry */ 587 rc = panel_entry_append(panel, "b", 2, false); 638 attr.name = "b"; 639 attr.size = 2; 640 rc = panel_entry_append(panel, &attr); 588 641 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 589 642 … … 591 644 entry = panel_last(panel); 592 645 PCUT_ASSERT_NOT_NULL(entry); 646 attr.name = "b"; 647 attr.size = 2; 593 648 PCUT_ASSERT_STR_EQUALS("b", entry->name); 594 649 PCUT_ASSERT_INT_EQUALS(2, entry->size); … … 602 657 panel_t *panel; 603 658 panel_entry_t *entry; 604 errno_t rc; 605 606 rc = panel_create(NULL, true, &panel); 607 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 659 panel_entry_attr_t attr; 660 errno_t rc; 661 662 rc = panel_create(NULL, true, &panel); 663 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 664 665 panel_entry_attr_init(&attr); 608 666 609 667 /* Add one entry */ 610 rc = panel_entry_append(panel, "a", 1, false); 668 attr.name = "a"; 669 attr.size = 1; 670 rc = panel_entry_append(panel, &attr); 611 671 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 612 672 … … 619 679 620 680 /* Add another entry */ 621 rc = panel_entry_append(panel, "b", 2, false); 681 attr.name = "b"; 682 attr.size = 2; 683 rc = panel_entry_append(panel, &attr); 622 684 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 623 685 … … 639 701 panel_t *panel; 640 702 panel_entry_t *entry; 641 errno_t rc; 642 643 rc = panel_create(NULL, true, &panel); 644 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 703 panel_entry_attr_t attr; 704 errno_t rc; 705 706 rc = panel_create(NULL, true, &panel); 707 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 708 709 panel_entry_attr_init(&attr); 645 710 646 711 /* Add one entry */ 647 rc = panel_entry_append(panel, "a", 1, false); 712 attr.name = "a"; 713 attr.size = 1; 714 rc = panel_entry_append(panel, &attr); 648 715 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 649 716 … … 656 723 657 724 /* Add another entry */ 658 rc = panel_entry_append(panel, "b", 2, false); 725 attr.name = "b"; 726 attr.size = 2; 727 rc = panel_entry_append(panel, &attr); 659 728 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 660 729 … … 683 752 ui_wnd_params_t params; 684 753 panel_t *panel; 754 panel_entry_attr_t attr; 685 755 gfx_rect_t rect; 686 756 errno_t rc; … … 707 777 708 778 /* Add tree entries (more than page size, which is 2) */ 709 rc = panel_entry_append(panel, "a", 1, false); 710 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 711 712 rc = panel_entry_append(panel, "b", 2, false); 713 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 714 715 rc = panel_entry_append(panel, "c", 3, false); 779 780 panel_entry_attr_init(&attr); 781 782 attr.name = "a"; 783 attr.size = 1; 784 rc = panel_entry_append(panel, &attr); 785 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 786 787 attr.name = "b"; 788 attr.size = 2; 789 rc = panel_entry_append(panel, &attr); 790 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 791 792 attr.name = "c"; 793 attr.size = 3; 794 rc = panel_entry_append(panel, &attr); 716 795 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 717 796 … … 764 843 ui_wnd_params_t params; 765 844 panel_t *panel; 845 panel_entry_attr_t attr; 766 846 gfx_rect_t rect; 767 847 errno_t rc; … … 788 868 789 869 /* Add tree entries (more than page size, which is 2) */ 790 rc = panel_entry_append(panel, "a", 1, false); 791 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 792 793 rc = panel_entry_append(panel, "b", 2, false); 794 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 795 796 rc = panel_entry_append(panel, "c", 3, false); 870 871 panel_entry_attr_init(&attr); 872 873 attr.name = "a"; 874 attr.size = 1; 875 rc = panel_entry_append(panel, &attr); 876 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 877 878 attr.name = "b"; 879 attr.size = 2; 880 rc = panel_entry_append(panel, &attr); 881 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 882 883 attr.name = "c"; 884 attr.size = 3; 885 rc = panel_entry_append(panel, &attr); 797 886 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 798 887 … … 847 936 ui_wnd_params_t params; 848 937 panel_t *panel; 938 panel_entry_attr_t attr; 849 939 gfx_rect_t rect; 850 940 errno_t rc; … … 871 961 872 962 /* Add tree entries (more than page size, which is 2) */ 873 rc = panel_entry_append(panel, "a", 1, false); 874 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 875 876 rc = panel_entry_append(panel, "b", 2, false); 877 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 878 879 rc = panel_entry_append(panel, "c", 3, false); 963 964 panel_entry_attr_init(&attr); 965 966 attr.name = "a"; 967 attr.size = 1; 968 rc = panel_entry_append(panel, &attr); 969 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 970 971 attr.name = "b"; 972 attr.size = 2; 973 rc = panel_entry_append(panel, &attr); 974 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 975 976 attr.name = "c"; 977 attr.size = 3; 978 rc = panel_entry_append(panel, &attr); 880 979 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 881 980 … … 908 1007 ui_wnd_params_t params; 909 1008 panel_t *panel; 1009 panel_entry_attr_t attr; 910 1010 gfx_rect_t rect; 911 1011 errno_t rc; … … 932 1032 933 1033 /* Add tree entries (more than page size, which is 2) */ 934 rc = panel_entry_append(panel, "a", 1, false); 935 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 936 937 rc = panel_entry_append(panel, "b", 2, false); 938 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 939 940 rc = panel_entry_append(panel, "c", 3, false); 1034 1035 panel_entry_attr_init(&attr); 1036 1037 attr.name = "a"; 1038 attr.size = 1; 1039 rc = panel_entry_append(panel, &attr); 1040 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 1041 1042 attr.name = "b"; 1043 attr.size = 2; 1044 rc = panel_entry_append(panel, &attr); 1045 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 1046 1047 attr.name = "c"; 1048 attr.size = 3; 1049 rc = panel_entry_append(panel, &attr); 941 1050 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 942 1051 … … 970 1079 ui_wnd_params_t params; 971 1080 panel_t *panel; 1081 panel_entry_attr_t attr; 972 1082 gfx_rect_t rect; 973 1083 errno_t rc; … … 994 1104 995 1105 /* Add five entries (2 full pages, one partial) */ 996 rc = panel_entry_append(panel, "a", 1, false); 997 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 998 999 rc = panel_entry_append(panel, "b", 2, false); 1000 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 1001 1002 rc = panel_entry_append(panel, "c", 3, false); 1003 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 1004 1005 rc = panel_entry_append(panel, "d", 4, false); 1006 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 1007 1008 rc = panel_entry_append(panel, "e", 5, false); 1106 1107 panel_entry_attr_init(&attr); 1108 1109 attr.name = "a"; 1110 attr.size = 1; 1111 rc = panel_entry_append(panel, &attr); 1112 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 1113 1114 attr.name = "b"; 1115 attr.size = 2; 1116 rc = panel_entry_append(panel, &attr); 1117 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 1118 1119 attr.name = "c"; 1120 attr.size = 3; 1121 rc = panel_entry_append(panel, &attr); 1122 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 1123 1124 attr.name = "d"; 1125 attr.size = 4; 1126 rc = panel_entry_append(panel, &attr); 1127 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 1128 1129 attr.name = "e"; 1130 attr.size = 5; 1131 rc = panel_entry_append(panel, &attr); 1009 1132 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 1010 1133 … … 1058 1181 ui_wnd_params_t params; 1059 1182 panel_t *panel; 1183 panel_entry_attr_t attr; 1060 1184 gfx_rect_t rect; 1061 1185 errno_t rc; … … 1082 1206 1083 1207 /* Add five entries (2 full pages, one partial) */ 1084 rc = panel_entry_append(panel, "a", 1, false); 1085 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 1086 1087 rc = panel_entry_append(panel, "b", 2, false); 1088 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 1089 1090 rc = panel_entry_append(panel, "c", 3, false); 1091 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 1092 1093 rc = panel_entry_append(panel, "d", 4, false); 1094 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 1095 1096 rc = panel_entry_append(panel, "e", 5, false); 1208 1209 panel_entry_attr_init(&attr); 1210 1211 attr.name = "a"; 1212 attr.size = 1; 1213 rc = panel_entry_append(panel, &attr); 1214 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 1215 1216 attr.name = "b"; 1217 attr.size = 2; 1218 rc = panel_entry_append(panel, &attr); 1219 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 1220 1221 attr.name = "c"; 1222 attr.size = 3; 1223 rc = panel_entry_append(panel, &attr); 1224 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 1225 1226 attr.name = "d"; 1227 attr.size = 4; 1228 rc = panel_entry_append(panel, &attr); 1229 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 1230 1231 attr.name = "e"; 1232 attr.size = 5; 1233 rc = panel_entry_append(panel, &attr); 1097 1234 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 1098 1235 -
uspace/app/nav/types/panel.h
rf783081 r7aeb52cb 40 40 #include <gfx/color.h> 41 41 #include <gfx/coord.h> 42 #include <ipc/loc.h> 42 43 #include <ui/window.h> 43 44 #include <stdint.h> 45 46 /** Panel entry attributes */ 47 typedef struct { 48 /** File name */ 49 const char *name; 50 /** File size */ 51 uint64_t size; 52 /** @c true iff entry is a directory */ 53 bool isdir; 54 /** Service number for service special entries */ 55 service_id_t svc; 56 } panel_entry_attr_t; 44 57 45 58 /** Panel entry */ … … 55 68 /** @c true iff entry is a directory */ 56 69 bool isdir; 70 /** Service number for service special entries */ 71 service_id_t svc; 57 72 } panel_entry_t; 58 73 … … 82 97 /** Directory-type entry color */ 83 98 gfx_color_t *dir_color; 99 100 /** Service-type entry color */ 101 gfx_color_t *svc_color; 84 102 85 103 /** Panel entries (list of panel_entry_t) */
Note:
See TracChangeset
for help on using the changeset viewer.