Changeset 671
- Timestamp:
- 08/11/05 19:13:23 (7 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
-
include/napi.h (modified) (7 diffs)
-
include/napi4.h (modified) (1 diff)
-
include/napi5.h (modified) (1 diff)
-
include/napiu.h (modified) (1 diff)
-
include/nxxml.h (modified) (1 diff)
-
src/Makefile.am (modified) (1 diff)
-
src/napi.c (modified) (46 diffs)
-
src/napi4.c (modified) (28 diffs)
-
src/napi5.c (modified) (29 diffs)
-
src/napiu.c (modified) (7 diffs)
-
src/nxxml.c (modified) (28 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/napi.h
r520 r671 34 34 #define CONSTCHAR const char 35 35 36 #if defined(_WIN32) && defined(_DLL)37 # ifdef NX45DLL_EXPORTS38 # define NX_EXTERNAL __declspec(dllexport)39 # else40 # define NX_EXTERNAL __declspec(dllimport)41 # endif42 #else43 # define NX_EXTERNAL44 #endif45 46 36 #ifdef _WIN32 47 #define snprintf nxisnprintf37 //#define snprintf nxisnprintf 48 38 extern int nxisnprintf(char* buffer, int len, const char* format, ... ); 49 39 #endif /* _WIN32 */ … … 134 124 #define CONCAT(__a,__b) __a##__b /* token concatenation */ 135 125 136 #if defined(__unix) || defined(__unix__) || defined (__VMS) || defined(__APPLE__)137 138 126 # ifdef __VMS 139 127 # define MANGLE(__arg) __arg … … 141 129 # define MANGLE(__arg) CONCAT(__arg,_) 142 130 # endif 143 144 # define CALLING_STYLE /* blank */145 131 146 132 # define NXopen MANGLE(nxiopen) … … 181 167 # define NXsetnumberformat MANGLE(nxisetnumberformat) 182 168 # define NXsetcache MANGLE(nxisetcache) 183 /* FORTRAN helpers - for NeXus internal use only */ 169 170 /* 171 * FORTRAN helpers - for NeXus internal use only 172 */ 184 173 # define NXfopen MANGLE(nxifopen) 185 174 # define NXfclose MANGLE(nxifclose) … … 190 179 # define NXfputattr MANGLE(nxifputattr) 191 180 192 #elif defined(_WIN32)193 /*194 * START OF WINDOWS SPECIFIC CONFIGURATION195 *196 * Added by Freddie Akeroyd 9/8/2002197 *198 * Various PC calling conventions - you need only uncomment one of the following definitions of MANGLE()199 * anlong with the appropriate CALLING_STYLE200 * The choice arises because under Windows the default way FORTRAN calls FORTRAN is different201 * from the dafault way C calls C, and so when you need to have FORTRAN calling C you must202 * force them to use the same convention. Notice the use of "default way" above ... by choice203 * of compiler options (or compiler vendor) you may actually have FORTRAN calling in the C way204 * etc., so you might need to experiment with the options below until you get no "unresolved symbols"205 *206 * Choice 1: Should allow both FORTRAN and C NeXus interfaces to work in a "default" setup207 * Choice 2: For when choice 1: gives problems and you only require the C interface208 * Choice 3: An alternative to 1: which may allow both FORTRAN and C in a non-default setup209 */210 # define MANGLE(__arg) __arg /* Choice 1 */211 # define CALLING_STYLE __stdcall /* Choice 1 */212 /* # define MANGLE(__arg) __arg /* Choice 2 */213 /* # define CALLING_STYLE /* Choice 2 */214 /* # define MANGLE(__arg) CONCAT(__arg,_) /* Choice 3 */215 /* # define CALLING_STYLE __stdcall /* Choice 3 */216 /*217 * END OF WINDOWS SPECIFIC CONFIGURATION218 */219 # define NXopen MANGLE(NXIOPEN)220 # define NXclose MANGLE(NXICLOSE)221 # define NXflush MANGLE(NXIFLUSH)222 # define NXmakegroup MANGLE(NXIMAKEGROUP)223 # define NXopengroup MANGLE(NXIOPENGROUP)224 # define NXopenpath MANGLE(NXIOPENPATH)225 # define NXopengrouppath MANGLE(NXIOPENGROUPPATH)226 # define NXclosegroup MANGLE(NXICLOSEGROUP)227 # define NXmakedata MANGLE(NXIMAKEDATA)228 # define NXcompress MANGLE(NXICOMPRESS)229 # define NXopendata MANGLE(NXIOPENDATA)230 # define NXclosedata MANGLE(NXICLOSEDATA)231 # define NXgetdata MANGLE(NXIGETDATA)232 # define NXgetslab MANGLE(NXIGETSLAB)233 # define NXgetattr MANGLE(NXIGETATTR)234 # define NXgetdim MANGLE(NXIGETDIM)235 # define NXputdata MANGLE(NXIPUTDATA)236 # define NXputslab MANGLE(NXIPUTSLAB)237 # define NXputattr MANGLE(NXIPUTATTR)238 # define NXputdim MANGLE(NXIPUTDIM)239 # define NXgetinfo MANGLE(NXIGETINFO)240 # define NXgetgroupinfo MANGLE(NXIGETGROUPINFO)241 # define NXsameID MANGLE(NXISAMEID)242 # define NXinitgroupdir MANGLE(NXIINITGROUPDIR)243 # define NXgetnextentry MANGLE(NXIGETNEXTENTRY)244 # define NXgetattrinfo MANGLE(NXIGETATTRINFO)245 # define NXinitattrdir MANGLE(NXIINITATTRDIR)246 # define NXsetnumberformat MANGLE(NXISETNUMBERFORMAT)247 # define NXgetnextattr MANGLE(NXIGETNEXTATTR)248 # define NXgetgroupID MANGLE(NXIGETGROUPID)249 # define NXgetdataID MANGLE(NXIGETDATAID)250 # define NXmakelink MANGLE(NXIMAKELINK)251 # define NXopensourcegroup MANGLE(NXIOPENSOURCEGROUP)252 # define NXmalloc MANGLE(NXIMALLOC)253 # define NXfree MANGLE(NXIFREE)254 /* FORTRAN helpers - for NeXus internal use only */255 # define NXfopen MANGLE(NXIFOPEN)256 # define NXfclose MANGLE(NXIFCLOSE)257 # define NXfflush MANGLE(NXIFFLUSH)258 # define NXfmakedata MANGLE(NXIFMAKEDATA)259 # define NXfcompmakedata MANGLE(NXIFCOMPMAKEDATA)260 # define NXfcompress MANGLE(NXIFCOMPRESS)261 # define NXfputattr MANGLE(NXIFPUTATTR)262 #else263 # error Cannot compile - unknown operating system264 #endif265 266 181 267 182 /* … … 272 187 extern "C" { 273 188 #endif /* __cplusplus */ 274 NX_EXTERNAL NXstatus CALLING_STYLENXopen(CONSTCHAR * filename, NXaccess access_method, NXhandle* pHandle);275 NX_EXTERNAL NXstatus CALLING_STYLENXclose(NXhandle* pHandle);276 NX_EXTERNAL NXstatus CALLING_STYLENXflush(NXhandle* pHandle);277 278 NX_EXTERNAL NXstatus CALLING_STYLENXmakegroup (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass);279 NX_EXTERNAL NXstatus CALLING_STYLENXopengroup (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass);280 NX_EXTERNAL NXstatus CALLING_STYLENXopenpath (NXhandle handle, CONSTCHAR *path);281 NX_EXTERNAL NXstatus CALLING_STYLENXopengrouppath (NXhandle handle, CONSTCHAR *path);282 283 NX_EXTERNAL NXstatus CALLING_STYLENXclosegroup(NXhandle handle);284 285 NX_EXTERNAL NXstatus CALLING_STYLENXmakedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[]);286 NX_EXTERNAL NXstatus CALLING_STYLENXcompmakedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[], int comp_typ, int bufsize[]);287 NX_EXTERNAL NXstatus CALLING_STYLENXcompress (NXhandle handle, int compr_type);288 NX_EXTERNAL NXstatus CALLING_STYLENXopendata (NXhandle handle, CONSTCHAR* label);289 NX_EXTERNAL NXstatus CALLING_STYLENXclosedata(NXhandle handle);290 NX_EXTERNAL NXstatus CALLING_STYLENXputdata(NXhandle handle, void* data);291 292 NX_EXTERNAL NXstatus CALLING_STYLENXputattr(NXhandle handle, CONSTCHAR* name, void* data, int iDataLen, int iType);293 NX_EXTERNAL NXstatus CALLING_STYLENXputslab(NXhandle handle, void* data, int start[], int size[]);294 295 NX_EXTERNAL NXstatus CALLING_STYLENXgetdataID(NXhandle handle, NXlink* pLink);296 NX_EXTERNAL NXstatus CALLING_STYLENXmakelink(NXhandle handle, NXlink* pLink);297 NX_EXTERNAL NXstatus CALLING_STYLENXopensourcegroup(NXhandle handle);298 299 NX_EXTERNAL NXstatus CALLING_STYLENXgetdata(NXhandle handle, void* data);300 NX_EXTERNAL NXstatus CALLING_STYLENXgetinfo(NXhandle handle, int* rank, int dimension[], int* datatype);301 NX_EXTERNAL NXstatus CALLING_STYLENXgetnextentry(NXhandle handle, NXname name, NXname nxclass, int* datatype);302 303 NX_EXTERNAL NXstatus CALLING_STYLENXgetslab(NXhandle handle, void* data, int start[], int size[]);304 NX_EXTERNAL NXstatus CALLING_STYLENXgetnextattr(NXhandle handle, NXname pName, int *iLength, int *iType);305 NX_EXTERNAL NXstatus CALLING_STYLENXgetattr(NXhandle handle, char* name, void* data, int* iDataLen, int* iType);306 NX_EXTERNAL NXstatus CALLING_STYLENXgetattrinfo(NXhandle handle, int* no_items);307 NX_EXTERNAL NXstatus CALLING_STYLENXgetgroupID(NXhandle handle, NXlink* pLink);308 NX_EXTERNAL NXstatus CALLING_STYLENXgetgroupinfo(NXhandle handle, int* no_items, NXname name, NXname nxclass);309 NX_EXTERNAL NXstatus CALLING_STYLENXsameID(NXhandle handle, NXlink* pFirstID, NXlink* pSecondID);310 311 NX_EXTERNAL NXstatus CALLING_STYLENXinitgroupdir(NXhandle handle);312 NX_EXTERNAL NXstatus CALLING_STYLENXinitattrdir(NXhandle handle);313 NX_EXTERNAL NXstatus CALLING_STYLENXsetnumberformat(NXhandle handle,189 extern NXstatus NXopen(CONSTCHAR * filename, NXaccess access_method, NXhandle* pHandle); 190 extern NXstatus NXclose(NXhandle* pHandle); 191 extern NXstatus NXflush(NXhandle* pHandle); 192 193 extern NXstatus NXmakegroup (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass); 194 extern NXstatus NXopengroup (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass); 195 extern NXstatus NXopenpath (NXhandle handle, CONSTCHAR *path); 196 extern NXstatus NXopengrouppath (NXhandle handle, CONSTCHAR *path); 197 198 extern NXstatus NXclosegroup(NXhandle handle); 199 200 extern NXstatus NXmakedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[]); 201 extern NXstatus NXcompmakedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[], int comp_typ, int bufsize[]); 202 extern NXstatus NXcompress (NXhandle handle, int compr_type); 203 extern NXstatus NXopendata (NXhandle handle, CONSTCHAR* label); 204 extern NXstatus NXclosedata(NXhandle handle); 205 extern NXstatus NXputdata(NXhandle handle, void* data); 206 207 extern NXstatus NXputattr(NXhandle handle, CONSTCHAR* name, void* data, int iDataLen, int iType); 208 extern NXstatus NXputslab(NXhandle handle, void* data, int start[], int size[]); 209 210 extern NXstatus NXgetdataID(NXhandle handle, NXlink* pLink); 211 extern NXstatus NXmakelink(NXhandle handle, NXlink* pLink); 212 extern NXstatus NXopensourcegroup(NXhandle handle); 213 214 extern NXstatus NXgetdata(NXhandle handle, void* data); 215 extern NXstatus NXgetinfo(NXhandle handle, int* rank, int dimension[], int* datatype); 216 extern NXstatus NXgetnextentry(NXhandle handle, NXname name, NXname nxclass, int* datatype); 217 218 extern NXstatus NXgetslab(NXhandle handle, void* data, int start[], int size[]); 219 extern NXstatus NXgetnextattr(NXhandle handle, NXname pName, int *iLength, int *iType); 220 extern NXstatus NXgetattr(NXhandle handle, char* name, void* data, int* iDataLen, int* iType); 221 extern NXstatus NXgetattrinfo(NXhandle handle, int* no_items); 222 extern NXstatus NXgetgroupID(NXhandle handle, NXlink* pLink); 223 extern NXstatus NXgetgroupinfo(NXhandle handle, int* no_items, NXname name, NXname nxclass); 224 extern NXstatus NXsameID(NXhandle handle, NXlink* pFirstID, NXlink* pSecondID); 225 226 extern NXstatus NXinitgroupdir(NXhandle handle); 227 extern NXstatus NXinitattrdir(NXhandle handle); 228 extern NXstatus NXsetnumberformat(NXhandle handle, 314 229 int type, char *format); 315 230 316 NX_EXTERNAL NXstatus CALLING_STYLENXmalloc(void** data, int rank, int dimensions[], int datatype);317 NX_EXTERNAL NXstatus CALLING_STYLENXfree(void** data);231 extern NXstatus NXmalloc(void** data, int rank, int dimensions[], int datatype); 232 extern NXstatus NXfree(void** data); 318 233 319 234 … … 321 236 NAPI internals 322 237 ------------------------------------------------------------------------*/ 323 NX_EXTERNAL void CALLING_STYLENXMSetError(void *pData, void (*ErrFunc)(void *pD, char *text));238 extern void NXMSetError(void *pData, void (*ErrFunc)(void *pD, char *text)); 324 239 extern void (*NXIReportError)(void *pData,char *text); 325 240 extern void *NXpData; 326 241 extern char *NXIformatNeXusTime(); 327 242 328 329 243 /* 330 244 another special function for setting the default cache size for HDF-5 331 245 */ 332 NX_EXTERNAL NXstatus CALLING_STYLE NXsetcache(long newVal); 333 334 /* 335 * We need to include CALLING_STYLE in the function pointer definition 336 * or else we get a type mismatch on Win32 337 */ 246 extern NXstatus NXsetcache(long newVal); 247 338 248 typedef struct { 339 249 NXhandle *pNexusData; 340 250 int stripFlag; 341 NXstatus ( CALLING_STYLE*nxclose)(NXhandle* pHandle);342 NXstatus ( CALLING_STYLE*nxflush)(NXhandle* pHandle);343 NXstatus ( CALLING_STYLE*nxmakegroup) (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass);344 NXstatus ( CALLING_STYLE*nxopengroup) (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass);345 NXstatus ( CALLING_STYLE*nxclosegroup)(NXhandle handle);346 NXstatus ( CALLING_STYLE*nxmakedata) (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[]);347 NXstatus ( CALLING_STYLE*nxcompmakedata) (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[], int comp_typ, int bufsize[]);348 NXstatus ( CALLING_STYLE*nxcompress) (NXhandle handle, int compr_type);349 NXstatus ( CALLING_STYLE*nxopendata) (NXhandle handle, CONSTCHAR* label);350 NXstatus ( CALLING_STYLE*nxclosedata)(NXhandle handle);351 NXstatus ( CALLING_STYLE*nxputdata)(NXhandle handle, void* data);352 NXstatus ( CALLING_STYLE*nxputattr)(NXhandle handle, CONSTCHAR* name, void* data, int iDataLen, int iType);353 NXstatus ( CALLING_STYLE*nxputslab)(NXhandle handle, void* data, int start[], int size[]);354 NXstatus ( CALLING_STYLE*nxgetdataID)(NXhandle handle, NXlink* pLink);355 NXstatus ( CALLING_STYLE*nxmakelink)(NXhandle handle, NXlink* pLink);356 NXstatus ( CALLING_STYLE*nxgetdata)(NXhandle handle, void* data);357 NXstatus ( CALLING_STYLE*nxgetinfo)(NXhandle handle, int* rank, int dimension[], int* datatype);358 NXstatus ( CALLING_STYLE*nxgetnextentry)(NXhandle handle, NXname name, NXname nxclass, int* datatype);359 NXstatus ( CALLING_STYLE*nxgetslab)(NXhandle handle, void* data, int start[], int size[]);360 NXstatus ( CALLING_STYLE*nxgetnextattr)(NXhandle handle, NXname pName, int *iLength, int *iType);361 NXstatus ( CALLING_STYLE*nxgetattr)(NXhandle handle, char* name, void* data, int* iDataLen, int* iType);362 NXstatus ( CALLING_STYLE*nxgetattrinfo)(NXhandle handle, int* no_items);363 NXstatus ( CALLING_STYLE*nxgetgroupID)(NXhandle handle, NXlink* pLink);364 NXstatus ( CALLING_STYLE*nxgetgroupinfo)(NXhandle handle, int* no_items, NXname name, NXname nxclass);365 NXstatus ( CALLING_STYLE*nxsameID)(NXhandle handle, NXlink* pFirstID, NXlink* pSecondID);366 NXstatus ( CALLING_STYLE*nxinitgroupdir)(NXhandle handle);367 NXstatus ( CALLING_STYLE*nxinitattrdir)(NXhandle handle);368 NXstatus ( CALLING_STYLE*nxsetnumberformat)(NXhandle handle,251 NXstatus ( *nxclose)(NXhandle* pHandle); 252 NXstatus ( *nxflush)(NXhandle* pHandle); 253 NXstatus ( *nxmakegroup) (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass); 254 NXstatus ( *nxopengroup) (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass); 255 NXstatus ( *nxclosegroup)(NXhandle handle); 256 NXstatus ( *nxmakedata) (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[]); 257 NXstatus ( *nxcompmakedata) (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[], int comp_typ, int bufsize[]); 258 NXstatus ( *nxcompress) (NXhandle handle, int compr_type); 259 NXstatus ( *nxopendata) (NXhandle handle, CONSTCHAR* label); 260 NXstatus ( *nxclosedata)(NXhandle handle); 261 NXstatus ( *nxputdata)(NXhandle handle, void* data); 262 NXstatus ( *nxputattr)(NXhandle handle, CONSTCHAR* name, void* data, int iDataLen, int iType); 263 NXstatus ( *nxputslab)(NXhandle handle, void* data, int start[], int size[]); 264 NXstatus ( *nxgetdataID)(NXhandle handle, NXlink* pLink); 265 NXstatus ( *nxmakelink)(NXhandle handle, NXlink* pLink); 266 NXstatus ( *nxgetdata)(NXhandle handle, void* data); 267 NXstatus ( *nxgetinfo)(NXhandle handle, int* rank, int dimension[], int* datatype); 268 NXstatus ( *nxgetnextentry)(NXhandle handle, NXname name, NXname nxclass, int* datatype); 269 NXstatus ( *nxgetslab)(NXhandle handle, void* data, int start[], int size[]); 270 NXstatus ( *nxgetnextattr)(NXhandle handle, NXname pName, int *iLength, int *iType); 271 NXstatus ( *nxgetattr)(NXhandle handle, char* name, void* data, int* iDataLen, int* iType); 272 NXstatus ( *nxgetattrinfo)(NXhandle handle, int* no_items); 273 NXstatus ( *nxgetgroupID)(NXhandle handle, NXlink* pLink); 274 NXstatus ( *nxgetgroupinfo)(NXhandle handle, int* no_items, NXname name, NXname nxclass); 275 NXstatus ( *nxsameID)(NXhandle handle, NXlink* pFirstID, NXlink* pSecondID); 276 NXstatus ( *nxinitgroupdir)(NXhandle handle); 277 NXstatus ( *nxinitattrdir)(NXhandle handle); 278 NXstatus ( *nxsetnumberformat)(NXhandle handle, 369 279 int type,char *format); 370 280 } NexusFunction, *pNexusFunction; 371 281 /*---------------------*/ 372 282 extern long nx_cacheSize; 283 284 /* FORTRAN internals */ 285 286 extern NXstatus NXfopen(char * filename, NXaccess* am, 287 NexusFunction* pHandle); 288 extern NXstatus NXfclose (NexusFunction* pHandle); 289 extern NXstatus NXfputattr(NXhandle fid, char *name, void *data, 290 int *pDatalen, int *pIType); 291 extern NXstatus NXfcompress(NXhandle fid, int *compr_type); 292 extern NXstatus NXfcompmakedata(NXhandle fid, char *name, 293 int *pDatatype, 294 int *pRank, int dimensions[], 295 int *compression_type, int chunk[]); 296 extern NXstatus NXfmakedata(NXhandle fid, char *name, int *pDatatype, 297 int *pRank, int dimensions[]); 298 extern NXstatus NXfflush(NexusFunction* pHandle); 299 373 300 #ifdef __cplusplus 374 301 } -
trunk/include/napi4.h
r473 r671 8 8 */ 9 9 10 NX_EXTERNAL NXstatus CALLING_STYLENX4open(CONSTCHAR *filename, NXaccess access_method, NXhandle* pHandle);11 NX_EXTERNAL NXstatus CALLING_STYLENX4close(NXhandle* pHandle);12 NX_EXTERNAL NXstatus CALLING_STYLENX4flush(NXhandle* pHandle);10 extern NXstatus NX4open(CONSTCHAR *filename, NXaccess access_method, NXhandle* pHandle); 11 extern NXstatus NX4close(NXhandle* pHandle); 12 extern NXstatus NX4flush(NXhandle* pHandle); 13 13 14 NX_EXTERNAL NXstatus CALLING_STYLENX4makegroup (NXhandle handle, CONSTCHAR* Vgroup, CONSTCHAR* NXclass);15 NX_EXTERNAL NXstatus CALLING_STYLENX4opengroup (NXhandle handle, CONSTCHAR* Vgroup, CONSTCHAR* NXclass);16 NX_EXTERNAL NXstatus CALLING_STYLENX4closegroup(NXhandle handle);14 extern NXstatus NX4makegroup (NXhandle handle, CONSTCHAR* Vgroup, CONSTCHAR* NXclass); 15 extern NXstatus NX4opengroup (NXhandle handle, CONSTCHAR* Vgroup, CONSTCHAR* NXclass); 16 extern NXstatus NX4closegroup(NXhandle handle); 17 17 18 NX_EXTERNAL NXstatus CALLING_STYLENX4makedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[]);19 NX_EXTERNAL NXstatus CALLING_STYLENX4compmakedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[], int comp_typ, int bufsize[]);20 NX_EXTERNAL NXstatus CALLING_STYLENX4compress (NXhandle handle, int compr_type);21 NX_EXTERNAL NXstatus CALLING_STYLENX4opendata (NXhandle handle, CONSTCHAR* label);18 extern NXstatus NX4makedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[]); 19 extern NXstatus NX4compmakedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[], int comp_typ, int bufsize[]); 20 extern NXstatus NX4compress (NXhandle handle, int compr_type); 21 extern NXstatus NX4opendata (NXhandle handle, CONSTCHAR* label); 22 22 23 NX_EXTERNAL NXstatus CALLING_STYLENX4closedata(NXhandle handle);23 extern NXstatus NX4closedata(NXhandle handle); 24 24 25 NX_EXTERNAL NXstatus CALLING_STYLENX4getdata(NXhandle handle, void* data);26 NX_EXTERNAL NXstatus CALLING_STYLENX4getslab(NXhandle handle, void* data, int start[], int size[]);27 NX_EXTERNAL NXstatus CALLING_STYLENX4getattr(NXhandle handle, char* name, void* data, int* iDataLen, int* iType);25 extern NXstatus NX4getdata(NXhandle handle, void* data); 26 extern NXstatus NX4getslab(NXhandle handle, void* data, int start[], int size[]); 27 extern NXstatus NX4getattr(NXhandle handle, char* name, void* data, int* iDataLen, int* iType); 28 28 29 NX_EXTERNAL NXstatus CALLING_STYLENX4putdata(NXhandle handle, void* data);30 NX_EXTERNAL NXstatus CALLING_STYLENX4putslab(NXhandle handle, void* data, int start[], int size[]);31 NX_EXTERNAL NXstatus CALLING_STYLENX4putattr(NXhandle handle, CONSTCHAR* name, void* data, int iDataLen, int iType);29 extern NXstatus NX4putdata(NXhandle handle, void* data); 30 extern NXstatus NX4putslab(NXhandle handle, void* data, int start[], int size[]); 31 extern NXstatus NX4putattr(NXhandle handle, CONSTCHAR* name, void* data, int iDataLen, int iType); 32 32 33 NX_EXTERNAL NXstatus CALLING_STYLENX4getinfo(NXhandle handle, int* rank, int dimension[], int* datatype);34 NX_EXTERNAL NXstatus CALLING_STYLENX4getgroupinfo(NXhandle handle, int* no_items, NXname name, NXname nxclass);35 NX_EXTERNAL NXstatus CALLING_STYLENX4initgroupdir(NXhandle handle);36 NX_EXTERNAL NXstatus CALLING_STYLENX4getnextentry(NXhandle handle, NXname name, NXname nxclass, int* datatype);37 NX_EXTERNAL NXstatus CALLING_STYLENX4getattrinfo(NXhandle handle, int* no_items);38 NX_EXTERNAL NXstatus CALLING_STYLENX4initattrdir(NXhandle handle);39 NX_EXTERNAL NXstatus CALLING_STYLENX4getnextattr(NXhandle handle, NXname pName, int *iLength, int *iType);33 extern NXstatus NX4getinfo(NXhandle handle, int* rank, int dimension[], int* datatype); 34 extern NXstatus NX4getgroupinfo(NXhandle handle, int* no_items, NXname name, NXname nxclass); 35 extern NXstatus NX4initgroupdir(NXhandle handle); 36 extern NXstatus NX4getnextentry(NXhandle handle, NXname name, NXname nxclass, int* datatype); 37 extern NXstatus NX4getattrinfo(NXhandle handle, int* no_items); 38 extern NXstatus NX4initattrdir(NXhandle handle); 39 extern NXstatus NX4getnextattr(NXhandle handle, NXname pName, int *iLength, int *iType); 40 40 41 NX_EXTERNAL NXstatus CALLING_STYLENX4getgroupID(NXhandle handle, NXlink* pLink);42 NX_EXTERNAL NXstatus CALLING_STYLENX4getdataID(NXhandle handle, NXlink* pLink);43 NX_EXTERNAL NXstatus CALLING_STYLENX4makelink(NXhandle handle, NXlink* pLink);41 extern NXstatus NX4getgroupID(NXhandle handle, NXlink* pLink); 42 extern NXstatus NX4getdataID(NXhandle handle, NXlink* pLink); 43 extern NXstatus NX4makelink(NXhandle handle, NXlink* pLink); 44 44 void NX4assignFunctions(pNexusFunction fHandle); 45 45 -
trunk/include/napi5.h
r433 r671 5 5 /* HDF5 interface */ 6 6 7 NX_EXTERNAL NXstatus CALLING_STYLENX5open(CONSTCHAR *filename, NXaccess access_method, NXhandle* pHandle);8 NX_EXTERNAL NXstatus CALLING_STYLENX5close(NXhandle* pHandle);9 NX_EXTERNAL NXstatus CALLING_STYLENX5flush(NXhandle* pHandle);7 extern NXstatus NX5open(CONSTCHAR *filename, NXaccess access_method, NXhandle* pHandle); 8 extern NXstatus NX5close(NXhandle* pHandle); 9 extern NXstatus NX5flush(NXhandle* pHandle); 10 10 11 NX_EXTERNAL NXstatus CALLING_STYLENX5makegroup (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass);12 NX_EXTERNAL NXstatus CALLING_STYLENX5opengroup (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass);13 NX_EXTERNAL NXstatus CALLING_STYLENX5closegroup(NXhandle handle);11 extern NXstatus NX5makegroup (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass); 12 extern NXstatus NX5opengroup (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass); 13 extern NXstatus NX5closegroup(NXhandle handle); 14 14 15 NX_EXTERNAL NXstatus CALLING_STYLENX5makedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[]);16 NX_EXTERNAL NXstatus CALLING_STYLENX5compmakedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[], int comp_typ, int bufsize[]);17 NX_EXTERNAL NXstatus CALLING_STYLENX5compress (NXhandle handle, int compr_type);18 NX_EXTERNAL NXstatus CALLING_STYLENX5opendata (NXhandle handle, CONSTCHAR* label);19 NX_EXTERNAL NXstatus CALLING_STYLENX5closedata(NXhandle handle);20 NX_EXTERNAL NXstatus CALLING_STYLENX5putdata(NXhandle handle, void* data);15 extern NXstatus NX5makedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[]); 16 extern NXstatus NX5compmakedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[], int comp_typ, int bufsize[]); 17 extern NXstatus NX5compress (NXhandle handle, int compr_type); 18 extern NXstatus NX5opendata (NXhandle handle, CONSTCHAR* label); 19 extern NXstatus NX5closedata(NXhandle handle); 20 extern NXstatus NX5putdata(NXhandle handle, void* data); 21 21 22 NX_EXTERNAL NXstatus CALLING_STYLENX5putattr(NXhandle handle, CONSTCHAR* name, void* data, int iDataLen, int iType);23 NX_EXTERNAL NXstatus CALLING_STYLENX5putslab(NXhandle handle, void* data, int start[], int size[]);22 extern NXstatus NX5putattr(NXhandle handle, CONSTCHAR* name, void* data, int iDataLen, int iType); 23 extern NXstatus NX5putslab(NXhandle handle, void* data, int start[], int size[]); 24 24 25 NX_EXTERNAL NXstatus CALLING_STYLENX5getdataID(NXhandle handle, NXlink* pLink);26 NX_EXTERNAL NXstatus CALLING_STYLENX5makelink(NXhandle handle, NXlink* pLink);25 extern NXstatus NX5getdataID(NXhandle handle, NXlink* pLink); 26 extern NXstatus NX5makelink(NXhandle handle, NXlink* pLink); 27 27 28 NX_EXTERNAL NXstatus CALLING_STYLENX5getdata(NXhandle handle, void* data);29 NX_EXTERNAL NXstatus CALLING_STYLENX5getinfo(NXhandle handle, int* rank, int dimension[], int* datatype);30 NX_EXTERNAL NXstatus CALLING_STYLENX5getnextentry(NXhandle handle, NXname name, NXname nxclass, int* datatype);28 extern NXstatus NX5getdata(NXhandle handle, void* data); 29 extern NXstatus NX5getinfo(NXhandle handle, int* rank, int dimension[], int* datatype); 30 extern NXstatus NX5getnextentry(NXhandle handle, NXname name, NXname nxclass, int* datatype); 31 31 32 NX_EXTERNAL NXstatus CALLING_STYLENX5getslab(NXhandle handle, void* data, int start[], int size[]);33 NX_EXTERNAL NXstatus CALLING_STYLENX5getnextattr(NXhandle handle, NXname pName, int *iLength, int *iType);34 NX_EXTERNAL NXstatus CALLING_STYLENX5getattr(NXhandle handle, char* name, void* data, int* iDataLen, int* iType);35 NX_EXTERNAL NXstatus CALLING_STYLENX5getattrinfo(NXhandle handle, int* no_items);36 NX_EXTERNAL NXstatus CALLING_STYLENX5getgroupID(NXhandle handle, NXlink* pLink);37 NX_EXTERNAL NXstatus CALLING_STYLENX5getgroupinfo(NXhandle handle, int* no_items, NXname name, NXname nxclass);32 extern NXstatus NX5getslab(NXhandle handle, void* data, int start[], int size[]); 33 extern NXstatus NX5getnextattr(NXhandle handle, NXname pName, int *iLength, int *iType); 34 extern NXstatus NX5getattr(NXhandle handle, char* name, void* data, int* iDataLen, int* iType); 35 extern NXstatus NX5getattrinfo(NXhandle handle, int* no_items); 36 extern NXstatus NX5getgroupID(NXhandle handle, NXlink* pLink); 37 extern NXstatus NX5getgroupinfo(NXhandle handle, int* no_items, NXname name, NXname nxclass); 38 38 39 NX_EXTERNAL NXstatus CALLING_STYLENX5initgroupdir(NXhandle handle);40 NX_EXTERNAL NXstatus CALLING_STYLENX5initattrdir(NXhandle handle);39 extern NXstatus NX5initgroupdir(NXhandle handle); 40 extern NXstatus NX5initattrdir(NXhandle handle); 41 41 42 42 void NX5assignFunctions(pNexusFunction fHandle); -
trunk/include/napiu.h
r421 r671 35 35 #endif /* __cplusplus */ 36 36 37 NX_EXTERNAL NXstatus CALLING_STYLENXUwriteglobals(NXhandle file_id, const char* user, const char* affiliation, const char* address, const char* phone, const char* fax, const char* email);37 extern NXstatus NXUwriteglobals(NXhandle file_id, const char* user, const char* affiliation, const char* address, const char* phone, const char* fax, const char* email); 38 38 39 NX_EXTERNAL NXstatus CALLING_STYLENXUwritegroup(NXhandle file_id, const char* group_name, const char* group_class);39 extern NXstatus NXUwritegroup(NXhandle file_id, const char* group_name, const char* group_class); 40 40 41 NX_EXTERNAL NXstatus CALLING_STYLENXUwritedata(NXhandle file_id, const char* data_name, const void* data, int data_type, int rank, const int dim[], const char* units, const int start[], const int size[]);41 extern NXstatus NXUwritedata(NXhandle file_id, const char* data_name, const void* data, int data_type, int rank, const int dim[], const char* units, const int start[], const int size[]); 42 42 43 NX_EXTERNAL NXstatus CALLING_STYLENXUreaddata(NXhandle file_id, const char* data_name, void* data, char* units, const int start[], const int size[]);43 extern NXstatus NXUreaddata(NXhandle file_id, const char* data_name, void* data, char* units, const int start[], const int size[]); 44 44 45 NX_EXTERNAL NXstatus CALLING_STYLENXUwritehistogram(NXhandle file_id, const char* data_name, const void* data, const char* units);45 extern NXstatus NXUwritehistogram(NXhandle file_id, const char* data_name, const void* data, const char* units); 46 46 47 NX_EXTERNAL NXstatus CALLING_STYLENXUreadhistogram(NXhandle file_id, const char* data_name, void* data, char* units);47 extern NXstatus NXUreadhistogram(NXhandle file_id, const char* data_name, void* data, char* units); 48 48 49 NX_EXTERNAL NXstatus CALLING_STYLENXUsetcompress(NXhandle file_id, int comp_type, int comp_size);49 extern NXstatus NXUsetcompress(NXhandle file_id, int comp_type, int comp_size); 50 50 51 NX_EXTERNAL NXstatus CALLING_STYLENXUfindgroup(NXhandle file_id, const char* group_name, char* group_class);51 extern NXstatus NXUfindgroup(NXhandle file_id, const char* group_name, char* group_class); 52 52 53 NX_EXTERNAL NXstatus CALLING_STYLENXUfindclass(NXhandle file_id, const char* group_class, char* group_name, int find_index);53 extern NXstatus NXUfindclass(NXhandle file_id, const char* group_class, char* group_name, int find_index); 54 54 55 NX_EXTERNAL NXstatus CALLING_STYLENXUfinddata(NXhandle file_id, const char* data_name);55 extern NXstatus NXUfinddata(NXhandle file_id, const char* data_name); 56 56 57 NX_EXTERNAL NXstatus CALLING_STYLENXUfindattr(NXhandle file_id, const char* attr_name);57 extern NXstatus NXUfindattr(NXhandle file_id, const char* attr_name); 58 58 59 NX_EXTERNAL NXstatus CALLING_STYLENXUfindsignal(NXhandle file_id, int signal, char* data_name, int* data_rank, int* data_type, int data_dimensions[]);59 extern NXstatus NXUfindsignal(NXhandle file_id, int signal, char* data_name, int* data_rank, int* data_type, int data_dimensions[]); 60 60 61 NX_EXTERNAL NXstatus CALLING_STYLENXUfindaxis(NXhandle file_id, int axis, int primary, char* data_name, int* data_rank, int* data_type, int data_dimensions[]);61 extern NXstatus NXUfindaxis(NXhandle file_id, int axis, int primary, char* data_name, int* data_rank, int* data_type, int data_dimensions[]); 62 62 63 NX_EXTERNAL NXstatus CALLING_STYLENXUfindlink(NXhandle file_id, NXlink* group_id, const char* group_class);63 extern NXstatus NXUfindlink(NXhandle file_id, NXlink* group_id, const char* group_class); 64 64 65 NX_EXTERNAL NXstatus CALLING_STYLENXUresumelink(NXhandle file_id, NXlink group_id);65 extern NXstatus NXUresumelink(NXhandle file_id, NXlink group_id); 66 66 67 67 #ifdef __cplusplus -
trunk/include/nxxml.h
r521 r671 23 23 #define NEXUSXML 24 24 25 NX_EXTERNAL NXstatus CALLING_STYLENXXopen(CONSTCHAR *filename,25 extern NXstatus NXXopen(CONSTCHAR *filename, 26 26 NXaccess access_method, 27 27 NXhandle* pHandle); 28 NX_EXTERNAL NXstatus CALLING_STYLENXXclose(NXhandle* pHandle);29 NX_EXTERNAL NXstatus CALLING_STYLENXXflush(NXhandle* pHandle);28 extern NXstatus NXXclose(NXhandle* pHandle); 29 extern NXstatus NXXflush(NXhandle* pHandle); 30 30 31 NXstatus CALLING_STYLENXXmakegroup (NXhandle fid, CONSTCHAR *name,31 NXstatus NXXmakegroup (NXhandle fid, CONSTCHAR *name, 32 32 CONSTCHAR *nxclass); 33 NXstatus CALLING_STYLENXXopengroup (NXhandle fid, CONSTCHAR *name,33 NXstatus NXXopengroup (NXhandle fid, CONSTCHAR *name, 34 34 CONSTCHAR *nxclass); 35 NXstatus CALLING_STYLENXXclosegroup (NXhandle fid);35 NXstatus NXXclosegroup (NXhandle fid); 36 36 37 NXstatus CALLING_STYLENXXcompmakedata (NXhandle fid, CONSTCHAR *name,37 NXstatus NXXcompmakedata (NXhandle fid, CONSTCHAR *name, 38 38 int datatype, 39 39 int rank, 40 40 int dimensions[], 41 41 int compress_type, int chunk_size[]); 42 NXstatus CALLING_STYLENXXmakedata (NXhandle fid,42 NXstatus NXXmakedata (NXhandle fid, 43 43 CONSTCHAR *name, int datatype, 44 44 int rank, int dimensions[]); 45 NXstatus CALLING_STYLENXXopendata (NXhandle fid, CONSTCHAR *name);46 NXstatus CALLING_STYLENXXclosedata (NXhandle fid);47 NXstatus CALLING_STYLENXXputdata (NXhandle fid, void *data);48 NXstatus CALLING_STYLENXXgetdata (NXhandle fid, void *data);49 NXstatus CALLING_STYLENXXgetinfo (NXhandle fid, int *rank,45 NXstatus NXXopendata (NXhandle fid, CONSTCHAR *name); 46 NXstatus NXXclosedata (NXhandle fid); 47 NXstatus NXXputdata (NXhandle fid, void *data); 48 NXstatus NXXgetdata (NXhandle fid, void *data); 49 NXstatus NXXgetinfo (NXhandle fid, int *rank, 50 50 int dimension[], int *iType); 51 NXstatus CALLING_STYLENXXputslab (NXhandle fid, void *data,51 NXstatus NXXputslab (NXhandle fid, void *data, 52 52 int iStart[], int iSize[]); 53 NXstatus CALLING_STYLENXXgetslab (NXhandle fid, void *data,53 NXstatus NXXgetslab (NXhandle fid, void *data, 54 54 int iStart[], int iSize[]); 55 NXstatus CALLING_STYLENXXputattr (NXhandle fid, CONSTCHAR *name, void *data,55 NXstatus NXXputattr (NXhandle fid, CONSTCHAR *name, void *data, 56 56 int datalen, int iType); 57 NXstatus CALLING_STYLENXXgetattr (NXhandle fid, char *name,57 NXstatus NXXgetattr (NXhandle fid, char *name, 58 58 void *data, int* datalen, int* iType); 59 59 60 NXstatus CALLING_STYLENXXgetnextentry (NXhandle fid,NXname name,60 NXstatus NXXgetnextentry (NXhandle fid,NXname name, 61 61 NXname nxclass, int *datatype); 62 NX_EXTERNAL NXstatus CALLING_STYLENXXgetnextattr(NXhandle handle,62 extern NXstatus NXXgetnextattr(NXhandle handle, 63 63 NXname pName, int *iLength, int *iType); 64 NX_EXTERNAL NXstatus CALLING_STYLENXXinitgroupdir(NXhandle handle);65 NX_EXTERNAL NXstatus CALLING_STYLENXXinitattrdir(NXhandle handle);66 NX_EXTERNAL NXstatus CALLING_STYLENXXgetattrinfo (NXhandle fid, int *iN);67 NX_EXTERNAL NXstatus CALLING_STYLENXXgetgroupinfo (NXhandle fid, int *iN,64 extern NXstatus NXXinitgroupdir(NXhandle handle); 65 extern NXstatus NXXinitattrdir(NXhandle handle); 66 extern NXstatus NXXgetattrinfo (NXhandle fid, int *iN); 67 extern NXstatus NXXgetgroupinfo (NXhandle fid, int *iN, 68 68 NXname pName, NXname pClass); 69 69 70 NX_EXTERNAL NXstatus CALLING_STYLENXXgetdataID (NXhandle fid, NXlink* sRes);71 NX_EXTERNAL NXstatus CALLING_STYLENXXgetgroupID (NXhandle fid, NXlink* sRes);72 NX_EXTERNAL NXstatus CALLING_STYLENXXmakelink (NXhandle fid, NXlink* sLink);73 NX_EXTERNAL NXstatus CALLING_STYLENXXsameID (NXhandle fileid,70 extern NXstatus NXXgetdataID (NXhandle fid, NXlink* sRes); 71 extern NXstatus NXXgetgroupID (NXhandle fid, NXlink* sRes); 72 extern NXstatus NXXmakelink (NXhandle fid, NXlink* sLink); 73 extern NXstatus NXXsameID (NXhandle fileid, 74 74 NXlink* pFirstID, NXlink* pSecondID); 75 75 -
trunk/src/Makefile.am
r596 r671 29 29 #==================================================================== 30 30 31 AM_CPPFLAGS=-I$(top_srcdir)/include @HDF4_CPPFLAGS@ @HDF5_CPPFLAGS@ @XML_CPPFLAGS@ 31 AM_CPPFLAGS=-I$(top_srcdir)/include @HDF4_CPPFLAGS@ @HDF5_CPPFLAGS@ @XML_CPPFLAGS@ -DIN_NEXUS_LIBRARY 32 32 33 33 if HAVE_HDF4 -
trunk/src/napi.c
r545 r671 35 35 #include "napi.h" 36 36 37 38 static int iFortifyScope; 37 static int iFortifyScope; 39 38 /*------------------------------------------------------------------------ 40 39 HDF-5 cache size special stuff … … 42 41 long nx_cacheSize = 1024000; /* 1MB, HDF-5 default */ 43 42 44 NXstatus CALLING_STYLENXsetcache(long newVal)43 NXstatus NXsetcache(long newVal) 45 44 { 46 45 if(newVal > 0) … … 51 50 return NX_ERROR; 52 51 } 52 53 53 54 /*-----------------------------------------------------------------------*/ 54 55 static NXstatus NXisXML(CONSTCHAR *filename) … … 67 68 return NX_ERROR; 68 69 } 70 69 71 /*-------------------------------------------------------------------------*/ 70 72 … … 84 86 /*---------------------------------------------------------------------*/ 85 87 86 NX_EXTERNAL void CALLING_STYLENXMSetError(void *pData,88 extern void NXMSetError(void *pData, 87 89 void (*NewError)(void *pD, char *text)) 88 90 { … … 144 146 } 145 147 /*-----------------------------------------------------------------------*/ 146 NXstatus CALLING_STYLENXopen(CONSTCHAR *filename, NXaccess am, NXhandle *gHandle)148 NXstatus NXopen(CONSTCHAR *filename, NXaccess am, NXhandle *gHandle) 147 149 { 148 150 int hdf_type=0; … … 275 277 /* ------------------------------------------------------------------------- */ 276 278 277 NXstatus CALLING_STYLENXclose (NXhandle *fid)279 NXstatus NXclose (NXhandle *fid) 278 280 { 279 281 NXhandle hfil; … … 294 296 /*-----------------------------------------------------------------------*/ 295 297 296 NXstatus CALLING_STYLENXmakegroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass)298 NXstatus NXmakegroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass) 297 299 { 298 300 pNexusFunction pFunc = (pNexusFunction)fid; … … 302 304 /*------------------------------------------------------------------------*/ 303 305 304 NXstatus CALLING_STYLENXopengroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass)306 NXstatus NXopengroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass) 305 307 { 306 308 pNexusFunction pFunc = (pNexusFunction)fid; … … 310 312 /* ------------------------------------------------------------------- */ 311 313 312 NXstatus CALLING_STYLENXclosegroup (NXhandle fid)314 NXstatus NXclosegroup (NXhandle fid) 313 315 { 314 316 pNexusFunction pFunc = (pNexusFunction)fid; … … 318 320 /* --------------------------------------------------------------------- */ 319 321 320 NXstatus CALLING_STYLENXmakedata (NXhandle fid, CONSTCHAR *name, int datatype,322 NXstatus NXmakedata (NXhandle fid, CONSTCHAR *name, int datatype, 321 323 int rank, int dimensions[]) 322 324 { … … 337 339 /* --------------------------------------------------------------------- */ 338 340 339 NXstatus CALLING_STYLENXcompmakedata (NXhandle fid, CONSTCHAR *name, int datatype,341 NXstatus NXcompmakedata (NXhandle fid, CONSTCHAR *name, int datatype, 340 342 int rank, int dimensions[],int compress_type, int chunk_size[]) 341 343 { … … 356 358 /* --------------------------------------------------------------------- */ 357 359 358 NXstatus CALLING_STYLENXcompress (NXhandle fid, int compress_type)360 NXstatus NXcompress (NXhandle fid, int compress_type) 359 361 { 360 362 pNexusFunction pFunc = (pNexusFunction)fid; … … 365 367 /* --------------------------------------------------------------------- */ 366 368 367 NXstatus CALLING_STYLENXopendata (NXhandle fid, CONSTCHAR *name)369 NXstatus NXopendata (NXhandle fid, CONSTCHAR *name) 368 370 { 369 371 pNexusFunction pFunc = (pNexusFunction)fid; … … 374 376 /* ----------------------------------------------------------------- */ 375 377 376 NXstatus CALLING_STYLENXclosedata (NXhandle fid)378 NXstatus NXclosedata (NXhandle fid) 377 379 { 378 380 pNexusFunction pFunc = (pNexusFunction)fid; … … 382 384 /* ------------------------------------------------------------------- */ 383 385 384 NXstatus CALLING_STYLENXputdata (NXhandle fid, void *data)386 NXstatus NXputdata (NXhandle fid, void *data) 385 387 { 386 388 pNexusFunction pFunc = (pNexusFunction)fid; … … 390 392 /* ------------------------------------------------------------------- */ 391 393 392 NXstatus CALLING_STYLENXputattr (NXhandle fid, CONSTCHAR *name, void *data,394 NXstatus NXputattr (NXhandle fid, CONSTCHAR *name, void *data, 393 395 int datalen, int iType) 394 396 { … … 399 401 /* ------------------------------------------------------------------- */ 400 402 401 NXstatus CALLING_STYLENXputslab (NXhandle fid, void *data, int iStart[], int iSize[])403 NXstatus NXputslab (NXhandle fid, void *data, int iStart[], int iSize[]) 402 404 { 403 405 pNexusFunction pFunc = (pNexusFunction)fid; … … 407 409 /* ------------------------------------------------------------------- */ 408 410 409 NXstatus CALLING_STYLENXgetdataID (NXhandle fid, NXlink* sRes)411 NXstatus NXgetdataID (NXhandle fid, NXlink* sRes) 410 412 { 411 413 pNexusFunction pFunc = (pNexusFunction)fid; … … 416 418 /* ------------------------------------------------------------------- */ 417 419 418 NXstatus CALLING_STYLENXmakelink (NXhandle fid, NXlink* sLink)420 NXstatus NXmakelink (NXhandle fid, NXlink* sLink) 419 421 { 420 422 pNexusFunction pFunc = (pNexusFunction)fid; … … 422 424 } 423 425 /* --------------------------------------------------------------------*/ 424 NXstatus CALLING_STYLENXopensourcegroup(NXhandle fid)426 NXstatus NXopensourcegroup(NXhandle fid) 425 427 { 426 428 char target_path[512]; … … 437 439 /*----------------------------------------------------------------------*/ 438 440 439 NXstatus CALLING_STYLENXflush(NXhandle *pHandle)441 NXstatus NXflush(NXhandle *pHandle) 440 442 { 441 443 NXhandle hfil; … … 453 455 /*-------------------------------------------------------------------------*/ 454 456 455 NXstatus CALLING_STYLENXmalloc (void** data, int rank,457 NXstatus NXmalloc (void** data, int rank, 456 458 int dimensions[], int datatype) 457 459 { … … 488 490 /*-------------------------------------------------------------------------*/ 489 491 490 NXstatus CALLING_STYLENXfree (void** data)492 NXstatus NXfree (void** data) 491 493 { 492 494 if (data == NULL) { … … 506 508 507 509 508 NXstatus CALLING_STYLENXgetnextentry (NXhandle fid, NXname name, NXname nxclass, int *datatype)510 NXstatus NXgetnextentry (NXhandle fid, NXname name, NXname nxclass, int *datatype) 509 511 { 510 512 pNexusFunction pFunc = (pNexusFunction)fid; … … 553 555 /*-------------------------------------------------------------------------*/ 554 556 555 NXstatus CALLING_STYLENXgetdata (NXhandle fid, void *data)557 NXstatus NXgetdata (NXhandle fid, void *data) 556 558 { 557 559 int status, type, rank, iDim[NX_MAXRANK]; … … 578 580 /*-------------------------------------------------------------------------*/ 579 581 580 NXstatus CALLING_STYLENXgetinfo (NXhandle fid, int *rank,582 NXstatus NXgetinfo (NXhandle fid, int *rank, 581 583 int dimension[], int *iType) 582 584 { … … 608 610 /*-------------------------------------------------------------------------*/ 609 611 610 NXstatus CALLING_STYLENXgetslab (NXhandle fid, void *data,612 NXstatus NXgetslab (NXhandle fid, void *data, 611 613 int iStart[], int iSize[]) 612 614 { … … 618 620 /*-------------------------------------------------------------------------*/ 619 621 620 NXstatus CALLING_STYLENXgetnextattr (NXhandle fileid, NXname pName,622 NXstatus NXgetnextattr (NXhandle fileid, NXname pName, 621 623 int *iLength, int *iType) 622 624 { … … 628 630 /*-------------------------------------------------------------------------*/ 629 631 630 NXstatus CALLING_STYLENXgetattr (NXhandle fid, char *name, void *data, int* datalen, int* iType)632 NXstatus NXgetattr (NXhandle fid, char *name, void *data, int* datalen, int* iType) 631 633 { 632 634 pNexusFunction pFunc = (pNexusFunction)fid; … … 637 639 /*-------------------------------------------------------------------------*/ 638 640 639 NXstatus CALLING_STYLENXgetattrinfo (NXhandle fid, int *iN)641 NXstatus NXgetattrinfo (NXhandle fid, int *iN) 640 642 { 641 643 pNexusFunction pFunc = (pNexusFunction)fid; … … 646 648 /*-------------------------------------------------------------------------*/ 647 649 648 NXstatus CALLING_STYLENXgetgroupID (NXhandle fileid, NXlink* sRes)650 NXstatus NXgetgroupID (NXhandle fileid, NXlink* sRes) 649 651 { 650 652 pNexusFunction pFunc = (pNexusFunction)fileid; … … 654 656 /*-------------------------------------------------------------------------*/ 655 657 656 NXstatus CALLING_STYLENXgetgroupinfo (NXhandle fid, int *iN, NXname pName, NXname pClass)658 NXstatus NXgetgroupinfo (NXhandle fid, int *iN, NXname pName, NXname pClass) 657 659 { 658 660 pNexusFunction pFunc = (pNexusFunction)fid; … … 663 665 /*-------------------------------------------------------------------------*/ 664 666 665 NXstatus CALLING_STYLENXsameID (NXhandle fileid, NXlink* pFirstID, NXlink* pSecondID)667 NXstatus NXsameID (NXhandle fileid, NXlink* pFirstID, NXlink* pSecondID) 666 668 { 667 669 pNexusFunction pFunc = (pNexusFunction)fileid; … … 671 673 /*-------------------------------------------------------------------------*/ 672 674 673 NXstatus CALLING_STYLENXinitattrdir (NXhandle fid)675 NXstatus NXinitattrdir (NXhandle fid) 674 676 { 675 677 pNexusFunction pFunc = (pNexusFunction)fid; … … 678 680 /*-------------------------------------------------------------------------*/ 679 681 680 NXstatus CALLING_STYLENXsetnumberformat (NXhandle fid,682 NXstatus NXsetnumberformat (NXhandle fid, 681 683 int type, char *format) 682 684 { … … 699 701 /*-------------------------------------------------------------------------*/ 700 702 701 NXstatus CALLING_STYLENXinitgroupdir (NXhandle fid)703 NXstatus NXinitgroupdir (NXhandle fid) 702 704 { 703 705 pNexusFunction pFunc = (pNexusFunction)fid; … … 928 930 } 929 931 /*---------------------------------------------------------------------*/ 930 NXstatus CALLING_STYLENXopenpath(NXhandle hfil, CONSTCHAR *path)932 NXstatus NXopenpath(NXhandle hfil, CONSTCHAR *path) 931 933 { 932 934 int status, run = 1; … … 965 967 } 966 968 /*---------------------------------------------------------------------*/ 967 NXstatus CALLING_STYLENXopengrouppath(NXhandle hfil, CONSTCHAR *path)969 NXstatus NXopengrouppath(NXhandle hfil, CONSTCHAR *path) 968 970 { 969 971 int status, run = 1; … … 1082 1084 * instead, but that would mean writing far more wrappers 1083 1085 */ 1084 NXstatus CALLING_STYLENXfopen(char * filename, NXaccess* am,1086 NXstatus NXfopen(char * filename, NXaccess* am, 1085 1087 NexusFunction* pHandle) 1086 1088 { … … 1107 1109 * a temporary copy as NXclose will try to free() this 1108 1110 */ 1109 NXstatus CALLING_STYLENXfclose (NexusFunction* pHandle)1111 NXstatus NXfclose (NexusFunction* pHandle) 1110 1112 { 1111 1113 NXhandle h; … … 1119 1121 1120 1122 /*---------------------------------------------------------------------*/ 1121 NXstatus CALLING_STYLENXfflush(NexusFunction* pHandle)1123 NXstatus NXfflush(NexusFunction* pHandle) 1122 1124 { 1123 1125 NXhandle h; … … 1130 1132 } 1131 1133 /*----------------------------------------------------------------------*/ 1132 NXstatus CALLING_STYLENXfmakedata(NXhandle fid, char *name, int *pDatatype,1134 NXstatus NXfmakedata(NXhandle fid, char *name, int *pDatatype, 1133 1135 int *pRank, int dimensions[]) 1134 1136 { … … 1158 1160 1159 1161 1160 NXstatus CALLING_STYLENXfcompmakedata(NXhandle fid, char *name,1162 NXstatus NXfcompmakedata(NXhandle fid, char *name, 1161 1163 int *pDatatype, 1162 1164 int *pRank, int dimensions[], … … 1191 1193 } 1192 1194 /*-----------------------------------------------------------------------*/ 1193 NXstatus CALLING_STYLENXfcompress(NXhandle fid, int *compr_type)1195 NXstatus NXfcompress(NXhandle fid, int *compr_type) 1194 1196 { 1195 1197 return NXcompress(fid,*compr_type); 1196 1198 } 1197 1199 /*-----------------------------------------------------------------------*/ 1198 NXstatus CALLING_STYLENXfputattr(NXhandle fid, char *name, void *data,1200 NXstatus NXfputattr(NXhandle fid, char *name, void *data, 1199 1201 int *pDatalen, int *pIType) 1200 1202 { … … 1215 1217 return ret; 1216 1218 } 1219 1220 /* 1221 * windows stdcall aliases 1222 */ 1223 #ifdef _WIN32 1224 1225 NXstatus __stdcall NXISETCACHE(long newVal) 1226 { 1227 return NXsetcache(newVal); 1228 } 1229 1230 void __stdcall NXNXNXREPORTERROR(void *pData, char *string) 1231 { 1232 NXNXNXReportError(pData, string); 1233 } 1234 1235 NXstatus __stdcall NXIOPEN(CONSTCHAR *filename, NXaccess am, NXhandle *gHandle) 1236 { 1237 return NXopen(filename, am, gHandle); 1238 } 1239 1240 NXstatus __stdcall NXICLOSE(NXhandle *fid) 1241 { 1242 return NXclose(fid); 1243 } 1244 1245 NXstatus __stdcall NXIFLUSH(NXhandle* pHandle) 1246 { 1247 return NXflush(pHandle); 1248 } 1249 1250 NXstatus __stdcall NXIMAKEGROUP(NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass) 1251 { 1252 return NXmakegroup(handle, name, NXclass); 1253 } 1254 1255 NXstatus __stdcall NXIOPENGROUP(NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass) 1256 { 1257 return NXopengroup(handle, name, NXclass); 1258 } 1259 1260 NXstatus __stdcall NXIOPENPATH(NXhandle handle, CONSTCHAR *path) 1261 { 1262 return NXopenpath(handle, path); 1263 } 1264 1265 NXstatus __stdcall NXIOPENGROUPPATH (NXhandle handle, CONSTCHAR *path) 1266 { 1267 return NXopengrouppath(handle, path); 1268 } 1269 1270 NXstatus __stdcall NXICLOSEGROUP(NXhandle handle) 1271 { 1272 return NXclosegroup(handle); 1273 } 1274 1275 NXstatus __stdcall NXIMAKEDATA (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[]) 1276 { 1277 return NXmakedata (handle, label, datatype, rank, dim); 1278 } 1279 1280 NXstatus __stdcall NXICOMPMAKEDATA (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[], int comp_typ, int bufsize[]) 1281 { 1282 return NXcompmakedata (handle, label, datatype, rank, dim, comp_typ, bufsize); 1283 } 1284 1285 NXstatus __stdcall NXICOMPRESS (NXhandle handle, int compr_type) 1286 { 1287 return NXcompress (handle, compr_type); 1288 } 1289 1290 NXstatus __stdcall NXIOPENDATA (NXhandle handle, CONSTCHAR* label) 1291 { 1292 return NXopendata (handle, label); 1293 } 1294 1295 NXstatus __stdcall NXICLOSEDATA(NXhandle handle) 1296 { 1297 return NXclosedata(handle); 1298 } 1299 1300 NXstatus __stdcall NXIPUTDATA(NXhandle handle, void* data) 1301 { 1302 return NXputdata(handle, data); 1303 } 1304 1305 NXstatus __stdcall NXIPUTATTR(NXhandle handle, CONSTCHAR* name, void* data, int iDataLen, int iType) 1306 { 1307 return NXputattr(handle, name, data, iDataLen, iType); 1308 } 1309 1310 NXstatus __stdcall NXIPUTSLAB(NXhandle handle, void* data, int start[], int size[]) 1311 { 1312 return NXputslab(handle, data, start, size); 1313 } 1314 1315 NXstatus __stdcall NXIGETDATAID(NXhandle handle, NXlink* pLink) 1316 { 1317 return NXgetdataID(handle, pLink); 1318 } 1319 1320 NXstatus __stdcall NXIMAKELINK(NXhandle handle, NXlink* pLink) 1321 { 1322 return NXmakelink(handle, pLink); 1323 } 1324 1325 NXstatus __stdcall NXIOPENSOURCEGROUP(NXhandle handle) 1326 { 1327 return NXopensourcegroup(handle); 1328 } 1329 1330 NXstatus __stdcall NXIGETDATA(NXhandle handle, void* data) 1331 { 1332 return NXgetdata(handle, data); 1333 } 1334 1335 NXstatus __stdcall NXIGETINFO(NXhandle handle, int* rank, int dimension[], int* datatype) 1336 { 1337 return NXgetinfo(handle, rank, dimension, datatype); 1338 } 1339 1340 NXstatus __stdcall NXIGETNEXTENTRY(NXhandle handle, NXname name, NXname nxclass, int* datatype) 1341 { 1342 return NXgetnextentry(handle, name, nxclass, datatype); 1343 } 1344 1345 NXstatus __stdcall NXIGETSLAB(NXhandle handle, void* data, int start[], int size[]) 1346 { 1347 return NXgetslab(handle, data, start, size); 1348 } 1349 1350 NXstatus __stdcall NXIGETNEXTATTR(NXhandle handle, NXname pName, int *iLength, int *iType) 1351 { 1352 return NXgetnextattr(handle, pName, iLength, iType); 1353 } 1354 1355 NXstatus __stdcall NXIGETATTR(NXhandle handle, char* name, void* data, int* iDataLen, int* iType) 1356 { 1357 return NXgetattr(handle, name, data, iDataLen, iType); 1358 } 1359 1360 NXstatus __stdcall NXIGETATTRINFO(NXhandle handle, int* no_items) 1361 { 1362 return NXgetattrinfo(handle, no_items); 1363 } 1364 1365 NXstatus __stdcall NXIGETGROUPID(NXhandle handle, NXlink* pLink) 1366 { 1367 return NXgetgroupID(handle, pLink); 1368 } 1369 1370 NXstatus __stdcall NXIGETGROUPINFO(NXhandle handle, int* no_items, NXname name, NXname nxclass) 1371 { 1372 return NXgetgroupinfo(handle, no_items, name, nxclass); 1373 } 1374 1375 NXstatus __stdcall NXISAMEID(NXhandle handle, NXlink* pFirstID, NXlink* pSecondID) 1376 { 1377 return NXsameID(handle, pFirstID, pSecondID); 1378 } 1379 1380 NXstatus __stdcall NXIINITGROUPDIR(NXhandle handle) 1381 { 1382 return NXinitgroupdir(handle); 1383 } 1384 NXstatus __stdcall NXIINITATTRDIR(NXhandle handle) 1385 { 1386 return NXinitattrdir(handle); 1387 } 1388 NXstatus __stdcall NXISETNUMBERFORMAT(NXhandle handle, int type, char *format) 1389 { 1390 return NXsetnumberformat(handle,type, format); 1391 } 1392 1393 NXstatus __stdcall NXIMALLOC(void** data, int rank, int dimensions[], int datatype) 1394 { 1395 return NXmalloc(data, rank, dimensions, datatype); 1396 } 1397 1398 NXstatus __stdcall NXIFREE(void** data) 1399 { 1400 return NXfree(data); 1401 } 1402 1403 #if 0 1404 /*----------------------------------------------------------------------- 1405 NAPI internals 1406 ------------------------------------------------------------------------*/ 1407 extern void NXMSetError(void *pData, void (*ErrFunc)(void *pD, char *text)); 1408 extern void (*NXIReportError)(void *pData,char *text); 1409 extern void *NXpData; 1410 extern char *NXIformatNeXusTime(); 1411 #endif 1412 1413 /* FORTRAN internals */ 1414 1415 NXstatus __stdcall NXIFOPEN(char * filename, NXaccess* am, 1416 NexusFunction* pHandle) 1417 { 1418 return NXfopen(filename, am, pHandle); 1419 } 1420 1421 NXstatus __stdcall NXIFCLOSE (NexusFunction* pHandle) 1422 { 1423 return NXfclose (pHandle); 1424 } 1425 1426 NXstatus __stdcall NXIFPUTATTR(NXhandle fid, char *name, void *data, 1427 int *pDatalen, int *pIType) 1428 { 1429 return NXfputattr(fid, name, data, pDatalen, pIType); 1430 } 1431 1432 NXstatus __stdcall NXIFCOMPRESS(NXhandle fid, int *compr_type) 1433 { 1434 return NXfcompress(fid, compr_type); 1435 } 1436 1437 NXstatus __stdcall NXIFCOMPMAKEDATA(NXhandle fid, char *name, 1438 int *pDatatype, 1439 int *pRank, int dimensions[], 1440 int *compression_type, int chunk[]) 1441 { 1442 return NXfcompmakedata(fid, name, pDatatype, pRank, dimensions, 1443 compression_type, chunk); 1444 } 1445 1446 NXstatus __stdcall NXIFMAKEDATA(NXhandle fid, char *name, int *pDatatype, 1447 int *pRank, int dimensions[]) 1448 { 1449 return NXfmakedata(fid, name, pDatatype, pRank, dimensions); 1450 } 1451 1452 NXstatus __stdcall NXIFFLUSH(NexusFunction* pHandle) 1453 { 1454 return NXfflush(pHandle); 1455 } 1456 1457 #endif /* _WIN32 */ -
trunk/src/napi4.c
r510 r671 321 321 322 322 323 NXstatus CALLING_STYLENX4open(CONSTCHAR *filename, NXaccess am,323 NXstatus NX4open(CONSTCHAR *filename, NXaccess am, 324 324 NXhandle* pHandle) 325 325 { … … 455 455 /*-----------------------------------------------------------------------*/ 456 456 457 NXstatus CALLING_STYLENX4close (NXhandle* fid)457 NXstatus NX4close (NXhandle* fid) 458 458 { 459 459 pNexusFile pFile = NULL; … … 493 493 494 494 495 NXstatus CALLING_STYLENX4makegroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass)495 NXstatus NX4makegroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass) 496 496 { 497 497 pNexusFile pFile; … … 537 537 538 538 539 NXstatus CALLING_STYLENX4opengroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass)539 NXstatus NX4opengroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass) 540 540 { 541 541 pNexusFile pFile; … … 571 571 572 572 573 NXstatus CALLING_STYLENX4closegroup (NXhandle fid)573 NXstatus NX4closegroup (NXhandle fid) 574 574 { 575 575 pNexusFile pFile; … … 604 604 /* --------------------------------------------------------------------- */ 605 605 606 NXstatus CALLING_STYLENX4makedata (NXhandle fid, CONSTCHAR *name, int datatype, int rank,606 NXstatus NX4makedata (NXhandle fid, CONSTCHAR *name, int datatype, int rank, 607 607 int dimensions[]) 608 608 { … … 729 729 730 730 731 NXstatus CALLING_STYLENX4compmakedata (NXhandle fid, CONSTCHAR *name, int datatype, int rank,731 NXstatus NX4compmakedata (NXhandle fid, CONSTCHAR *name, int datatype, int rank, 732 732 int dimensions[],int compress_type, int chunk_size[]) 733 733 { … … 896 896 897 897 898 NXstatus CALLING_STYLENX4compress (NXhandle fid, int compress_type)898 NXstatus NX4compress (NXhandle fid, int compress_type) 899 899 { 900 900 pNexusFile pFile; … … 960 960 961 961 962 NXstatus CALLING_STYLENX4opendata (NXhandle fid, CONSTCHAR *name)962 NXstatus NX4opendata (NXhandle fid, CONSTCHAR *name) 963 963 { 964 964 pNexusFile pFile; … … 1002 1002 1003 1003 1004 NXstatus CALLING_STYLENX4closedata (NXhandle fid)1004 NXstatus NX4closedata (NXhandle fid) 1005 1005 { 1006 1006 pNexusFile pFile; … … 1027 1027 /* ------------------------------------------------------------------- */ 1028 1028 1029 NXstatus CALLING_STYLENX4putdata (NXhandle fid, void *data)1029 NXstatus NX4putdata (NXhandle fid, void *data) 1030 1030 { 1031 1031 pNexusFile pFile; … … 1064 1064 1065 1065 NXstatus 1066 CALLING_STYLENX4putattr (NXhandle fid, CONSTCHAR *name, void *data, int datalen, int iType)1066 NX4putattr (NXhandle fid, CONSTCHAR *name, void *data, int datalen, int iType) 1067 1067 { 1068 1068 pNexusFile pFile; … … 1127 1127 1128 1128 1129 NXstatus CALLING_STYLENX4putslab (NXhandle fid, void *data, int iStart[], int iSize[])1129 NXstatus NX4putslab (NXhandle fid, void *data, int iStart[], int iSize[]) 1130 1130 { 1131 1131 pNexusFile pFile; … … 1184 1184 /* ------------------------------------------------------------------- */ 1185 1185 1186 NXstatus CALLING_STYLENX4getdataID (NXhandle fid, NXlink* sRes)1186 NXstatus NX4getdataID (NXhandle fid, NXlink* sRes) 1187 1187 { 1188 1188 pNexusFile pFile; … … 1207 1207 1208 1208 1209 NXstatus CALLING_STYLENX4makelink (NXhandle fid, NXlink* sLink)1209 NXstatus NX4makelink (NXhandle fid, NXlink* sLink) 1210 1210 { 1211 1211 pNexusFile pFile; … … 1234 1234 /*----------------------------------------------------------------------*/ 1235 1235 1236 NXstatus CALLING_STYLENX4flush(NXhandle *pHandle)1236 NXstatus NX4flush(NXhandle *pHandle) 1237 1237 { 1238 1238 char *pFileName, *pCopy = NULL; … … 1315 1315 1316 1316 1317 NXstatus CALLING_STYLENX4getnextentry (NXhandle fid, NXname name, NXname nxclass, int *datatype)1317 NXstatus NX4getnextentry (NXhandle fid, NXname name, NXname nxclass, int *datatype) 1318 1318 { 1319 1319 pNexusFile pFile; … … 1397 1397 1398 1398 1399 NXstatus CALLING_STYLENX4getdata (NXhandle fid, void *data)1399 NXstatus NX4getdata (NXhandle fid, void *data) 1400 1400 { 1401 1401 pNexusFile pFile; … … 1422 1422 1423 1423 NXstatus 1424 CALLING_STYLENX4getinfo (NXhandle fid, int *rank, int dimension[],1424 NX4getinfo (NXhandle fid, int *rank, int dimension[], 1425 1425 int *iType) 1426 1426 { … … 1454 1454 1455 1455 1456 NXstatus CALLING_STYLENX4getslab (NXhandle fid, void *data, int iStart[], int iSize[])1456 NXstatus NX4getslab (NXhandle fid, void *data, int iStart[], int iSize[]) 1457 1457 { 1458 1458 pNexusFile pFile; … … 1497 1497 /*-------------------------------------------------------------------------*/ 1498 1498 1499 NXstatus CALLING_STYLENX4getnextattr (NXhandle fileid, NXname pName,1499 NXstatus NX4getnextattr (NXhandle fileid, NXname pName, 1500 1500 int *iLength, int *iType) 1501 1501 { … … 1540 1540 1541 1541 1542 NXstatus CALLING_STYLENX4getattr (NXhandle fid, char *name, void *data, int* datalen, int* iType)1542 NXstatus NX4getattr (NXhandle fid, char *name, void *data, int* datalen, int* iType) 1543 1543 { 1544 1544 pNexusFile pFile; … … 1649 1649 1650 1650 1651 NXstatus CALLING_STYLENX4getattrinfo (NXhandle fid, int *iN)1651 NXstatus NX4getattrinfo (NXhandle fid, int *iN) 1652 1652 { 1653 1653 pNexusFile pFile; … … 1675 1675 /*-------------------------------------------------------------------------*/ 1676 1676 1677 NXstatus CALLING_STYLENX4getgroupID (NXhandle fileid, NXlink* sRes)1677 NXstatus NX4getgroupID (NXhandle fileid, NXlink* sRes) 1678 1678 { 1679 1679 pNexusFile pFile; … … 1698 1698 1699 1699 NXstatus 1700 CALLING_STYLENX4getgroupinfo (NXhandle fid, int *iN, NXname pName, NXname pClass)1700 NX4getgroupinfo (NXhandle fid, int *iN, NXname pName, NXname pClass) 1701 1701 { 1702 1702 pNexusFile pFile; … … 1719 1719 /* ------------------------------------------------------------------- */ 1720 1720 1721 NXstatus CALLING_STYLENX4sameID (NXhandle fileid, NXlink* pFirstID, NXlink* pSecondID)1721 NXstatus NX4sameID (NXhandle fileid, NXlink* pFirstID, NXlink* pSecondID) 1722 1722 { 1723 1723 pNexusFile pFile; … … 1734 1734 1735 1735 1736 NXstatus CALLING_STYLENX4initattrdir (NXhandle fid)1736 NXstatus NX4initattrdir (NXhandle fid) 1737 1737 { 1738 1738 pNexusFile pFile; … … 1751 1751 1752 1752 1753 NXstatus CALLING_STYLENX4initgroupdir (NXhandle fid)1753 NXstatus NX4initgroupdir (NXhandle fid) 1754 1754 { 1755 1755 pNexusFile pFile; -
trunk/src/napi5.c
r510 r671 63 63 warning 64 64 */ 65 NXstatus CALLING_STYLENX5closegroup (NXhandle fid);65 NXstatus NX5closegroup (NXhandle fid); 66 66 67 67 /*--------------------------------------------------------------------*/ … … 113 113 ---------------------------------------------------------------------*/ 114 114 115 NXstatus CALLING_STYLENX5open(CONSTCHAR *filename, NXaccess am,115 NXstatus NX5open(CONSTCHAR *filename, NXaccess am, 116 116 NXhandle* pHandle) 117 117 { … … 298 298 /* ------------------------------------------------------------------------- */ 299 299 300 NXstatus CALLING_STYLENX5close (NXhandle* fid)300 NXstatus NX5close (NXhandle* fid) 301 301 { 302 302 pNexusFile5 pFile = NULL; … … 345 345 /*-----------------------------------------------------------------------*/ 346 346 347 NXstatus CALLING_STYLENX5makegroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass)347 NXstatus NX5makegroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass) 348 348 { 349 349 pNexusFile5 pFile; … … 401 401 } 402 402 403 NXstatus CALLING_STYLENX5opengroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass)403 NXstatus NX5opengroup (NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass) 404 404 { 405 405 … … 503 503 /* ------------------------------------------------------------------- */ 504 504 505 NXstatus CALLING_STYLENX5closegroup (NXhandle fid)505 NXstatus NX5closegroup (NXhandle fid) 506 506 { 507 507 pNexusFile5 pFile; … … 560 560 /* --------------------------------------------------------------------- */ 561 561 562 NXstatus CALLING_STYLENX5compmakedata (NXhandle fid, CONSTCHAR *name,562 NXstatus NX5compmakedata (NXhandle fid, CONSTCHAR *name, 563 563 int datatype, 564 564 int rank, int dimensions[], … … 729 729 /* --------------------------------------------------------------------- */ 730 730 731 NXstatus CALLING_STYLENX5makedata (NXhandle fid, CONSTCHAR *name, int datatype,731 NXstatus NX5makedata (NXhandle fid, CONSTCHAR *name, int datatype, 732 732 int rank, int dimensions[]) 733 733 { … … 753 753 /* --------------------------------------------------------------------- */ 754 754 755 NXstatus CALLING_STYLENX5compress (NXhandle fid, int compress_type)755 NXstatus NX5compress (NXhandle fid, int compress_type) 756 756 { 757 757 printf(" NXcompress ERROR: NeXus API based on HDF5 doesn't support\n"); … … 764 764 /* --------------------------------------------------------------------- */ 765 765 766 NXstatus CALLING_STYLENX5opendata (NXhandle fid, CONSTCHAR *name)766 NXstatus NX5opendata (NXhandle fid, CONSTCHAR *name) 767 767 { 768 768 pNexusFile5 pFile; … … 804 804 /* ----------------------------------------------------------------- */ 805 805 806 NXstatus CALLING_STYLENX5closedata (NXhandle fid)806 NXstatus NX5closedata (NXhandle fid) 807 807 { 808 808 pNexusFile5 pFile; … … 825 825 826 826 827 NXstatus CALLING_STYLENX5putdata (NXhandle fid, void *data)827 NXstatus NX5putdata (NXhandle fid, void *data) 828 828 { 829 829 pNexusFile5 pFile; … … 847 847 /* ------------------------------------------------------------------- */ 848 848 849 NXstatus CALLING_STYLENX5putattr (NXhandle fid, CONSTCHAR *name, void *data,849 NXstatus NX5putattr (NXhandle fid, CONSTCHAR *name, void *data, 850 850 int datalen, int iType) 851 851 { … … 964 964 /* ------------------------------------------------------------------- */ 965 965 966 NXstatus CALLING_STYLENX5putslab (NXhandle fid, void *data, int iStart[], int iSize[])966 NXstatus NX5putslab (NXhandle fid, void *data, int iStart[], int iSize[]) 967 967 { 968 968 pNexusFile5 pFile; … … 1033 1033 /* ------------------------------------------------------------------- */ 1034 1034 1035 NXstatus CALLING_STYLENX5getdataID (NXhandle fid, NXlink* sRes)1035 NXstatus NX5getdataID (NXhandle fid, NXlink* sRes) 1036 1036 { 1037 1037 pNexusFile5 pFile; … … 1053 1053 /* ------------------------------------------------------------------- */ 1054 1054 1055 NXstatus CALLING_STYLENX5makelink (NXhandle fid, NXlink* sLink)1055 NXstatus NX5makelink (NXhandle fid, NXlink* sLink) 1056 1056 { 1057 1057 pNexusFile5 pFile; … … 1124 1124 /*----------------------------------------------------------------------*/ 1125 1125 1126 NXstatus CALLING_STYLENX5flush(NXhandle *pHandle)1126 NXstatus NX5flush(NXhandle *pHandle) 1127 1127 { 1128 1128 pNexusFile5 pFile = NULL; … … 1203 1203 /*-------------------------------------------------------------------------*/ 1204 1204 1205 NXstatus CALLING_STYLENX5getgroupinfo (NXhandle fid, int *iN, NXname pName, NXname pClass)1205 NXstatus NX5getgroupinfo (NXhandle fid, int *iN, NXname pName, NXname pClass) 1206 1206 { 1207 1207 pNexusFile5 pFile; … … 1240 1240 /*-------------------------------------------------------------------------*/ 1241 1241 1242 NXstatus CALLING_STYLENX5getnextentry (NXhandle fid,NXname name, NXname nxclass, int *datatype)1242 NXstatus NX5getnextentry (NXhandle fid,NXname name, NXname nxclass, int *datatype) 1243 1243 { 1244 1244 pNexusFile5 pFile; … … 1382 1382 /*-------------------------------------------------------------------------*/ 1383 1383 1384 NXstatus CALLING_STYLENX5getdata (NXhandle fid, void *data)1384 NXstatus NX5getdata (NXhandle fid, void *data) 1385 1385 { 1386 1386 pNexusFile5 pFile; … … 1465 1465 /*-------------------------------------------------------------------------*/ 1466 1466 1467 NXstatus CALLING_STYLENX5getinfo (NXhandle fid, int *rank, int dimension[], int *iType)1467 NXstatus NX5getinfo (NXhandle fid, int *rank, int dimension[], int *iType) 1468 1468 { 1469 1469 pNexusFile5 pFile; … … 1548 1548 /*-------------------------------------------------------------------------*/ 1549 1549 1550 NXstatus CALLING_STYLENX5getslab (NXhandle fid, void *data, int iStart[], int iSize[])1550 NXstatus NX5getslab (NXhandle fid, void *data, int iStart[], int iSize[]) 1551 1551 { 1552 1552 pNexusFile5 pFile; … … 1683 1683 } 1684 1684 1685 NXstatus CALLING_STYLENX5getnextattr (NXhandle fileid, NXname pName,1685 NXstatus NX5getnextattr (NXhandle fileid, NXname pName, 1686 1686 int *iLength, int *iType) 1687 1687 { … … 1833 1833 /*-------------------------------------------------------------------------*/ 1834 1834 1835 NXstatus CALLING_STYLENX5getattr (NXhandle fid, char *name, void *data, int* datalen, int* iType)1835 NXstatus NX5getattr (NXhandle fid, char *name, void *data, int* datalen, int* iType) 1836 1836 { 1837 1837 pNexusFile5 pFile; … … 1935 1935 /*-------------------------------------------------------------------------*/ 1936 1936 1937 NXstatus CALLING_STYLENX5getattrinfo (NXhandle fid, int *iN)1937 NXstatus NX5getattrinfo (NXhandle fid, int *iN) 1938 1938 { 1939 1939 pNexusFile5 pFile; … … 1997 1997 1998 1998 /*-------------------------------------------------------------------------*/ 1999 NXstatus CALLING_STYLENX5getgroupID (NXhandle fileid, NXlink* sRes)1999 NXstatus NX5getgroupID (NXhandle fileid, NXlink* sRes) 2000 2000 { 2001 2001 pNexusFile5 pFile; … … 2022 2022 /* ------------------------------------------------------------------- */ 2023 2023 2024 NXstatus CALLING_STYLENX5sameID (NXhandle fileid, NXlink* pFirstID, NXlink* pSecondID)2024 NXstatus NX5sameID (NXhandle fileid, NXlink* pFirstID, NXlink* pSecondID) 2025 2025 { 2026 2026 pNexusFile5 pFile; … … 2038 2038 /*-------------------------------------------------------------------------*/ 2039 2039 2040 NXstatus CALLING_STYLENX5initattrdir (NXhandle fid)2040 NXstatus NX5initattrdir (NXhandle fid) 2041 2041 { 2042 2042 pNexusFile5 pFile; … … 2049 2049 /*-------------------------------------------------------------------------*/ 2050 2050 2051 NXstatus CALLING_STYLENX5initgroupdir (NXhandle fid)2051 NXstatus NX5initgroupdir (NXhandle fid) 2052 2052 { 2053 2053 pNexusFile5 pFile; -
trunk/src/napiu.c
r433 r671 42 42 } 43 43 44 NXstatus CALLING_STYLENXUwriteglobals(NXhandle file_id, const char* user, const char* affiliation, const char* address, const char* telephone_number, const char* fax_number, const char* email)44 NXstatus NXUwriteglobals(NXhandle file_id, const char* user, const char* affiliation, const char* address, const char* telephone_number, const char* fax_number, const char* email) 45 45 { 46 46 DO_GLOBAL(user); … … 54 54 55 55 /* NXUwritegroup creates and leaves open a group */ 56 NXstatus CALLING_STYLENXUwritegroup(NXhandle file_id, const char* group_name, const char* group_class)56 NXstatus NXUwritegroup(NXhandle file_id, const char* group_name, const char* group_class) 57 57 { 58 58 int status; … … 65 65 } 66 66 67 NXstatus CALLING_STYLENXUwritedata(NXhandle file_id, const char* data_name, const void* data, int data_type, int rank, const int dim[], const char* units, const int start[], const int size[])67 NXstatus NXUwritedata(NXhandle file_id, const char* data_name, const void* data, int data_type, int rank, const int dim[], const char* units, const int start[], const int size[]) 68 68 { 69 69 return NX_OK; 70 70 } 71 71 72 NXstatus CALLING_STYLENXUreaddata(NXhandle file_id, const char* data_name, void* data, char* units, const int start[], const int size[])72 NXstatus NXUreaddata(NXhandle file_id, const char* data_name, void* data, char* units, const int start[], const int size[]) 73 73 { 74 74 return NX_OK; 75 75 } 76 76 77 NXstatus CALLING_STYLENXUwritehistogram(NXhandle file_id, const char* data_name, const void* data, const char* units)77 NXstatus NXUwritehistogram(NXhandle file_id, const char* data_name, const void* data, const char* units) 78 78 { 79 79 return NX_OK; 80 80 } 81 81 82 NXstatus CALLING_STYLENXUreadhistogram(NXhandle file_id, const char* data_name, void* data, char* units)82 NXstatus NXUreadhistogram(NXhandle file_id, const char* data_name, void* data, char* units) 83 83 { 84 84 return NX_OK; … … 89 89 90 90 /* NXUsetcompress sets the default compression type and minimum size */ 91 NXstatus CALLING_STYLENXUsetcompress(NXhandle file_id, int comp_type, int comp_size)91 NXstatus NXUsetcompress(NXhandle file_id, int comp_type, int comp_size) 92 92 { 93 93 int status; … … 111 111 112 112 /* !NXUfindgroup finds if a NeXus group of the specified name exists */ 113 NXstatus CALLING_STYLENXUfindgroup(NXhandle file_id, const char* group_name, char* group_class)113 NXstatus NXUfindgroup(NXhandle file_id, const char* group_name, char* group_class) 114 114 { 115 115 int status, n; … … 123 123 } 124 124 125 NXstatus CALLING_STYLENXUfindclass(NXhandle file_id, const char* group_class, char* group_name, int find_index)125 NXstatus NXUfindclass(NXhandle file_id, const char* group_class, char* group_name, int find_index) 126 126 { 127 127 return NX_OK; … … 129 129 130 130 /* NXUfinddata finds if a NeXus data item is in the current group */ 131 NXstatus CALLING_STYLENXUfinddata(NXhandle file_id, const char* data_name)131 NXstatus NXUfinddata(NXhandle file_id, const char* data_name) 132 132 { 133 133 return NX_OK; 134 134 } 135 135 136 NXstatus CALLING_STYLENXUfindattr(NXhandle file_id, const char* attr_name)136 NXstatus NXUfindattr(NXhandle file_id, const char* attr_name) 137 137 { 138 138 return NX_OK; 139 139 } 140 140 141 NXstatus CALLING_STYLENXUfindsignal(NXhandle file_id, int signal, char* data_name, int* data_rank, int* data_type, int data_dimensions[])141 NXstatus NXUfindsignal(NXhandle file_id, int signal, char* data_name, int* data_rank, int* data_type, int data_dimensions[]) 142 142 { 143 143 return NX_OK; 144 144 } 145 145 146 NXstatus CALLING_STYLENXUfindaxis(NXhandle file_id, int axis, int primary, char* data_name, int* data_rank, int* data_type, int data_dimensions[])146 NXstatus NXUfindaxis(NXhandle file_id, int axis, int primary, char* data_name, int* data_rank, int* data_type, int data_dimensions[]) 147 147 { 148 148 return NX_OK; 149 149 } 150 150 151 NXstatus CALLING_STYLENXUfindlink(NXhandle file_id, NXlink* group_id, const char* group_class)151 NXstatus NXUfindlink(NXhandle file_id, NXlink* group_id, const char* group_class) 152 152 { 153 153 return NX_OK; 154 154 } 155 155 156 NXstatus CALLING_STYLENXUresumelink(NXhandle file_id, NXlink group_id)156 NXstatus NXUresumelink(NXhandle file_id, NXlink group_id) 157 157 { 158 158 return NX_OK; -
trunk/src/nxxml.c
r509 r671 93 93 } 94 94 /*-----------------------------------------------------------------------*/ 95 NXstatus CALLING_STYLENXXopen(CONSTCHAR *filename, NXaccess am,95 NXstatus NXXopen(CONSTCHAR *filename, NXaccess am, 96 96 NXhandle* pHandle) { 97 97 pXMLNexus xmlHandle = NULL; … … 172 172 } 173 173 /*----------------------------------------------------------------------*/ 174 NXstatus CALLING_STYLENXXclose (NXhandle* fid){174 NXstatus NXXclose (NXhandle* fid){ 175 175 pXMLNexus xmlHandle = NULL; 176 176 FILE *fp = NULL; … … 194 194 } 195 195 /*----------------------------------------------------------------------*/ 196 NXstatus CALLING_STYLENXXflush(NXhandle *fid){196 NXstatus NXXflush(NXhandle *fid){ 197 197 pXMLNexus xmlHandle = NULL; 198 198 FILE *fp = NULL; … … 215 215 Group functions 216 216 =========================================================================*/ 217 NXstatus CALLING_STYLENXXmakegroup (NXhandle fid, CONSTCHAR *name,217 NXstatus NXXmakegroup (NXhandle fid, CONSTCHAR *name, 218 218 CONSTCHAR *nxclass){ 219 219 pXMLNexus xmlHandle = NULL; … … 262 262 } 263 263 /*------------------------------------------------------------------------*/ 264 NXstatus CALLING_STYLENXXopengroup (NXhandle fid, CONSTCHAR *name,264 NXstatus NXXopengroup (NXhandle fid, CONSTCHAR *name, 265 265 CONSTCHAR *nxclass){ 266 266 pXMLNexus xmlHandle = NULL; … … 296 296 } 297 297 /*----------------------------------------------------------------------*/ 298 NXstatus CALLING_STYLENXXclosegroup (NXhandle fid){298 NXstatus NXXclosegroup (NXhandle fid){ 299 299 pXMLNexus xmlHandle = NULL; 300 300 mxml_node_t *newGroup = NULL; … … 318 318 dataset functions 319 319 =========================================================================*/ 320 NXstatus CALLING_STYLENXXcompmakedata (NXhandle fid, CONSTCHAR *name,320 NXstatus NXXcompmakedata (NXhandle fid, CONSTCHAR *name, 321 321 int datatype, 322 322 int rank, … … 358 358 } 359 359 /*------------------------------------------------------------------------*/ 360 NXstatus CALLING_STYLENXXmakedata (NXhandle fid,360 NXstatus NXXmakedata (NXhandle fid, 361 361 CONSTCHAR *name, int datatype, 362 362 int rank, int dimensions[]){ … … 454 454 } 455 455 /*-----------------------------------------------------------------------*/ 456 NXstatus CALLING_STYLENXXopendata (NXhandle fid, CONSTCHAR *name){456 NXstatus NXXopendata (NXhandle fid, CONSTCHAR *name){ 457 457 pXMLNexus xmlHandle = NULL; 458 458 mxml_node_t *dataNode = NULL; … … 493 493 } 494 494 /*----------------------------------------------------------------------*/ 495 NXstatus CALLING_STYLENXXclosedata (NXhandle fid){495 NXstatus NXXclosedata (NXhandle fid){ 496 496 pXMLNexus xmlHandle = NULL; 497 497 … … 519 519 } 520 520 /*------------------------------------------------------------------------*/ 521 NXstatus CALLING_STYLENXXputdata (NXhandle fid, void *data){521 NXstatus NXXputdata (NXhandle fid, void *data){ 522 522 pXMLNexus xmlHandle = NULL; 523 523 mxml_node_t *userData = NULL; … … 551 551 } 552 552 /*------------------------------------------------------------------------*/ 553 NXstatus CALLING_STYLENXXgetdata (NXhandle fid, void *data){553 NXstatus NXXgetdata (NXhandle fid, void *data){ 554 554 pXMLNexus xmlHandle = NULL; 555 555 mxml_node_t *userData = NULL; … … 583 583 } 584 584 /*------------------------------------------------------------------------*/ 585 NXstatus CALLING_STYLENXXgetinfo (NXhandle fid, int *rank,585 NXstatus NXXgetinfo (NXhandle fid, int *rank, 586 586 int dimension[], int *iType){ 587 587 pXMLNexus xmlHandle = NULL; … … 672 672 } 673 673 /*----------------------------------------------------------------------*/ 674 NXstatus CALLING_STYLENXXputslab (NXhandle fid, void *data,674 NXstatus NXXputslab (NXhandle fid, void *data, 675 675 int iStart[], int iSize[]){ 676 676 … … 736 736 } 737 737 /*----------------------------------------------------------------------*/ 738 NXstatus CALLING_STYLENXXgetslab (NXhandle fid, void *data,738 NXstatus NXXgetslab (NXhandle fid, void *data, 739 739 int iStart[], int iSize[]){ 740 740 pXMLNexus xmlHandle = NULL; … … 773 773 } 774 774 /*----------------------------------------------------------------------*/ 775 static NXstatus CALLING_STYLENXXsetnumberformat(NXhandle fid,775 static NXstatus NXXsetnumberformat(NXhandle fid, 776 776 int type, char *format){ 777 777 pXMLNexus xmlHandle = NULL; … … 874 874 } 875 875 /*---------------------------------------------------------------------*/ 876 NXstatus CALLING_STYLENXXputattr (NXhandle fid, CONSTCHAR *name, void *data,876 NXstatus NXXputattr (NXhandle fid, CONSTCHAR *name, void *data, 877 877 int datalen, int iType){ 878 878 pXMLNexus xmlHandle = NULL; … … 910 910 } 911 911 /*--------------------------------------------------------------------------*/ 912 NXstatus CALLING_STYLENXXgetattr (NXhandle fid, char *name,912 NXstatus NXXgetattr (NXhandle fid, char *name, 913 913 void *data, int* datalen, int* iType){ 914 914 pXMLNexus xmlHandle = NULL; … … 1007 1007 } 1008 1008 /*====================== search functions =================================*/ 1009 NXstatus CALLING_STYLENXXgetnextentry (NXhandle fid,NXname name,1009 NXstatus NXXgetnextentry (NXhandle fid,NXname name, 1010 1010 NXname nxclass, int *datatype){ 1011 1011 pXMLNexus xmlHandle = NULL; … … 1085 1085 } 1086 1086 /*----------------------------------------------------------------------*/ 1087 NX_EXTERNAL NXstatus CALLING_STYLENXXinitgroupdir(NXhandle fid){1087 extern NXstatus NXXinitgroupdir(NXhandle fid){ 1088 1088 pXMLNexus xmlHandle = NULL; 1089 1089 int stackPtr; … … 1102 1102 } 1103 1103 /*-------------------------------------------------------------------------*/ 1104 NXstatus CALLING_STYLENXXgetnextattr (NXhandle fid, NXname pName,1104 NXstatus NXXgetnextattr (NXhandle fid, NXname pName, 1105 1105 int *iLength, int *iType){ 1106 1106 pXMLNexus xmlHandle = NULL; … … 1158 1158 } 1159 1159 /*-------------------------------------------------------------------------*/ 1160 NX_EXTERNAL NXstatus CALLING_STYLENXXinitattrdir(NXhandle fid){1160 extern NXstatus NXXinitattrdir(NXhandle fid){ 1161 1161 pXMLNexus xmlHandle = NULL; 1162 1162 int stackPtr; … … 1181 1181 } 1182 1182 /*-------------------------------------------------------------------------*/ 1183 NXstatus CALLING_STYLENXXgetgroupinfo (NXhandle fid, int *iN,1183 NXstatus NXXgetgroupinfo (NXhandle fid, int *iN, 1184 1184 NXname pName, NXname pClass){ 1185 1185 pXMLNexus xmlHandle = NULL; … … 1214 1214 } 1215 1215 /*----------------------------------------------------------------------*/ 1216 NXstatus CALLING_STYLENXXgetattrinfo (NXhandle fid, int *iN){1216 NXstatus NXXgetattrinfo (NXhandle fid, int *iN){ 1217 1217 pXMLNexus xmlHandle = NULL; 1218 1218 mxml_node_t *current = NULL; … … 1329 1329 } 1330 1330 /*--------------------------------------------------------------------*/ 1331 NXstatus CALLING_STYLENXXgetdataID (NXhandle fid, NXlink* sRes){1331 NXstatus NXXgetdataID (NXhandle fid, NXlink* sRes){ 1332 1332 pXMLNexus xmlHandle = NULL; 1333 1333 mxml_node_t *current = NULL; … … 1352 1352 } 1353 1353 /*--------------------------------------------------------------------*/ 1354 NXstatus CALLING_STYLENXXgetgroupID (NXhandle fid, NXlink* sRes){1354 NXstatus NXXgetgroupID (NXhandle fid, NXlink* sRes){ 1355 1355 pXMLNexus xmlHandle = NULL; 1356 1356 mxml_node_t *current = NULL; … … 1380 1380 } 1381 1381 /*-----------------------------------------------------------------------*/ 1382 NXstatus CALLING_STYLENXXmakelink (NXhandle fid, NXlink* sLink){1382 NXstatus NXXmakelink (NXhandle fid, NXlink* sLink){ 1383 1383 pXMLNexus xmlHandle = NULL; 1384 1384 mxml_node_t *current = NULL, *linkNode = NULL; … … 1406 1406 } 1407 1407 /*----------------------------------------------------------------------*/ 1408 NXstatus CALLING_STYLENXXsameID (NXhandle fileid, NXlink* pFirstID,1408 NXstatus NXXsameID (NXhandle fileid, NXlink* pFirstID, 1409 1409 NXlink* pSecondID){ 1410 1410 if(strcmp(pFirstID->targetPath,pSecondID->targetPath) == 0) {
Note: See TracChangeset
for help on using the changeset viewer.
