aboutsummaryrefslogtreecommitdiffstats
path: root/abcfile.h
blob: d14c0eb3380123faafb474e3ac0eb9a12fb20b16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef ABCFILE_H
#define ABCFILE_H

#include "compiler.h"

struct abcdata {
    const void *data;
    size_t len;
    bool is_text;
};

void unmangle_filename(char *out, const char *in);
void mangle_filename(char *dst, const char *src);
int mangle_for_readdir(char *dst, const char *src);
unsigned int init_abcdata(struct abcdata *abc, const void *data, size_t len);
bool get_abc_block(void *block, struct abcdata *abc);

#endif /* ABCFILE_H */