Blender V2.61 - r43446
Defines | Functions | Variables

BKE_blender.h File Reference

Blender util stuff. More...

Go to the source code of this file.

Defines

#define BLENDER_VERSION   261
#define BLENDER_SUBVERSION   3
#define BLENDER_MINVERSION   250
#define BLENDER_MINSUBVERSION   0
#define BLENDER_VERSION_CHAR
#define BLENDER_VERSION_CYCLE   alpha
#define BKE_READ_FILE_FAIL   0
#define BKE_READ_FILE_OK   1
#define BKE_READ_FILE_OK_USERPREFS   2

Functions

int BKE_read_file (struct bContext *C, const char *filepath, struct ReportList *reports)
int BKE_read_file_from_memory (struct bContext *C, char *filebuf, int filelength, struct ReportList *reports)
int BKE_read_file_from_memfile (struct bContext *C, struct MemFile *memfile, struct ReportList *reports)
void free_blender (void)
void initglobals (void)
void BKE_userdef_free (void)
void set_blender_test_break_cb (void(*func)(void))
int blender_test_break (void)
void BKE_write_undo (struct bContext *C, const char *name)
void BKE_undo_step (struct bContext *C, int step)
void BKE_undo_name (struct bContext *C, const char *name)
int BKE_undo_valid (const char *name)
void BKE_reset_undo (void)
char * BKE_undo_menu_string (void)
void BKE_undo_number (struct bContext *C, int nr)
const char * BKE_undo_get_name (int nr, int *active)
void BKE_undo_save_quit (void)
struct MainBKE_undo_get_main (struct Scene **scene)

Variables

char versionstr []

Detailed Description

Blender util stuff.

Since:
March 2001
Author:
nzc

Definition in file BKE_blender.h.


Define Documentation

#define BKE_READ_FILE_FAIL   0

Definition at line 67 of file BKE_blender.h.

Referenced by BKE_read_file(), load_file(), read_undosave(), WM_read_file(), and WM_read_homefile().

#define BKE_READ_FILE_OK   1

Definition at line 68 of file BKE_blender.h.

Referenced by BKE_read_file().

#define BKE_READ_FILE_OK_USERPREFS   2

Definition at line 69 of file BKE_blender.h.

Referenced by BKE_read_file(), and WM_read_file().

#define BLENDER_MINSUBVERSION   0

Definition at line 48 of file BKE_blender.h.

Referenced by write_global().

#define BLENDER_MINVERSION   250

Definition at line 47 of file BKE_blender.h.

Referenced by write_global().

#define BLENDER_SUBVERSION   3
#define BLENDER_VERSION   261
#define BLENDER_VERSION_CHAR

Definition at line 52 of file BKE_blender.h.

Referenced by make_app_info(), and wm_block_create_splash().

#define BLENDER_VERSION_CYCLE   alpha

Definition at line 54 of file BKE_blender.h.

Referenced by make_app_info(), and wm_block_create_splash().


Function Documentation

int BKE_read_file ( struct bContext C,
const char *  filepath,
struct ReportList reports 
)
int BKE_read_file_from_memfile ( struct bContext C,
struct MemFile memfile,
struct ReportList reports 
)
int BKE_read_file_from_memory ( struct bContext C,
char *  filebuf,
int  filelength,
struct ReportList reports 
)

Definition at line 398 of file blender.c.

References BKE_reports_prepend(), BLO_read_from_memory(), and setup_app_data().

Referenced by WM_read_homefile().

void BKE_reset_undo ( void  )
struct Main* BKE_undo_get_main ( struct Scene **  scene) [read]
const char* BKE_undo_get_name ( int  nr,
int *  active 
)

Definition at line 666 of file blender.c.

References BLI_findlink(), UndoElem::name, and NULL.

Referenced by rna_undo_itemf().

char* BKE_undo_menu_string ( void  )
void BKE_undo_name ( struct bContext C,
const char *  name 
)

Definition at line 643 of file blender.c.

References BKE_undo_step(), BLI_rfindstring(), and UndoElem::prev.

Referenced by ed_undo_step().

void BKE_undo_number ( struct bContext C,
int  nr 
)

Definition at line 636 of file blender.c.

References BKE_undo_step(), and BLI_findlink().

Referenced by undo_history_exec().

void BKE_undo_save_quit ( void  )
void BKE_undo_step ( struct bContext C,
int  step 
)
int BKE_undo_valid ( const char *  name)

Definition at line 654 of file blender.c.

References BLI_rfindstring(), ListBase::first, ListBase::last, and UndoElem::prev.

Referenced by ED_undo_valid().

void BKE_userdef_free ( void  )
void BKE_write_undo ( struct bContext C,
const char *  name 
)
int blender_test_break ( void  )
void free_blender ( void  )
void initglobals ( void  )
void set_blender_test_break_cb ( void(*)(void)  func)

Definition at line 430 of file blender.c.

References blender_test_break_cb.

Referenced by WM_init().


Variable Documentation

char versionstr[]

Definition at line 97 of file blender.c.

Referenced by initglobals(), and stats_string().