/usr/include/ncarg/nio/nioConvert.h is in libncarg-dev 6.1.2-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | /*
* $Id: nioConvert.h,v 1.1 2009-05-15 00:49:27 dbrown Exp $
*/
/************************************************************************
* *
* Copyright (C) 1992 *
* University Corporation for Atmospheric Research *
* All Rights Reserved *
* *
************************************************************************/
/*
* File: Convert.h
*
* Author: Jeff W. Boote
* National Center for Atmospheric Research
* PO 3000, Boulder, Colorado
*
* Date: Fri Sep 11 13:26:02 MDT 1992
*
* Description: This file contains all the public declarations
* neccessary to use type conversion. It should be
* included from hlu.h so everything get's these
* declarations.
*/
#ifndef _NCONVERT_H
#define _NCONVERT_H
/* used to set args for converters during registration */
typedef enum _NhlConvertAddrModes{
NhlIMMEDIATE, /* values that fit in an NhlArgVal only! */
NhlADDR,
NhlSTRENUM, /* a hack - the size parameter is data */
NhlLAYEROFFSET
} NhlConvertAddrModes;
typedef struct _NhlConvertArg{
NhlConvertAddrModes addressmode;
int size;
NhlArgVal data;
} NhlConvertArg, *NhlConvertArgList;
/* opaque type for un-re registering */
typedef struct _NhlConvertRec NhlConvertRec, *NhlConvertPtr;
/* type for converter functions */
typedef NhlErrorTypes (*NhlTypeConverter)(
#if NhlNeedProto
NrmValue *from,
NrmValue *to,
NhlConvertArgList args,
int nargs
#endif
);
/* type for closure functions */
typedef void (*NhlCacheClosure)(
#if NhlNeedProto
NrmValue from,
NrmValue to
#endif
);
/*
* Conversion functions
*/
extern NhlErrorTypes NhlRegisterConverter(
#if NhlNeedProto
NhlClass ref_class,
NhlString from,
NhlString to,
NhlTypeConverter convert,
NhlConvertArgList args,
int nargs,
NhlBoolean cache,
NhlCacheClosure close
#endif
);
extern NhlErrorTypes NhlDeleteConverter(
#if NhlNeedProto
NhlClass ref_class,
NhlString from,
NhlString to
#endif
);
extern NhlErrorTypes NhlUnRegisterConverter(
#if NhlNeedProto
NhlClass ref_class,
NhlString from,
NhlString to,
NhlConvertPtr* ptr
#endif
);
extern NhlErrorTypes NhlReRegisterConverter(
#if NhlNeedProto
NhlConvertPtr ptr /* identifies converter to re-install */
#endif
);
extern NhlErrorTypes NhlConvertData(
#if NhlNeedProto
int ref_obj,
NhlString from,
NhlString to,
NrmValue* fptr,
NrmValue* tptr
#endif
);
/*
* These functions are for use inside Converter functions.
*/
extern NhlPointer NhlConvertMalloc(
#if NhlNeedProto
unsigned int size /* size of memory requested */
#endif
);
extern NhlGenArray NhlAllocCreateGenArray(
#if NhlNeedProto
NhlPointer data, /* data array */
NhlString type, /* type of each element */
unsigned int size, /* size of each element */
int num_dimensions, /* number of dimensions */
ng_size_t *len_dimensions /* number of dimensions */
#endif
);
/*
* This function is used as an indirection of the converter. If two
* types are equivalent (but have different names), this is one way to call
* a previously installed converter to convert the data.
*/
extern NhlErrorTypes NhlReConvertData(
#if NhlNeedProto
NhlString fname, /* from type */
NhlString tname, /* to type */
NrmValue *from, /* ptr to from data */
NrmValue *to /* ptr to to data */
#endif
);
#endif /* _NCONVERT_H */
|