/usr/include/ncarg/hlu/hluP.h is in libncarg-dev 6.3.0-13.
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 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 | /*
* $Id: hluP.h,v 1.42.4.1 2008-03-28 20:37:38 grubin Exp $
*/
/************************************************************************
* *
* Copyright (C) 1992 *
* University Corporation for Atmospheric Research *
* All Rights Reserved *
* *
************************************************************************/
/*
* File: hluP.h
*
* Author: Jeff W. Boote
* National Center for Atmospheric Research
* PO 3000, Boulder, Colorado
*
* Date: Mon Aug 31 13:41:38 MDT 1992
*
* Description: This file contains all the external definitions and
* declarations needed by hlu writers that are not
* needed by hlu users.
*/
#ifndef HLUP_H
#define HLUP_H
#include <ncarg/hlu/hlu.h>
#include <ncarg/hlu/NresDB.h>
#include <ncarg/hlu/Callbacks.h>
#include <ncarg/ncargC.h>
#include <ncarg/gks.h>
/*
* For initializing the union ArgVal in the NhlResource struct
* (works around problem with loading CodeCenter source)
*/
#ifdef CODECENTER
#define _NhlUSET(uset) uset
#else
#define _NhlUSET(uset) {(uset)}
#endif
#define _NhlRES_DEFAULT (0)
#define _NhlRES_NORACCESS (0x01)
#define _NhlRES_NOCACCESS (0x02)
#define _NhlRES_NOSACCESS (0x04)
#define _NhlRES_NOGACCESS (0x08)
#define _NhlRES_PRIVATE (0x10)
#define _NhlRES_INTERCEPTED (0x20)
#define _NhlRES_RONLY (_NhlRES_NOCACCESS|_NhlRES_NOSACCESS|_NhlRES_NOGACCESS)
#define _NhlRES_CONLY (_NhlRES_NORACCESS|_NhlRES_NOSACCESS|_NhlRES_NOGACCESS)
#define _NhlRES_SONLY (_NhlRES_NORACCESS|_NhlRES_NOCACCESS|_NhlRES_NOGACCESS)
#define _NhlRES_GONLY (_NhlRES_NORACCESS|_NhlRES_NOCACCESS|_NhlRES_NOSACCESS)
#define _NhlRES_RCONLY (_NhlRES_NOSACCESS|_NhlRES_NOGACCESS)
#define _NhlRES_SGONLY (_NhlRES_NORACCESS|_NhlRES_NOCACCESS)
#define _NhlRES_CGONLY (_NhlRES_NORACCESS|_NhlRES_NOSACCESS)
#define _NhlRES_NOACCESS (_NhlRES_NORACCESS|_NhlRES_NOCACCESS| \
_NhlRES_NOSACCESS|_NhlRES_NOGACCESS)
typedef struct _NhlResource {
NhlString resource_name;
NhlString resource_class;
NhlString resource_type;
unsigned int resource_size;
unsigned int resource_offset;
/* stuff for dealling with defaults */
NhlString default_type;
NhlArgVal default_val;
unsigned int res_info;
NhlFreeFunc free_func;
NhlClass nhlclass;
} NhlResource, *NhlResourceList;
typedef struct _NhlLayerRec *NhlLayer;
/*
* In order to recognize class types from the intrinsics the private header
* and a one bit flag need to be included here and a new conditional stmnt
* added to the InitializeClass function in Create.c
*/
#define _NhlObjClassFlag 0x02
#define _NhlIsObj(instance) \
(((NhlLayer)(instance))->base.layer_class->base_class.class_inited & \
_NhlObjClassFlag)
#define _NhlBaseClassFlag 0x04
#define _NhlIsBase(instance) \
(((NhlLayer)(instance))->base.layer_class->base_class.class_inited & \
_NhlBaseClassFlag)
#define _NhlWorkstationClassFlag 0x08
#define _NhlIsWorkstation(instance) \
(((NhlLayer)(instance))->base.layer_class->base_class.class_inited & \
_NhlWorkstationClassFlag)
#define _NhlViewClassFlag 0x010
#define _NhlIsView(instance) \
(((NhlLayer)(instance))->base.layer_class->base_class.class_inited & \
_NhlViewClassFlag)
#define _NhlTransformClassFlag 0x020
#define _NhlIsTransform(instance) \
(((NhlLayer)(instance))->base.layer_class->base_class.class_inited & \
_NhlTransformClassFlag)
#define _NhlErrorClassFlag 0x040
#define _NhlIsError(instance) \
(((NhlLayer)(instance))->base.layer_class->base_class.class_inited & \
_NhlErrorClassFlag)
#define _NhlTransObjClassFlag 0x080
#define _NhlIsTransObj(instance) \
(((NhlLayer)(instance))->base.layer_class->base_class.class_inited & \
_NhlTransObjClassFlag)
#define _NhlDataCommClassFlag 0x0100
#define _NhlIsDataComm(instance) \
(((NhlLayer)(instance))->base.layer_class->base_class.class_inited & \
_NhlDataCommClassFlag)
#define _NhlDataItemClassFlag 0x0200
#define _NhlIsDataItem(instance) \
(((NhlLayer)(instance))->base.layer_class->base_class.class_inited & \
_NhlDataItemClassFlag)
#define _NhlDataMgrClassFlag 0x0400
#define _NhlIsDataMgr(instance) \
(((NhlLayer)(instance))->base.layer_class->base_class.class_inited & \
_NhlDataMgrClassFlag)
#define _NhlDataSpecClassFlag 0x0800
#define _NhlIsDataSpec(instance) \
(((NhlLayer)(instance))->base.layer_class->base_class.class_inited & \
_NhlDataSpecClassFlag)
#define _NhlAppClassFlag 0x1000
#define _NhlIsApp(instance) \
(((NhlLayer)(instance))->base.layer_class->base_class.class_inited & \
_NhlAppClassFlag)
#define _NhlStyleClassFlag 0x2000
#define _NhlIsStyle(instance) \
(((NhlLayer)(instance))->base.layer_class->base_class.class_inited & \
_NhlStyleClassFlag)
#define _NhlXWorkstationClassFlag 0x4000
#define _NhlIsXWorkstation(inst) \
(((NhlLayer)(inst))->base.layer_class->base_class.class_inited & \
_NhlXWorkstationClassFlag)
typedef NhlArgVal _NhlArgVal;
typedef NhlFreeFunc _NhlFreeFunc;
typedef NhlPointer (*_NhlAllocFunc)(
#if NhlNeedProto
ng_usize_t size
#endif
);
typedef enum _NhlC_OR_F_{
_NhlCLIB,
_NhlFLIB,
_NhlNONE
} _NhlC_OR_F;
/*
* type_ret, size_ret and free_func are for the get_values method to use - they
* are not valid fields for set_values or create.
*/
typedef struct _NhlArgRec{
NrmQuark quark; /* resname Q */
_NhlArgVal value; /* val or ptr */
NrmQuark type; /* type of *value */
unsigned int size; /* size of *value */
NrmQuark *type_ret;
unsigned int *size_ret;
_NhlFreeFunc *free_func;
NhlClass *chld_class;
} _NhlArg, *_NhlArgList;
typedef struct _NhlChildArgRec _NhlChildArgNode, *_NhlChildArgList;
struct _NhlChildArgRec{
NhlClass theclass;
NhlBoolean autosetval;
_NhlArgList args;
int nargs;
NhlBoolean **args_used;
_NhlChildArgList next;
};
/*
* The len_dimensions member of the following struct points to an array
* containing the length of each dimension of the data array. It should
* have num_dimensions elements. The fastest varying dimension (rightmost
* dimension in C) corresponds to the highest numbered element of the
* len_dimensions array. The num_elements member is equal to the
* product of the value in each element of len_dimensions, and so contains
* the total number of elements of the array viewed as a single
* dimensional array.
*/
typedef struct NhlGenArrayRec_ NhlGenArrayRec;
struct NhlGenArrayRec_{
int num_dimensions;
ng_size_t *len_dimensions;
ng_size_t num_elements;
NrmQuark typeQ;
unsigned int size;
NhlPointer data;
NhlBoolean my_data;
};
/*
* This function is used as an inheritance constant.
*/
extern void _NhlInherit(
#if NhlNeedProto
void
#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 */
NhlBoolean copy_data, /* copy data pointer? */
_NhlAllocFunc alloc_func /* alloc func to use */
#endif
);
extern NhlGenArray _NhlCreateGenArray(
#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 */
NhlBoolean copy_data /* copy data pointer? */
#endif
);
extern NhlGenArray _NhlCopyGenArray(
#if NhlNeedProto
NhlGenArray gen, /* public gen array */
NhlBoolean copy_data /* copy data part? */
#endif
);
extern NhlErrorTypes _NhlValidatedGenArrayCopy(
#if NhlNeedProto
NhlGenArray *gto, /* destination gen array */
NhlGenArray gfrom, /* source gen array */
ng_size_t max_el, /* maximum number of elements allowed */
NhlBoolean copy_data, /* copy data part? */
NhlBoolean exact_count, /* ensure dest counts match source */
char *res_name, /* associated resource name */
char *caller /* the user-level calling function */
#endif
);
extern FILE *_NhlTmpFile(
#if NhlNeedProto
void
#endif
);
extern int _NhlCompareArg(
#if NhlNeedProto
Const void *ov,
Const void *tv
#endif
);
extern void _NhlSArgToSetArgList(
#if NhlNeedProto
_NhlArgList args, /* args <return> */
NhlSArgList sargs, /* args to set */
int nargs /* number of args */
#endif
);
/*VARARGS4*/
extern NhlErrorTypes _NhlVACreateChild(
#if NhlNeedVarArgProto
int *pid, /* pid return */
Const char *name, /* name of child */
NhlClass theclass, /* class to create */
NhlLayer parent, /* parent of child */
... /* args to set in child */
#endif
);
extern NhlErrorTypes _NhlALCreateChild(
#if NhlNeedProto
int *pid, /* pid return */
Const char *name, /* name of child */
NhlClass theclass, /* class to create */
NhlLayer parent, /* parent of child */
NhlSArgList args_in, /* args in */
int nargs /* number args */
#endif
);
/*VARARGS2*/
extern NhlErrorTypes _NhlVASetValuesChild(
#if NhlNeedVarArgProto
int pid, /* pid return */
NhlLayer parent, /* parent of child */
... /* args to set in child */
#endif
);
extern NhlErrorTypes _NhlALSetValuesChild(
#if NhlNeedProto
int pid, /* pid return */
NhlLayer parent, /* parent of child */
NhlSArgList args_in, /* args in */
int nargs /* number args in */
#endif
);
extern NhlErrorTypes _NhlDestroyChild(
#if NhlNeedProto
int pid, /* pid of child to destroy */
NhlLayer parent /* parent of child to destroy */
#endif
);
/*VARARGS4*/
extern NhlErrorTypes _NhlRegisterChildClass(
#if NhlNeedVarArgProto
NhlClass parent, /* parent class */
NhlClass child, /* child class */
NhlBoolean autosetval, /* SetValue im/ex plicite */
NhlBoolean forward, /* T-frwd listed F-excl listed */
... /* resource names */
#endif
);
extern NhlClass _NhlClass(
#if NhlNeedProto
NhlLayer /* layer */
#endif
);
extern Const char * _NhlClassName(
#if NhlNeedProto
NhlClass /* lc */
#endif
);
extern NhlBoolean _NhlIsClass(
#if NhlNeedProto
NhlLayer l,
NhlClass cl
#endif
);
extern NhlBoolean _NhlIsFloatRes(
#if NhlNeedProto
NhlString res_name /* resource name */
#endif
);
extern int _NhlAddLayer(
#if NhlNeedProto
NhlLayer l /* layer to add to list */
#endif
);
extern NhlErrorTypes _NhlRemoveLayer(
#if NhlNeedProto
NhlLayer l /* layer to remove from list */
#endif
);
extern NhlLayer _NhlGetLayer(
#if NhlNeedProto
int id /* id of layer to retrieve */
#endif
);
extern void _NhlDestroyLayerTable(
#if NhlNeedProto
void
#endif
);
extern NhlErrorTypes _NhlReparent(
#if NhlNeedProto
NhlLayer l,
NhlLayer new_parent
#endif
);
extern NhlLayer _NhlGetWorkstationLayer(
#if NhlNeedProto
NhlLayer /*parent */
#endif
);
/*
* Globally callable functions from Draw.c
*/
extern NhlErrorTypes _NhlPlotManagerDraw(
#if NhlNeedProto
NhlLayer layer /* layer of object to draw */
#endif
);
extern NhlErrorTypes _NhlPreDraw(
#if NhlNeedProto
NhlLayer layer /* layer of object to draw */
#endif
);
extern NhlErrorTypes _NhlDraw(
#if NhlNeedProto
NhlLayer layer /* layer of object to draw */
#endif
);
extern NhlErrorTypes _NhlPostDraw(
#if NhlNeedProto
NhlLayer layer /* layer of object to draw */
#endif
);
extern NhlErrorTypes _NhlSegDraw(
#if NhlNeedProto
NhlLayer layer /* layer of object to draw */
#endif
);
/*
* End of Draw.c functions
*/
extern NhlErrorTypes _NhlInitializeClass(
#if NhlNeedProto
NhlClass /* lc */
#endif
);
extern int _NhlArgIsSet(
#if NhlNeedProto
_NhlArgList /* args */,
int /* num_args */,
char* /*resource_name*/
#endif
);
extern void _NhlCopyToVal(
#if NhlNeedProto
NhlPointer src,
_NhlArgVal *dst,
unsigned int size
#endif
);
extern NhlBoolean _NhlLLErrCheckPrnt(
#if NhlNeedProto
NhlErrorTypes level,
NhlString calling_func
#endif
);
extern NhlErrorTypes _NhlResUnset(
#if NhlNeedProto
NrmName name,
NrmClass cname,
NhlPointer base,
unsigned int offset
#endif
);
extern _NhlCB _NhlAddObjCallback(
NhlLayer l,
NhlString cbname,
NhlArgVal sel,
_NhlCBFunc func,
NhlArgVal udata
);
extern void _NhlCallObjCallbacks(
NhlLayer l,
NhlString cbname,
NhlArgVal sel,
NhlArgVal cbdata
);
extern void _NhlIterateObjCallbacks(
NhlLayer l,
NhlString cbname,
_NhlCBTask task,
NhlArgVal cbdata
);
extern _NhlCB _NhlAddClassCallback(
NhlClass lc,
NhlString cbname,
NhlArgVal sel,
_NhlCBFunc f,
NhlArgVal udata
);
extern void _NhlCallClassCallbacks(
NhlClass lc,
NhlString cbname,
NhlArgVal sel,
NhlArgVal cbdata
);
extern void _NhlIterateClassCallbacks(
NhlClass lc,
NhlString cbname,
_NhlCBTask task,
NhlArgVal cbdata
);
#endif /* HLUP_H */
|