tnt-storage

tnt-storage —

Synopsis




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

Description

Details

TNT_STORAGE_DIR_MODE

#define     TNT_STORAGE_DIR_MODE


TNT_STORAGE_FILE_MODE

#define     TNT_STORAGE_FILE_MODE


struct TntStorage

struct TntStorage {

  FluxObject  object;

  gchar      *base_path;
  gint64      limit;
  gint64      used;
};


tnt_storage_init ()

gboolean    tnt_storage_init                (TntStorage *storage,
                                             const gchar *base_path,
                                             gboolean allow_create);

storage :
base_path :
allow_create :
Returns :

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 :