ncpcalls: use descriptive names for NCP wrapper functions
Rename the low-level NCP wrapper functions in ncpcall.c and net.h to include both the NCP function/subfunction number and the operation they perform. This keeps the numeric protocol reference visible for comparison with SDK documentation and MARS-NWE logs, while making call sites easier to understand. Update all callers to use the new names. No behavior change.
This commit is contained in:
4
slist.c
4
slist.c
@@ -93,7 +93,7 @@ int func_slist(int argc, char *argv[], int mode)
|
||||
|
||||
upstr(pattern);
|
||||
|
||||
while ((result = ncp_17_37(last_id, NCP_BINDERY_FSERVER,
|
||||
while ((result = ncp17_37_scan_bindery_object(last_id, NCP_BINDERY_FSERVER,
|
||||
pattern, &obj)) == 0) {
|
||||
NW_PROPERTY prop;
|
||||
|
||||
@@ -109,7 +109,7 @@ int func_slist(int argc, char *argv[], int mode)
|
||||
|
||||
fprintf(stdout, "%-47s", obj.object_name);
|
||||
|
||||
if (!ncp_17_3d(NCP_BINDERY_FSERVER, obj.object_name,
|
||||
if (!ncp17_3d_read_property_value(NCP_BINDERY_FSERVER, obj.object_name,
|
||||
1, "NET_ADDRESS", &prop)) {
|
||||
print_net_node_status(prop.value, found == 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user