Untangle lib/fsm.c and lib/cpio.c
authorFlorian Festi <ffesti@redhat.com>
Thu, 22 Mar 2012 12:58:02 +0000 (13:58 +0100)
committerFlorian Festi <ffesti@redhat.com>
Tue, 27 Mar 2012 12:12:42 +0000 (14:12 +0200)
commit6492aa800f2bb40c4602f4b50e013797a1fb8549
treea0cd9a681f7e973d039a4551f8203f22b46dba84
parentdd05fdd35f680dfff606731a664859ae45762bb1
Untangle lib/fsm.c and lib/cpio.c

Create cpio_t data type that holds the underlaying FD_t instance
Move padding and position handling and trailer generation into cpio.c
Use only one buffer in the fsm (merging the read and write buffer)
Replace the FSM_EAT, FSM_POS, FSM_PAD, FSM_DREAD, FSM_DWRITE states with cpio functions
Prepend "rpm" to the cpio function names
lib/cpio.c
lib/cpio.h
lib/fsm.c
lib/fsm.h
lib/psm.c