]> git.llucax.com Git - z.facultad/75.06/jacu.git/blobdiff - src/statichuff/main.c
Safe upload, minimo cambio de nuevo al API, still working on decompression per chunk
[z.facultad/75.06/jacu.git] / src / statichuff / main.c
index 65a1c3ded4c2963a9b59e68217087f11ee0bdbf6..d7200bb5aeddacd1448957ce30aa13ea61603462 100644 (file)
@@ -37,17 +37,17 @@ int main(int argc, char* argv[])
                
        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);
        }