Commit 7972d9a18fba31d3f7da71aab8f10c10b84c3dd4
- Diff rendering mode:
- inline
- side by side
tools/xsetwacom.c
(7 / 2)
|   | |||
| 48 | 48 | ||
| 49 | 49 | enum prop_flags { | |
| 50 | 50 | PROP_FLAG_BOOLEAN = 1, | |
| 51 | PROP_FLAG_READONLY = 2 | ||
| 51 | PROP_FLAG_READONLY = 2, | ||
| 52 | PROP_FLAG_WRITEONLY = 4 | ||
| 52 | 53 | }; | |
| 53 | 54 | ||
| 54 | 55 | typedef struct _param | |
| … | … | ||
| 507 | 507 | .prop_name = WACOM_PROP_TABLET_AREA, | |
| 508 | 508 | .prop_format = 32, | |
| 509 | 509 | .prop_offset = 0, | |
| 510 | .prop_flags = PROP_FLAG_WRITEONLY, | ||
| 510 | 511 | .set_func = set_xydefault, | |
| 511 | .get_func = not_implemented, | ||
| 512 | 512 | }, | |
| 513 | 513 | { | |
| 514 | 514 | .name = "mmonitor", | |
| … | … | ||
| 1875 | 1875 | if (!param) | |
| 1876 | 1876 | { | |
| 1877 | 1877 | printf("Unknown parameter name '%s'.\n", argv[1]); | |
| 1878 | return; | ||
| 1879 | } else if (param->prop_flags & PROP_FLAG_WRITEONLY) | ||
| 1880 | { | ||
| 1881 | printf("'%s' is a write-only option.\n", argv[1]); | ||
| 1878 | 1882 | return; | |
| 1879 | 1883 | } else | |
| 1880 | 1884 | { |

