tnt-storage

tnt-storage —

Synopsis




#define     TNT_STORAGE_DIR_MODE
#define     TNT_STORAGE_FILE_MODE
struct      TntStorage;
TntStorage* tnt_storage_init                (const gchar *base_path);
TntStorage* tnt_storage_open                (const gchar *base_path);
void        tnt_storage_close               (TntStorage *storage);
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);

Description

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);

base_path :
Returns :

tnt_storage_open ()

TntStorage* tnt_storage_open                (const gchar *base_path);

base_path :
Returns :

tnt_storage_close ()

void        tnt_storage_close               (TntStorage *storage);

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);

storage :
Returns :

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);

storage :
Returns :

tnt_storage_set_limit ()

void        tnt_storage_set_limit           (TntStorage *storage,
                                             gint64 limit);

storage :
limit :

tnt_storage_get_used ()

gint64      tnt_storage_get_used            (TntStorage *storage);

storage :
Returns :

tnt_storage_set_used ()

void        tnt_storage_set_used            (TntStorage *storage,
                                             gint64 used);

storage :
used :

tnt_storage_get_free ()

gint64      tnt_storage_get_free            (TntStorage *storage);

storage :
Returns :