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:
24
net.h
24
net.h
@@ -255,24 +255,24 @@ extern int get_search_drive_vektor(SEARCH_VECTOR_ENTRY *vec);
|
||||
extern int set_search_drive_vektor(SEARCH_VECTOR_ENTRY *vec);
|
||||
|
||||
/********* ncpcall.h ***********/
|
||||
extern int ncp_16_02(int dirhandle,
|
||||
extern int ncp16_02_get_directory_entry(int dirhandle,
|
||||
uint8 *path,
|
||||
int *sub_dir,
|
||||
uint8 *resultpath,
|
||||
uint32 *creattime,
|
||||
uint32 *owner_id);
|
||||
|
||||
extern int ncp_14_46(uint32 *obj_id);
|
||||
extern int ncp_17_02(int module, int debuglevel);
|
||||
extern int ncp_17_14(uint8 *objname, uint16 objtyp, uint8 *password);
|
||||
extern int ncp_17_17(uint8 *key);
|
||||
extern int ncp_17_18(uint8 *cryptkey, uint8 *objname, uint16 objtyp);
|
||||
extern uint32 ncp_17_35(uint8 *objname, uint16 objtyp);
|
||||
extern int ncp_17_36(uint32 obj_id, uint8 *objname, uint16 *objtyp);
|
||||
extern int ncp_17_40(uint8 *objname, uint16 objtyp, uint8 *password,
|
||||
extern int ncp17_46_get_bindery_access_level(uint32 *obj_id);
|
||||
extern int ncp17_02_set_debug_level(int module, int debuglevel);
|
||||
extern int ncp17_14_login_object_unencrypted(uint8 *objname, uint16 objtyp, uint8 *password);
|
||||
extern int ncp17_17_get_encryption_key(uint8 *key);
|
||||
extern int ncp17_18_keyed_object_login(uint8 *cryptkey, uint8 *objname, uint16 objtyp);
|
||||
extern uint32 ncp17_35_get_bindery_object_id(uint8 *objname, uint16 objtyp);
|
||||
extern int ncp17_36_get_bindery_object_name(uint32 obj_id, uint8 *objname, uint16 *objtyp);
|
||||
extern int ncp17_40_change_password_unencrypted(uint8 *objname, uint16 objtyp, uint8 *password,
|
||||
uint8 *newpassword);
|
||||
|
||||
extern int ncp_17_4b(uint8 *cryptkey, uint8 *objname, uint16 objtyp,
|
||||
extern int ncp17_4b_keyed_change_password(uint8 *cryptkey, uint8 *objname, uint16 objtyp,
|
||||
int passwx, uint8 *newpassword);
|
||||
|
||||
/* map.c */
|
||||
@@ -315,8 +315,8 @@ extern int func_creator(int argc, char *argv[], int mode);
|
||||
extern int func_ncopy (int argc, char *argv[], int mode);
|
||||
|
||||
|
||||
extern int ncp_17_37(uint32 last_id, uint16 objtyp, uint8 *pattern,
|
||||
extern int ncp17_37_scan_bindery_object(uint32 last_id, uint16 objtyp, uint8 *pattern,
|
||||
BINDERY_OBJECT *target);
|
||||
extern int ncp_17_3d(uint16 objtyp, uint8 *objname, int segment,
|
||||
extern int ncp17_3d_read_property_value(uint16 objtyp, uint8 *objname, int segment,
|
||||
uint8 *propname, NW_PROPERTY *target);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user