rpm
4.5
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
lib
rpmns.h
Go to the documentation of this file.
1
#ifndef H_RPMNS
2
#define H_RPMNS
3
11
/*@-exportlocal@*/
12
/*@unchecked@*/
13
extern
int
_rpmns_debug
;
14
/*@=exportlocal@*/
15
16
/*@unchecked@*/
17
extern
const
char
*
_rpmns_N_at_A
;
18
19
typedef
/*@abstract@*/
struct
rpmns_s *
rpmns
;
20
24
typedef
enum
nsType_e
{
25
RPMNS_TYPE_UNKNOWN
= 0,
26
RPMNS_TYPE_STRING
= (1 << 0),
27
RPMNS_TYPE_PATH
= (1 << 1),
28
RPMNS_TYPE_DSO
= (1 << 2),
29
RPMNS_TYPE_FUNCTION
= (1 << 3),
30
RPMNS_TYPE_ARCH
= (1 << 4),
31
RPMNS_TYPE_VERSION
= (1 << 5),
32
RPMNS_TYPE_COMPOUND
= (1 << 6),
33
/* 7 unused */
34
RPMNS_TYPE_NAMESPACE
= (1 << 8),
35
RPMNS_TYPE_RPMLIB
= (1 << 9),
36
RPMNS_TYPE_CPUINFO
= (1 << 10),
37
RPMNS_TYPE_GETCONF
= (1 << 11),
38
RPMNS_TYPE_UNAME
= (1 << 12),
39
RPMNS_TYPE_SONAME
= (1 << 13),
40
RPMNS_TYPE_ACCESS
= (1 << 14),
41
RPMNS_TYPE_TAG
= (1 << 15),
42
RPMNS_TYPE_USER
= (1 << 16),
43
RPMNS_TYPE_GROUP
= (1 << 17),
44
RPMNS_TYPE_MOUNTED
= (1 << 18),
45
RPMNS_TYPE_DISKSPACE
= (1 << 19),
46
RPMNS_TYPE_DIGEST
= (1 << 20),
47
RPMNS_TYPE_GNUPG
= (1 << 21),
48
RPMNS_TYPE_MACRO
= (1 << 22),
49
RPMNS_TYPE_ENVVAR
= (1 << 23),
50
RPMNS_TYPE_RUNNING
= (1 << 24),
51
}
nsType
;
52
53
#if defined(_RPMNS_INTERNAL)
54
57
struct
rpmns_s {
58
const
char
* str;
59
nsType
Type;
60
/*@observer@*/
/*@null@*/
61
const
char
* NS;
62
/*@observer@*/
/*@null@*/
63
const
char
* N;
64
/*@observer@*/
/*@null@*/
65
const
char
* A;
66
evrFlags
Flags;
67
};
68
#endif
/* _RPMNS_INTERNAL */
69
70
#ifdef __cplusplus
71
extern
"C"
{
72
#endif
73
79
nsType
rpmnsArch
(
const
char
* str)
80
/*@*/
;
81
87
nsType
rpmnsProbe
(
const
char
* str)
88
/*@*/
;
89
95
nsType
rpmnsClassify
(
const
char
* str)
96
/*@*/
;
97
104
int
rpmnsParse
(
const
char
* str,
rpmns
ns)
105
/*@globals rpmGlobalMacroContext @*/
106
/*@modifies ns, rpmGlobalMacroContext @*/
;
107
108
#ifdef __cplusplus
109
}
110
#endif
111
112
#endif
/* H_RPMNS */
Generated on Tue Aug 28 2012 18:13:35 for rpm by
1.8.2