libnjb: /tmp/libnjb-2.2.6/src/datafile.h Source File

# datafile.h

    00001 #ifndef __NJB__DATAFILE__H
    00002 #define __NJB__DATAFILE__H
    00003
    00004 njb_datafile_t *datafile_new (void);
    00005 u_int64_t datafile_size (njb_datafile_t *df);
    00006 void datafile_set_size (njb_datafile_t *df, u_int64_t size);
    00007 void datafile_set_time (njb_datafile_t *df, time_t ts);
    00008 int datafile_set_name (njb_datafile_t *df, const char *filename);
    00009 int datafile_set_folder (njb_datafile_t *df, const char *folder);
    00010 njb_datafile_t *datafile_unpack (unsigned char *data, size_t nbytes);
    00011 unsigned char *datafile_pack (njb_datafile_t *df, u_int32_t *size);
    00012 unsigned char *datafile_pack3 (njb_t *njb, njb_datafile_t *df, u_int32_t *size);
    00013 unsigned char *new_folder_pack3 (njb_t *njb, const char *name, u_int32_t *size);
    00014
    00015 #endif