Blender V2.61 - r43446
Defines | Functions

BKE_packedFile.h File Reference

Go to the source code of this file.

Defines

#define RET_OK   0
#define RET_ERROR   1

Functions

struct PackedFilenewPackedFile (struct ReportList *reports, const char *filename, const char *relabase)
struct PackedFilenewPackedFileMemory (void *mem, int memlen)
void packAll (struct Main *bmain, struct ReportList *reports)
char * unpackFile (struct ReportList *reports, const char *abs_name, const char *local_name, struct PackedFile *pf, int how)
int unpackVFont (struct ReportList *reports, struct VFont *vfont, int how)
int unpackSound (struct Main *bmain, struct ReportList *reports, struct bSound *sound, int how)
int unpackImage (struct ReportList *reports, struct Image *ima, int how)
void unpackAll (struct Main *bmain, struct ReportList *reports, int how)
int writePackedFile (struct ReportList *reports, const char *filename, struct PackedFile *pf, int guimode)
void freePackedFile (struct PackedFile *pf)
int countPackedFiles (struct Main *bmain)
int checkPackedFile (const char *filename, struct PackedFile *pf)
int seekPackedFile (struct PackedFile *pf, int offset, int whence)
void rewindPackedFile (struct PackedFile *pf)
int readPackedFile (struct PackedFile *pf, void *data, int size)

Detailed Description

Since:
March 2001
Author:
nzc

Definition in file BKE_packedFile.h.


Define Documentation

#define RET_ERROR   1

Definition at line 36 of file BKE_packedFile.h.

Referenced by unpackImage(), unpackSound(), unpackVFont(), and writePackedFile().

#define RET_OK   0

Definition at line 35 of file BKE_packedFile.h.

Referenced by unpackFile(), unpackImage(), unpackSound(), unpackVFont(), and writePackedFile().


Function Documentation

int checkPackedFile ( const char *  filename,
struct PackedFile pf 
)
int countPackedFiles ( struct Main bmain)
void freePackedFile ( struct PackedFile pf)
struct PackedFile* newPackedFile ( struct ReportList reports,
const char *  filename,
const char *  relabase 
) [read]
struct PackedFile* newPackedFileMemory ( void *  mem,
int  memlen 
) [read]

Definition at line 158 of file packedFile.c.

References PackedFile::data, MEM_callocN(), pf, and PackedFile::size.

Referenced by get_builtin_packedfile(), and newPackedFile().

void packAll ( struct Main bmain,
struct ReportList reports 
)
int readPackedFile ( struct PackedFile pf,
void *  data,
int  size 
)

Definition at line 104 of file packedFile.c.

References PackedFile::data, NULL, PackedFile::seek, size(), and PackedFile::size.

void rewindPackedFile ( struct PackedFile pf)

Definition at line 99 of file packedFile.c.

References seekPackedFile().

int seekPackedFile ( struct PackedFile pf,
int  offset,
int  whence 
)

Definition at line 69 of file packedFile.c.

References PackedFile::seek, rna_dump::seek(), and PackedFile::size.

Referenced by rewindPackedFile().

void unpackAll ( struct Main bmain,
struct ReportList reports,
int  how 
)
char* unpackFile ( struct ReportList reports,
const char *  abs_name,
const char *  local_name,
struct PackedFile pf,
int  how 
)
int unpackImage ( struct ReportList reports,
struct Image ima,
int  how 
)
int unpackSound ( struct Main bmain,
struct ReportList reports,
struct bSound sound,
int  how 
)
int unpackVFont ( struct ReportList reports,
struct VFont vfont,
int  how 
)
int writePackedFile ( struct ReportList reports,
const char *  filename,
struct PackedFile pf,
int  guimode 
)