![]() | ![]() | ![]() | Tentacles Reference Manual | ![]() |
---|
tnt-storage —
#define TNT_STORAGE_DIR_MODE #define TNT_STORAGE_FILE_MODE struct TntStorage; gboolean tnt_storage_init (TntStorage *storage, const gchar *base_path, gboolean allow_create); gboolean tnt_storage_same_location (TntStorage *storage_a, TntStorage *storage_b); const gchar* tnt_storage_get_path (TntStorage *storage); gboolean tnt_storage_set_path (TntStorage *storage, const gchar *path); gint64 tnt_storage_get_limit (TntStorage *storage); void tnt_storage_set_limit (TntStorage *storage, gint64 limit); gint64 tnt_storage_get_used (TntStorage *storage); void tnt_storage_set_used (TntStorage *storage, gint64 used); gint64 tnt_storage_get_free (TntStorage *storage);
struct TntStorage { FluxObject object; gchar *base_path; gint64 limit; gint64 used; };
gboolean tnt_storage_init (TntStorage *storage, const gchar *base_path, gboolean allow_create);
storage : | |
base_path : | |
allow_create : | |
Returns : |
gboolean tnt_storage_same_location (TntStorage *storage_a, TntStorage *storage_b);
storage_a : | |
storage_b : | |
Returns : |
gboolean tnt_storage_set_path (TntStorage *storage, const gchar *path);
storage : | |
path : | |
Returns : |
void tnt_storage_set_limit (TntStorage *storage, gint64 limit);
storage : | |
limit : |
void tnt_storage_set_used (TntStorage *storage, gint64 used);
storage : | |
used : |
<< General Database Functionality | tnt-disk-chunk >> |