1SC_FILE_T(3)                 OpenSC API reference                 SC_FILE_T(3)
2
3
4

NAME

6       sc_file_t - OpenSC file structure
7

SYNOPSIS

9           #include <opensc.h>
10
11           typedef struct sc_file {
12               struct sc_path    path;
13               int               type, ef_structure;
14               size_t            size;
15               int               id;
16
17               /* record structured files only */
18               int               record_length;
19               int               record_count;
20           } sc_file_t;
21
22
23

DESCRIPTION

25       This structure describes a file object on a smart card. It contains the
26       following members:
27
28       path
29           This is full the path to the file, starting at the MF.
30
31       type
32           This is the file type. It can be one of SC_FILE_TYPE_DF,
33           SC_FILE_TYPE_WORKING_EF, or SC_FILE_TYPE_INTERNAL_EF. The latter is
34           used by some cards only, and you normally shouldn´t have to deal
35           with these files.
36
37       ef_structure
38           For elementary files (EFs), this field describes the file´s
39           structure. It can be one of:
40               SC_FILE_EF_TRANSPARENT
41               SC_FILE_EF_LINEAR_FIXED
42               SC_FILE_EF_LINEAR_FIXED_TLV
43               SC_FILE_EF_LINEAR_VARIABLE
44               SC_FILE_EF_LINEAR_VARIABLE_TLV
45               SC_FILE_EF_CYCLIC
46               SC_FILE_EF_CYCLIC_TLV
47               SC_FILE_EF_UNKNOWN
48
49       size
50           gives the file´s size in bytes.
51
52       id
53           gives the file´s ID, as a 16-bit number.
54
55       record_count, record_length
56           For record structured files, record_sount specifies the number of
57           records in the file. For files with fixed length records,
58           record_length contains the record length.
59
60
61
62opensc                            02/16/2010                      SC_FILE_T(3)
Impressum