c04312e9d5e6bb9c8bce188d2ff4ecf5df1edb05
[tools/librpm-tizen.git] / lib / rpmlead.h
1 #ifndef _H_RPMLEAD
2 #define _H_RPMLEAD
3
4 /** \ingroup lead
5  * \file lib/rpmlead.h
6  *
7  */
8
9 #include <rpmlib.h>
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 /** \ingroup lead
16  * Write lead to file handle.
17  * @param fd            file handle
18  * @param lead          data address
19  * @return              0 on success, 1 on error
20  */
21 int writeLead(FD_t fd, struct rpmlead *lead);
22
23 /** \ingroup lead
24  * Read lead from file handle.
25  * @param fd            file handle
26  * @retval lead         data address
27  * @return              0 on success, 1 on error
28  */
29 int readLead(FD_t fd, /*@out@*/ struct rpmlead *lead)
30         /*@modifies fd, *lead @*/;
31
32 #ifdef __cplusplus
33 }
34 #endif
35
36 #endif  /* _H_RPMLEAD */