| 49 | #include "token.h" |
| 50 | |
| 51 | static int rot_has_ext_token(ROT *rot, hamlib_token_t token) |
| 52 | { |
| 53 | const int *ext_tokens = rot->caps->ext_tokens; |
| 54 | int i; |
| 55 | |
| 56 | if (ext_tokens == NULL) |
| 57 | { |
| 58 | // Assume that all listed extfuncs/extlevels/extparms are supported if |
| 59 | // the ext_tokens list is not defined to preserve backwards-compatibility |
| 60 | return 1; |
| 61 | } |
| 62 | |
| 63 | for (i = 0; ext_tokens[i] != TOK_BACKEND_NONE; i++) |
| 64 | { |
| 65 | if (ext_tokens[i] == token) |
| 66 | { |
| 67 | return 1; |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | return 0; |
| 72 | } |
| 73 | |
| 74 | |
| 75 | /** |
no outgoing calls
no test coverage detected