| 97:daf2b3d79cb8 | 98:147a593d3ceb |
|---|---|
| 42 | 42 |
| 43 bool libtu_do_setparam_str(const char *str, bool val) | 43 bool libtu_do_setparam_str(const char *str, bool val) |
| 44 { | 44 { |
| 45 return libtu_do_setparam(libtu_string_to_setparam(str), val); | 45 return libtu_do_setparam(libtu_string_to_setparam(str), val); |
| 46 } | 46 } |
| 47 | |
| 48 | |
| 49 int libtu_setparam_invert(int sp) | |
| 50 { | |
| 51 switch(sp){ | |
| 52 case SETPARAM_SET: | |
| 53 return SETPARAM_UNSET; | |
| 54 case SETPARAM_UNSET: | |
| 55 return SETPARAM_SET; | |
| 56 default: | |
| 57 return sp; | |
| 58 } | |
| 59 } | |
| 60 |