LICK
 All Data Structures Files Functions Variables Enumerations Enumerator
uniso.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include "distro.h"
9 #include "llist.h"
10 
14 typedef struct {
16  int finished;
20  char *error;
22 
23 typedef size_t uniso_progress_t;
24 typedef void (*uniso_progress_cb)(uniso_progress_t cur,
25  uniso_progress_t total, void *cb_data);
26 
35 uniso_status_t *uniso(const char *src, const char *dst, distro_filter_f filter,
36  uniso_progress_cb cb, void *cb_data);
A linked list node.
Definition: llist.h:19
void free_uniso_status(uniso_status_t *s)
free the memory used by an uniso_status_t
Definition: uniso.c:131
char * error
an error message, if applicable
Definition: uniso.h:20
uniso_status_t * uniso(const char *src, const char *dst, distro_filter_f filter, uniso_progress_cb cb, void *cb_data)
extract an ISO file
Definition: uniso.c:109
node_t * files
a list of relative paths to files extracted
Definition: uniso.h:18
Picks the kernel, initrd and options for a given distro.
A linked list library.
int finished
1 if the extraction finished, otherwise 0
Definition: uniso.h:16
Info about the extraction of an ISO.
Definition: uniso.h:14