Main Page
Related Pages
Data Structures
Files
File List
Globals
include
ift.h
Go to the documentation of this file.
1
/******************************************************************************
2
3
Copyright (c) 2004-2008 by Turku PET Centre
4
5
ift.h
6
7
Modification history:
8
2004-08-15 VO
9
2004-10-14 VO
10
iftFindNthValue() function name corrected.
11
2004-10-15 VO
12
Included iftFindNthKey().
13
2004-11-23 VO
14
Included iftReplaceNthValue().
15
2005-01-05 VO
16
ift_status moved in here.
17
2008-07-11 VO
18
Added the externs.
19
20
21
******************************************************************************/
22
#ifndef _IFT_H
23
#define _IFT_H
24
/*****************************************************************************/
25
26
/*****************************************************************************/
27
typedef
struct
{
29
char
type
;
31
short
int
sw
;
33
char
*
key
;
35
char
*
value
;
36
}
IFT_KEY_AND_VALUE
;
37
typedef
struct
{
39
int
_memNr
;
41
int
keyNr
;
44
int
type
;
46
char
*
status
;
48
IFT_KEY_AND_VALUE
*
item
;
50
size_t
datasize
;
52
unsigned
char
*
data
;
53
}
IFT
;
54
/*****************************************************************************/
55
int
IFT_TEST
;
56
/*****************************************************************************/
57
extern
void
libift_printdate
(FILE *fp);
58
extern
void
iftSetStatus
(
IFT
*ift,
int
status);
59
extern
void
iftInit
(
IFT
*ift);
60
extern
void
iftEmpty
(
IFT
*ift);
61
extern
int
iftPut
(
IFT
*ift,
char
*key,
char
*value,
char
*cmt_type);
62
extern
int
iftRead
(
IFT
*ift,
char
*filename,
int
is_key_required);
63
extern
int
iftWriteItem
(
IFT
*ift,
int
item, FILE *fp);
64
extern
int
iftWrite
(
IFT
*ift,
char
*filename);
65
extern
int
iftGet
(
IFT
*ift,
char
*key);
66
extern
int
iftGetNth
(
IFT
*ift,
char
*key,
int
n);
67
extern
int
iftFindNthKey
(
IFT
*ift,
char
*str,
int
n);
68
extern
int
iftFindNthValue
(
IFT
*ift,
char
*str,
int
n);
69
extern
int
iftDeleteItem
(
IFT
*ift,
int
item);
70
extern
int
iftReplaceNthValue
(
IFT
*ift,
int
item,
char
*value);
71
/*****************************************************************************/
72
#endif
73
Generated by
1.8.1.1