Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 29 lines (21 sloc) 0.517 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#ifndef _FK_H_
#define _FK_H_

#include <glib.h>

#define FK_FLAG_INACTIVE 0x01
#define FK_FLAG_DELETED 0x02

typedef void (*FKDestroyCallback) (const char *key);

typedef struct {
gconstpointer key;
gint flags;
GList *fdeps;
GList *rdeps;
} FKItem;

void fk_initialize(FKDestroyCallback cb);
void fk_finalize();

void fk_add_relation(const gchar *name, GSList *deps);
void fk_delete(const gchar *name);
void fk_inactivate(const gchar *name);

#ifdef FK_UNIT_TEST
GHashTable* fk_get_hash_table();
#endif

#endif
Something went wrong with that request. Please try again.