-
Notifications
You must be signed in to change notification settings - Fork 0
/
dact_common.h
13 lines (11 loc) · 889 Bytes
/
dact_common.h
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef _DACT_COMMON_H
#define _DACT_COMMON_H
#include "dact.h"
extern char dact_nonetwork;
int dact_config_execute(const char *cmd, unsigned char *options, uint32_t *blksize);
void dact_config_loadfile(const char *path, unsigned char *options, uint32_t *blksize);
uint32_t dact_blk_decompress(unsigned char *ret, const unsigned char *srcbuf, const uint32_t size, const unsigned char *options, const int algo, uint32_t bufsize);
uint32_t dact_blk_compress(unsigned char *algo, unsigned char *ret, const unsigned char *srcbuf, const uint32_t size, const unsigned char *options, uint32_t bufsize);
uint64_t dact_process_file(const int src, const int dest, const int mode, const unsigned char *options, const char *filename, uint32_t *crcs, uint32_t dact_blksize, int cipher);
uint32_t dact_process_other(int src, const int dest, const uint32_t magic, const unsigned char *options);
#endif