midgard_quota

midgard_quota

Synopsis

guint               midgard_quota_get_object_size       (MidgardObject *object);
gboolean            midgard_quota_create                (MidgardObject *object);
gboolean            midgard_quota_update                (MidgardObject *object,
                                                         guint init_size);
void                midgard_quota_remove                (MidgardObject *object,
                                                         guint size);
void                midgard_quota_set_type_size         (MidgardConnection *mgd,
                                                         const gchar *typename,
                                                         guint size,
                                                         guint records);
guint               midgard_quota_get_type_size         (MidgardConnection *mgd,
                                                         const gchar *typename);
gboolean            midgard_quota_size_is_reached       (MidgardObject *object,
                                                         gint size);

Description

Details

midgard_quota_get_object_size ()

guint               midgard_quota_get_object_size       (MidgardObject *object);


midgard_quota_create ()

gboolean            midgard_quota_create                (MidgardObject *object);


midgard_quota_update ()

gboolean            midgard_quota_update                (MidgardObject *object,
                                                         guint init_size);


midgard_quota_remove ()

void                midgard_quota_remove                (MidgardObject *object,
                                                         guint size);


midgard_quota_set_type_size ()

void                midgard_quota_set_type_size         (MidgardConnection *mgd,
                                                         const gchar *typename,
                                                         guint size,
                                                         guint records);


midgard_quota_get_type_size ()

guint               midgard_quota_get_type_size         (MidgardConnection *mgd,
                                                         const gchar *typename);


midgard_quota_size_is_reached ()

gboolean            midgard_quota_size_is_reached       (MidgardObject *object,
                                                         gint size);