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:
@@ -132,10 +132,10 @@ static uint32 lookup_object_id(char *name)
|
||||
|
||||
strmaxcpy(namebuf, name, sizeof(namebuf) - 1);
|
||||
upstr(namebuf);
|
||||
id = ncp_17_35(namebuf, BINDERY_USER);
|
||||
id = ncp17_35_get_bindery_object_id(namebuf, BINDERY_USER);
|
||||
if (id)
|
||||
return(id);
|
||||
id = ncp_17_35(namebuf, BINDERY_GROUP);
|
||||
id = ncp17_35_get_bindery_object_id(namebuf, BINDERY_GROUP);
|
||||
return(id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user