MISR Toolkit  1.5.1
mstdio.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  * Copyright by The HDF Group. *
3  * Copyright by the Board of Trustees of the University of Illinois. *
4  * All rights reserved. *
5  * *
6  * This file is part of HDF. The full HDF copyright notice, including *
7  * terms governing use, modification, and redistribution, is contained in *
8  * the COPYING file, which can be found at the root of the source code *
9  * distribution tree, or in https://support.hdfgroup.org/ftp/HDF/releases/. *
10  * If you do not have access to either file, you may request a copy from *
11  * help@hdfgroup.org. *
12  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
13 
14 /* $Id$ */
15 
16 /*-----------------------------------------------------------------------------
17  * File: mstdio.h
18  * Purpose: Header file for stdio-like modeling information.
19  * Dependencies: should be included after hdf.h
20  * Invokes:
21  * Contents: Structures & definitions for stdio modeling. This header
22  * should only be included in hcomp.c and mstdio.c.
23  * Structure definitions:
24  * Constant definitions:
25  *---------------------------------------------------------------------------*/
26 
27 /* avoid re-inclusion */
28 #ifndef __MSTDIO_H
29 #define __MSTDIO_H
30 
31 #if defined c_plusplus || defined __cplusplus
32 extern "C"
33 {
34 #endif /* c_plusplus || __cplusplus */
35 
36 /*
37  ** from mstdio.c
38  */
39 
40  extern int32 HCPmstdio_stread
41  (accrec_t * rec);
42 
43  extern int32 HCPmstdio_stwrite
44  (accrec_t * rec);
45 
46  extern int32 HCPmstdio_seek
47  (accrec_t * access_rec, int32 offset, int origin);
48 
49  extern int32 HCPmstdio_inquire
50  (accrec_t * access_rec, int32 *pfile_id, uint16 *ptag, uint16 *pref,
51  int32 *plength, int32 *poffset, int32 *pposn, int16 *paccess,
52  int16 *pspecial);
53 
54  extern int32 HCPmstdio_read
55  (accrec_t * access_rec, int32 length, void * data);
56 
57  extern int32 HCPmstdio_write
58  (accrec_t * access_rec, int32 length, const void * data);
59 
60  extern intn HCPmstdio_endaccess
61  (accrec_t * access_rec);
62 
63 #if defined c_plusplus || defined __cplusplus
64 }
65 #endif /* c_plusplus || __cplusplus */
66 
67 /* model information about stdio model */
68 typedef struct
69 {
70  int32 pos; /* postion ? */
71 }
73 
74 #ifndef MSTDIO_MASTER
75 extern funclist_t mstdio_funcs; /* functions to perform run-length encoding */
76 #else
77 funclist_t mstdio_funcs =
78 { /* functions to perform run-length encoding */
86 };
87 #endif
88 
89 #endif /* __MSTDIO_H */
funclist_t mstdio_funcs
void origin(double A)
int32 HCPmstdio_write(accrec_t *access_rec, int32 length, const void *data)
int32 HCPmstdio_stwrite(accrec_t *rec)
int32 HCPmstdio_stread(accrec_t *rec)
intn HCPmstdio_endaccess(accrec_t *access_rec)
int32 HCPmstdio_seek(accrec_t *access_rec, int32 offset, int origin)
HDFFCLIBAPI void * data
int32 HCPmstdio_read(accrec_t *access_rec, int32 length, void *data)
HDFFCLIBAPI intf * offset
int32 HCPmstdio_inquire(accrec_t *access_rec, int32 *pfile_id, uint16 *ptag, uint16 *pref, int32 *plength, int32 *poffset, int32 *pposn, int16 *paccess, int16 *pspecial)

MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:52