libnjb: /usr/obj/ports/libnjb-2.2.7/libnjb-2.2.7/src/datafile.h Source File

libnjb 2.2.7

- Main Page
- Modules
- Data Structures
- Files
- Examples

- File List
- Globals

datafile.h
1 #ifndef __NJB__DATAFILE__H
2 #define __NJB__DATAFILE__H
3
4 njb_datafile_t *datafile_new (void);
5 u_int64_t datafile_size (njb_datafile_t *df);
6 void datafile_set_size (njb_datafile_t *df, u_int64_t size);
7 void datafile_set_time (njb_datafile_t *df, time_t ts);
8 int datafile_set_name (njb_datafile_t *df, const char *filename);
9 int datafile_set_folder (njb_datafile_t *df, const char *folder);
10 njb_datafile_t *datafile_unpack (unsigned char *data, size_t nbytes);
11 unsigned char *datafile_pack (njb_datafile_t *df, u_int32_t *size);
12 unsigned char *datafile_pack3 (njb_t *njb, njb_datafile_t *df, u_int32_t *size);
13 unsigned char *new_folder_pack3 (njb_t *njb, const char *name, u_int32_t *size);
14
15 #endif