NetSurf
|
#include <stdbool.h>
Go to the source code of this file.
Macros | |
#define | TEMP_FILENAME_PREFIX "/tmp/WWW/NetSurf/Misc" |
Functions | |
const char * | filename_request (void) |
Request a new, unique, filename. More... | |
bool | filename_claim (const char *filename) |
Claim a specific filename. More... | |
void | filename_release (const char *filename) |
Releases a filename for future use. More... | |
bool | filename_initialise (void) |
Initialise the filename provider. More... | |
void | filename_flush (void) |
Deletes all files in the cache directory that are not accounted for. More... | |
#define TEMP_FILENAME_PREFIX "/tmp/WWW/NetSurf/Misc" |
Definition at line 27 of file filename.h.
bool filename_claim | ( | const char * | filename | ) |
Claim a specific filename.
filename | the filename to claim |
Definition at line 115 of file filename.c.
References filename_create_directory(), directory::high_used, directory::low_used, and START_PREFIX.
void filename_flush | ( | void | ) |
Deletes all files in the cache directory that are not accounted for.
Definition at line 219 of file filename.c.
References filename_flush_directory(), and TEMP_FILENAME_PREFIX.
bool filename_initialise | ( | void | ) |
Initialise the filename provider.
Definition at line 178 of file filename.c.
References NSLOG, nsmkdir, and TEMP_FILENAME_PREFIX.
Referenced by gui_init().
void filename_release | ( | const char * | filename | ) |
Releases a filename for future use.
filename | the filename to release |
Definition at line 151 of file filename.c.
References directory::high_used, directory::low_used, directory::next, directory::numeric_prefix, root, and START_PREFIX.
const char * filename_request | ( | void | ) |
Request a new, unique, filename.
Definition at line 68 of file filename.c.
References filename_buffer, filename_create_directory(), FULL_WORD, directory::high_used, directory::low_used, directory::next, NSLOG, directory::prefix, and root.
Referenced by nsbeos_gui_view_source(), and ro_gui_view_source().