1 /* 2 * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 * 16 */ 17 18 #ifndef DINITUTL_H_ 19 #define DINITUTL_H_ 20 21 #include "gbldefs.h" 22 #include "symtab.h" 23 24 struct DREC; 25 26 /** 27 \brief ... 28 */ 29 bool df_is_open(void); 30 31 /** 32 \brief ... 33 */ 34 struct DREC *dinit_read(void); 35 36 /** 37 \brief ... 38 */ 39 long dinit_ftell(void); 40 41 /** 42 \brief ... 43 */ 44 void dinit_end(void); 45 46 /** 47 \brief ... 48 */ 49 void dinit_fseek(long off); 50 51 /** 52 \brief ... 53 */ 54 void dinit_fskip(long off); 55 56 /** 57 \brief ... 58 */ 59 void dinit_init(void); 60 61 /** 62 \brief ... 63 */ 64 void dinit_put(DTYPE dtype, ISZ_T conval); 65 66 /** 67 \brief ... 68 */ 69 void dinit_put_string(ISZ_T len, char *str); 70 71 /** 72 \brief ... 73 */ 74 void dinit_read_string(ISZ_T len, char *str); 75 76 /** 77 \brief ... 78 */ 79 void dinit_restore(void); 80 81 /** 82 \brief ... 83 */ 84 void dinit_save(void); 85 86 #endif 87