rpm  5.4.15
rpmficl.h
Go to the documentation of this file.
1 #ifndef RPMFICL_H
2 #define RPMFICL_H
3 
8 #include <rpmiotypes.h>
9 #include <rpmio.h>
10 
11 typedef /*@abstract@*/ /*@refcounted@*/ struct rpmficl_s * rpmficl;
12 
13 /*@unchecked@*/
14 extern int _rpmficl_debug;
15 
16 /*@unchecked@*/ /*@relnull@*/
17 extern rpmficl _rpmficlI;
18 
19 #if defined(_RPMFICL_INTERNAL)
20 struct rpmficl_s {
21  struct rpmioItem_s _item;
22  void * sys; /* ficlSystem */
23  void * vm; /* ficlVm */
24  rpmiob iob;
25 #if defined(__LCLINT__)
26 /*@refs@*/
27  int nrefs;
28 #endif
29 };
30 #endif /* _RPMFICL_INTERNAL */
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
41 /*@unused@*/ /*@null@*/
42 rpmficl rpmficlUnlink (/*@killref@*/ /*@only@*/ /*@null@*/ rpmficl ficl)
43  /*@modifies ficl @*/;
44 #define rpmficlUnlink(_ficl) \
45  ((rpmficl)rpmioUnlinkPoolItem((rpmioItem)(_ficl), __FUNCTION__, __FILE__, __LINE__))
46 
52 /*@unused@*/ /*@newref@*/ /*@null@*/
53 rpmficl rpmficlLink (/*@null@*/ rpmficl ficl)
54  /*@modifies ficl @*/;
55 #define rpmficlLink(_ficl) \
56  ((rpmficl)rpmioLinkPoolItem((rpmioItem)(_ficl), __FUNCTION__, __FILE__, __LINE__))
57 
63 /*@null@*/
64 rpmficl rpmficlFree(/*@killref@*/ /*@null@*/rpmficl ficl)
65  /*@globals fileSystem @*/
66  /*@modifies ficl, fileSystem @*/;
67 #define rpmficlFree(_ficl) \
68  ((rpmficl)rpmioFreePoolItem((rpmioItem)(_ficl), __FUNCTION__, __FILE__, __LINE__))
69 
76 /*@newref@*/ /*@null@*/
77 rpmficl rpmficlNew(/*@null@*/ char ** av, uint32_t flags)
78  /*@globals fileSystem, internalState @*/
79  /*@modifies fileSystem, internalState @*/;
80 
88 rpmRC rpmficlRunFile(rpmficl ficl, /*@null@*/ const char * fn,
89  /*@null@*/ const char ** resultp)
90  /*@globals fileSystem, internalState @*/
91  /*@modifies ficl, fileSystem, internalState @*/;
92 
100 rpmRC rpmficlRun(rpmficl ficl, /*@null@*/ const char * str,
101  /*@null@*/ const char ** resultp)
102  /*@globals fileSystem, internalState @*/
103  /*@modifies ficl, *resultp, fileSystem, internalState @*/;
104 
105 #ifdef __cplusplus
106 }
107 #endif
108 
109 #endif /* RPMFICL_H */
rpmficl rpmficlNew(char **av, uint32_t flags)
Create and load a ficl interpreter.
Definition: rpmficl.c:74
rpmficl _rpmficlI
Definition: rpmficl.c:17
const char * str
Definition: bson.h:593
#define rpmficlFree(_ficl)
Definition: rpmficl.h:67
rpmRC rpmficlRunFile(rpmficl ficl, const char *fn, const char **resultp)
Execute ficl from a file.
Definition: rpmficl.c:123
#define rpmficlUnlink(_ficl)
Definition: rpmficl.h:44
rpmRC rpmficlRun(rpmficl ficl, const char *str, const char **resultp)
Execute ficl string.
Definition: rpmficl.c:140
int _rpmficl_debug
Definition: rpmficl.c:14
#define rpmficlLink(_ficl)
Definition: rpmficl.h:55
const char const bson int mongo_write_concern int flags
Definition: mongo.h:485
enum rpmRC_e rpmRC
RPM return codes.
struct rpmiob_s * rpmiob
Definition: rpmiotypes.h:60
struct rpmficl_s * rpmficl
Definition: rpmficl.h:11