Details
TNT_STORAGE_DIR_MODE
#define TNT_STORAGE_DIR_MODE
TNT_STORAGE_FILE_MODE
#define TNT_STORAGE_FILE_MODE
struct TntStorage
struct TntStorage {
gchar *base_path;
gint64 limit;
gint64 used;
};
tnt_storage_init ()
TntStorage* tnt_storage_init (const gchar *base_path);
tnt_storage_open ()
TntStorage* tnt_storage_open (const gchar *base_path);
tnt_storage_close ()
void tnt_storage_close (TntStorage *storage);
tnt_storage_same_location ()
gboolean tnt_storage_same_location (TntStorage *storage_a,
TntStorage *storage_b);
storage_a : |
|
storage_b : |
|
Returns : |
|
tnt_storage_get_path ()
const gchar* tnt_storage_get_path (TntStorage *storage);
tnt_storage_set_path ()
gboolean tnt_storage_set_path (TntStorage *storage,
const gchar *path);
storage : |
|
path : |
|
Returns : |
|
tnt_storage_get_limit ()
gint64 tnt_storage_get_limit (TntStorage *storage);
tnt_storage_set_limit ()
void tnt_storage_set_limit (TntStorage *storage,
gint64 limit);
tnt_storage_get_used ()
gint64 tnt_storage_get_used (TntStorage *storage);
tnt_storage_set_used ()
void tnt_storage_set_used (TntStorage *storage,
gint64 used);
tnt_storage_get_free ()
gint64 tnt_storage_get_free (TntStorage *storage);