Changeset 7b558301bb858fa00e0197fdc47779a5cac9411a
- Timestamp:
- 12/15/07 16:54:14
(9 months ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1197734054 +0000
- git-parent:
[bb62471ff0cb881a2ac2da1b36758d35ac970250]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1197734054 +0000
- Message:
Hide internal settings
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| racea7c4 |
r7b55830 |
|
| 653 | 653 | { |
|---|
| 654 | 654 | VLCConfigControl *o_control = nil; |
|---|
| 655 | | if( p_item->b_internal == VLC_TRUE ) |
|---|
| 656 | | { |
|---|
| 657 | | break; |
|---|
| 658 | | } |
|---|
| 659 | 655 | o_control = [VLCConfigControl newControl:p_item |
|---|
| 660 | 656 | withView:o_view]; |
|---|
| r77ea924 |
r7b55830 |
|
| 994 | 994 | break; |
|---|
| 995 | 995 | |
|---|
| 996 | | if( p_item->b_internal == VLC_TRUE ) continue; |
|---|
| 997 | | |
|---|
| 998 | 996 | ConfigControl *control = |
|---|
| 999 | 997 | CreateConfigControl( VLC_OBJECT(p_intf), |
|---|
| rcc4cca2 |
r7b55830 |
|
| 795 | 795 | { |
|---|
| 796 | 796 | unsigned size = module->confsize; |
|---|
| | 797 | module_config_t *config = malloc (size * sizeof (*config)); |
|---|
| 797 | 798 | |
|---|
| 798 | 799 | assert (psize != NULL); |
|---|
| 799 | | *psize = size; |
|---|
| 800 | | |
|---|
| 801 | | module_config_t *config = malloc (size * sizeof (*config)); |
|---|
| 802 | | if (config) |
|---|
| 803 | | memcpy (config, module->p_config, size * sizeof (*config)); |
|---|
| | 800 | *psize = 0; |
|---|
| | 801 | |
|---|
| | 802 | for (unsigned i = 0, j = 0; i < size; i++) |
|---|
| | 803 | { |
|---|
| | 804 | if (module->p_config[i].b_internal) |
|---|
| | 805 | continue; |
|---|
| | 806 | |
|---|
| | 807 | if (config != NULL) |
|---|
| | 808 | memcpy (config + j, module->p_config + i, sizeof (*config)); |
|---|
| | 809 | *psize = j; |
|---|
| | 810 | j++; |
|---|
| | 811 | } |
|---|
| 804 | 812 | |
|---|
| 805 | 813 | return config; |
|---|