rpm  4.12.0.1
Macros | Functions | Variables
rpm2archive.c File Reference
#include "system.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmfi.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmio.h>
#include <rpm/rpmpgp.h>
#include <rpm/rpmts.h>
#include <archive.h>
#include <archive_entry.h>
#include "debug.h"
Include dependency graph for rpm2archive.c:

Go to the source code of this file.

Macros

#define BUFSIZE   (128*1024)
 

Functions

static void fill_archive_entry (struct archive *a, struct archive_entry *entry, rpmfi fi)
 
static void write_file_content (struct archive *a, char *buf, rpmfi fi)
 
static int process_package (rpmts ts, char *filename)
 
int main (int argc, char *argv[])
 

Variables

const char * program_name
 

Macro Definition Documentation

#define BUFSIZE   (128*1024)

Definition at line 19 of file rpm2archive.c.

Referenced by process_package(), and write_file_content().

Function Documentation

static void fill_archive_entry ( struct archive *  a,
struct archive_entry *  entry,
rpmfi  fi 
)
static
int main ( int  argc,
char *  argv[] 
)
static int process_package ( rpmts  ts,
char *  filename 
)
static
static void write_file_content ( struct archive *  a,
char *  buf,
rpmfi  fi 
)
static

Definition at line 43 of file rpm2archive.c.

References BUFSIZE, rpmfiArchiveRead(), and rpmfiFSize().

Referenced by process_package().

Variable Documentation

const char* program_name

Definition at line 4 of file rpm2archive.c.