ncpcalls: rename remaining C32 transport symbols

Rename the remaining C32-prefixed transport helpers, probe helpers, types and
constants to protocol-oriented NCP names.

This removes implementation-oriented c32/C32 naming from the shared NCP API and
transport layer while keeping the current c32ncp.c/c32ncp.h file names until
the later ncpapi.c/ncpapi.h rename. The new names avoid conflicts by using
ncp_* helper names and NCP_* type/constant prefixes.

No behavior change.
This commit is contained in:
Mario Fetka
2026-05-29 11:32:09 +02:00
parent 9e89f85622
commit 40e7ebf939
11 changed files with 132 additions and 132 deletions

26
ncopy.c
View File

@@ -114,7 +114,7 @@ static void ncopy_debug_ul(char *step, unsigned long value)
}
static void ncopy_debug_handle6(char *step, C32_NWFILE_HANDLE6 *h)
static void ncopy_debug_handle6(char *step, NCP_FILE_HANDLE6 *h)
{
if (ncopy_debug_enabled() && h) {
fprintf(stdout,
@@ -383,11 +383,11 @@ static int ncopy_ncp74_copy_chunk(uint8 src_handle[6], uint8 dst_handle[6],
uint32 src_offset, uint32 dst_offset,
uint32 count, uint32 *copied);
static int ncopy_copy_data_c32_server(char *src, char *dst, unsigned long size)
static int ncopy_copy_data_ncp_server(char *src, char *dst, unsigned long size)
{
C32_NWFILE_HANDLE6 sh;
C32_NWFILE_HANDLE6 dh;
C32_NDIR_INFO sinfo;
NCP_FILE_HANDLE6 sh;
NCP_FILE_HANDLE6 dh;
NCP_NDIR_INFO sinfo;
char srcdir[260];
char srcname[80];
char dstdir[260];
@@ -440,9 +440,9 @@ static int ncopy_copy_data_c32_server(char *src, char *dst, unsigned long size)
rc = ncp87_01_open_create_entry(srcname,
src_dhandle,
C32_OC_MODE_OPEN,
NCP_OC_MODE_OPEN,
0,
C32_DAR_READ | C32_DAR_DENY_WRITE,
NCP_DAR_READ | NCP_DAR_DENY_WRITE,
0x8006,
&sh,
NULL,
@@ -459,11 +459,11 @@ static int ncopy_copy_data_c32_server(char *src, char *dst, unsigned long size)
rc = ncp87_01_open_create_entry(dstname,
dst_dhandle,
C32_OC_MODE_OPEN |
C32_OC_MODE_TRUNCATE |
C32_OC_MODE_CREATE,
NCP_OC_MODE_OPEN |
NCP_OC_MODE_TRUNCATE |
NCP_OC_MODE_CREATE,
create_attrs,
C32_DAR_WRITE | C32_DAR_DENY_READ,
NCP_DAR_WRITE | NCP_DAR_DENY_READ,
0x8006,
&dh,
NULL,
@@ -720,7 +720,7 @@ static int ncopy_copy_data_direct_ncp87(char *src, char *dst, unsigned long size
uint32 off = 0;
uint32 todo;
uint32 done;
C32_NDIR_INFO sinfo;
NCP_NDIR_INFO sinfo;
char srcdir[260], srcname[80];
uint8 src_dhandle = 0;
int src_allocated = 0;
@@ -1321,7 +1321,7 @@ static void ncopy_restore_netware_attrs(char *src, char *dst, unsigned fallback_
uint8 dst_dhandle = 0;
int src_allocated = 0;
int dst_allocated = 0;
C32_NDIR_INFO sinfo;
NCP_NDIR_INFO sinfo;
uint32 attrs;
int rc;