|
Blender
V2.59
|
A general unordered 2-int pair hash table ADT. More...
Go to the source code of this file.
Functions | |
| void | BLI_adddirstrings (void) |
| void | BLI_builddir (const char *dirname, const char *relname) |
| int | BLI_compare (struct direntry *entry1, struct direntry *entry2) |
| size_t | BLI_filesize (int file) |
| size_t | BLI_filepathsize (const char *path) |
| double | BLI_diskfree (const char *dir) |
| char * | BLI_getwdN (char *dir, const int maxncpy) |
| unsigned int | BLI_getdir (const char *dirname, struct direntry **filelist) |
| int | BLI_exist (const char *name) |
| int | BLI_is_dir (const char *file) |
| struct LinkNode * | BLI_read_file_as_lines (const char *name) |
| void | BLI_free_file_lines (struct LinkNode *lines) |
| int | BLI_file_older (const char *file1, const char *file2) |
A general unordered 2-int pair hash table ADT.
Filling meshes.
Simple fast memory allocator.
Definition in file BLI_storage.h.
| void BLI_adddirstrings | ( | void | ) |
Definition at line 287 of file storage.c.
References actnum, BLI_strncpy(), direntry::date, MEM_mallocN(), direntry::mode1, direntry::mode2, direntry::mode3, NULL, direntry::owner, direntry::relname, direntry::s, size(), direntry::size, direntry::string, direntry::time, and types.
Referenced by BLI_getdir().
| void BLI_builddir | ( | const char * | dirname, |
| const char * | relname | ||
| ) |
Definition at line 201 of file storage.c.
References actnum, BLI_addhead(), BLI_compare(), BLI_freelist(), BLI_strdup(), BLI_strdupcat(), ListBase::first, direntry::flags, dirlink::name, dirlink::next, NULL, direntry::path, direntry::relname, direntry::s, totnum, and direntry::type.
Referenced by BLI_getdir().
Definition at line 119 of file storage.c.
References BLI_natstrcmp(), direntry::relname, and direntry::type.
Referenced by BLI_builddir().
| double BLI_diskfree | ( | const char * | dir | ) |
Definition at line 146 of file storage.c.
References DWORD, and FILE_MAXDIR.
| int BLI_exist | ( | const char * | name | ) |
Definition at line 441 of file storage.c.
References BLI_strncpy(), FILE_MAXDIR, and FILE_MAXFILE.
Referenced by add_win32_extension(), BKE_ptcache_remove(), blf_dir_metrics_search(), blf_dir_search(), BLI_exists(), BLI_is_dir(), collada_export(), fluidsim_delete_until_lastframe(), fsmenu_read_bookmarks(), and RE_BlenderAnim().
| int BLI_file_older | ( | const char * | file1, |
| const char * | file2 | ||
| ) |
Definition at line 522 of file storage.c.
Referenced by imb_cache_filename().
| size_t BLI_filepathsize | ( | const char * | path | ) |
Definition at line 428 of file storage.c.
References BLI_filesize(), O_BINARY, and size().
Referenced by IMB_exr_begin_read(), IMB_thumb_create(), and RE_BlenderAnim().
| size_t BLI_filesize | ( | int | file | ) |
Definition at line 419 of file storage.c.
Referenced by BLI_filepathsize(), BLO_read_runtime(), IMB_loadifffile(), imb_loadtilefile(), and newPackedFile().
| void BLI_free_file_lines | ( | struct LinkNode * | lines | ) |
Free the list returned by BLI_read_file_as_lines.
Definition at line 517 of file storage.c.
References BLI_linklist_free(), and MEM_freeN().
Referenced by WM_read_history().
| unsigned int BLI_getdir | ( | const char * | dirname, |
| struct direntry ** | filelist | ||
| ) |
Definition at line 395 of file storage.c.
References actnum, BLI_adddirstrings(), BLI_builddir(), NULL, and totnum.
Referenced by filelist_read_dir(), and init_iconfile_list().
| char* BLI_getwdN | ( | char * | dir, |
| const int | maxncpy | ||
| ) |
Definition at line 107 of file storage.c.
References BLI_strncpy().
Referenced by BLI_path_cwd(), BLI_where_am_i(), filelist_read_dir(), get_path_system(), and init_iconfile_list().
| int BLI_is_dir | ( | const char * | file | ) |
Read a file as ASCII lines. An empty list is returned if the file cannot be opened or read.
| name | The name of the file to read. |
| A | list of strings representing the file lines. |
Definition at line 472 of file storage.c.
References BLI_exist().
Referenced by BLI_getDefaultDocumentFolder(), BLI_make_exist(), BLI_where_is_temp(), file_browse_exec(), file_change_dir(), file_directory_exec(), file_draw_check_exists(), test_env_path(), and test_path().
| struct LinkNode* BLI_read_file_as_lines | ( | const char * | name | ) | [read] |
Definition at line 476 of file storage.c.
References BLI_linklist_prepend(), BLI_linklist_reverse(), BLI_strdupn(), i, MEM_freeN(), MEM_mallocN(), NULL, and size().
Referenced by WM_read_history().