if (cflag == 1) {
/* Comprimo */
- shuff = shuff_init_static_byfile(argv[optind],argv[optind+1],volumesize*1024);
+ shuff = shuff_init_encoder_byfile(argv[optind],argv[optind+1],volumesize*1024);
shuff_encode_file(shuff);
- shuff_deinit_static_byfile(shuff);
+ shuff_deinit_encoder(shuff);
free(shuff);
}
if (dflag == 1) {
/* Descomprimo */
- shuff = shuff_init_static_byfile(argv[optind],argv[optind+1],0);
+ shuff = shuff_init_decoder(argv[optind],argv[optind+1]);
shuff_decode_file(shuff);
- shuff_deinit_static_byfile(shuff);
+ shuff_deinit_decoder(shuff);
free(shuff);
}