#include <string.h>#include "libnjb.h"#include "njb_error.h"#include "defs.h"#include "base.h"#include "unicode.h"#include "protocol3.h"#include "byteorder.h"#include "datafile.h"Functions | |
| njb_datafile_t * | datafile_new (void) |
| void | NJB_Datafile_Destroy (njb_datafile_t *df) |
| u_int64_t | datafile_size (njb_datafile_t *df) |
| void | datafile_set_size (njb_datafile_t *df, u_int64_t size) |
| void | datafile_set_time (njb_datafile_t *df, time_t ts) |
| int | datafile_set_name (njb_datafile_t *df, const char *filename) |
| int | datafile_set_folder (njb_datafile_t *df, const char *folder) |
| njb_datafile_t * | datafile_unpack (unsigned char *data, size_t nbytes) |
| unsigned char * | datafile_pack (njb_datafile_t *df, u_int32_t *size) |
| unsigned char * | datafile_pack3 (njb_t *njb, njb_datafile_t *df, u_int32_t *size) |
| unsigned char * | new_folder_pack3 (njb_t *njb, const char *name, u_int32_t *size) |
Variables | |
| int | __sub_depth |
| int | njb_unicode_flag |
|
|
Creates a new datafile struct.
|
|
||||||||||||
|
A function that packs a datafile tag into the format used by the NJB1.
|
|
||||||||||||||||
|
This function packs (serialize, marshall) a high-level representation of a datafile metadata structure into a simple byte-array as used by the series 3 devices.
|
|
||||||||||||
|
Helper function that sets the foldername of a datafile.
|
|
||||||||||||
|
Helper function that sets the name of a datafile.
|
|
||||||||||||
|
Helper function that sets the size of the datafile.
|
|
||||||||||||
|
Helper function that sets the timestamp for a datafile.
|
|
|
Helper function that returns the size of the datafile as a 64bit unsigned integer
|
|
||||||||||||
|
Unpacks a datafile struct from NJB1.
|
|
||||||||||||||||
|
This creates a folder metadata entry for a new folder on the series 3 devices. (Not applicable for NJB1.)
|
|
|
The current subroutine depth for all of libnjb (global) |
1.4.4