MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / rot_has_ext_token

Function rot_has_ext_token

src/rot_ext.c:51–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49#include "token.h"
50
51static 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/**

Callers 3

rot_ext_func_foreachFunction · 0.85
rot_ext_level_foreachFunction · 0.85
rot_ext_parm_foreachFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected