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

Function list_models

tests/rigctl_parse.c:2170–2188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2168
2169
2170void list_models()
2171{
2172 int status;
2173
2174 rig_load_all_backends();
2175
2176 printf(" Rig # Mfg Model Version Status Macro\n");
2177 status = rig_list_foreach(hash_model_list, NULL);
2178
2179 if (status != RIG_OK)
2180 {
2181 fprintf(stderr, "rig_list_foreach: error = %s \n", rigerror2(status));
2182 exit(2);
2183 }
2184
2185 hash_sort_by_model_id();
2186 print_model_list();
2187 hash_delete_all();
2188}
2189
2190/*
2191 * static int (f)(RIG *rig, FILE *fout, int interactive, const struct test_table *cmd,

Callers

nothing calls this directly

Calls 6

rig_load_all_backendsFunction · 0.85
rig_list_foreachFunction · 0.85
rigerror2Function · 0.85
hash_sort_by_model_idFunction · 0.70
print_model_listFunction · 0.70
hash_delete_allFunction · 0.70

Tested by

no test coverage detected