rpm
5.4.10
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
rpmio
rpmhook.h
Go to the documentation of this file.
1
#ifndef RPMHOOK_H
2
#define RPMHOOK_H
3
4
typedef
union
{
5
/*@observer@*/
6
const
char
*
s
;
7
int
i
;
8
float
f
;
9
/*@observer@*/
10
void
*
p
;
11
}
rpmhookArgv
;
12
13
typedef
struct
rpmhookArgs_s
{
14
int
argc
;
15
const
char
*
argt
;
16
rpmhookArgv
argv
[1];
17
} *
rpmhookArgs
;
18
19
typedef
int (*
rpmhookFunc
) (
rpmhookArgs
args,
void
*data);
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
/*@only@*/
26
rpmhookArgs
rpmhookArgsNew
(
int
argc)
27
/*@*/
;
28
/*@null@*/
29
rpmhookArgs
rpmhookArgsFree
(
/*@only@*/
/*@null@*/
rpmhookArgs
args)
30
/*@modifies args @*/
;
31
32
void
rpmhookRegister
(
const
char
*
name
,
rpmhookFunc
func,
void
*data)
33
/*@globals internalState @*/
34
/*@modifies internalState @*/
;
35
void
rpmhookUnregister
(
const
char
*name,
rpmhookFunc
func,
void
*data)
36
/*@*/
;
37
void
rpmhookUnregisterAny
(
const
char
*name,
rpmhookFunc
func)
38
/*@*/
;
39
void
rpmhookUnregisterAll
(
const
char
*name)
40
/*@*/
;
41
void
rpmhookCall
(
const
char
*name,
const
char
*argt, ...)
42
/*@*/
;
43
void
rpmhookCallArgs
(
const
char
*name,
rpmhookArgs
args)
44
/*@globals internalState @*/
45
/*@modifies internalState @*/
;
46
47
#ifdef __cplusplus
48
}
49
#endif
50
51
#endif
Generated on Mon Nov 5 2012 15:32:19 for rpm by
1.8.1.2