createrepo_c library
0.2.1
C library for metadata manipulation
Main Page
Modules
Data Structures
Files
File List
All
Data Structures
Functions
Variables
Typedefs
Enumerations
Enumerator
Groups
Pages
threads.h
1
/* createrepo_c - Library of routines for manipulation with repodata
2
* Copyright (C) 2013 Tomas Mlcoch
3
*
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License
6
* as published by the Free Software Foundation; either version 2
7
* of the License, or (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
17
* USA.
18
*/
19
20
#ifndef __C_CREATEREPOLIB_THREADS_H__
21
#define __C_CREATEREPOLIB_THREADS_H__
22
23
#include <glib.h>
24
#include "compression_wrapper.h"
25
#include "checksum.h"
26
#include "repomd.h"
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
69
typedef
struct
{
70
char
*
src
;
72
char
*
dst
;
75
cr_CompressionType
type
;
77
cr_ContentStat
*
stat
;
79
int
delsrc
;
81
GError *
err
;
83
}
cr_CompressionTask
;
84
104
cr_CompressionTask
*
105
cr_compressiontask_new
(
const
char
*src,
106
const
char
*dst,
107
cr_CompressionType
compression_type,
108
cr_ChecksumType
checksum_type,
109
int
delsrc,
110
GError **err);
111
116
void
117
cr_compressiontask_free
(
cr_CompressionTask
*task, GError **err);
118
121
void
122
cr_compressing_thread
(gpointer data, gpointer user_data);
123
126
typedef
struct
{
127
cr_RepomdRecord
*
record
;
128
cr_ChecksumType
checksum_type
;
129
GError *
err
;
130
}
cr_RepomdRecordFillTask
;
131
138
cr_RepomdRecordFillTask
*
139
cr_repomdrecordfilltask_new
(
cr_RepomdRecord
*record,
140
cr_ChecksumType
checksum_type,
141
GError **err);
142
145
void
146
cr_repomdrecordfilltask_free
(
cr_RepomdRecordFillTask
*task, GError **err);
147
150
void
151
cr_repomd_record_fill_thread
(gpointer data, gpointer user_data);
152
155
#ifdef __cplusplus
156
}
157
#endif
158
159
#endif
/* __C_CREATEREPOLIB_THREADS_H__ */
src
threads.h
Generated on Wed Aug 14 2013 09:00:21 for createrepo_c library by
1.8.4