diff options
Diffstat (limited to 'lib/locking.h')
-rw-r--r-- | lib/locking.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/locking.h b/lib/locking.h index 1a8bdcd4..6bed14bf 100644 --- a/lib/locking.h +++ b/lib/locking.h @@ -13,12 +13,13 @@ struct domain_generic; /* Here define the global lock order; first to last. */ struct lock_order { + struct domain_generic *meta; struct domain_generic *the_bird; + struct domain_generic *control; struct domain_generic *proto; + struct domain_generic *service; struct domain_generic *rtable; struct domain_generic *attrs; - struct domain_generic *cork; - struct domain_generic *event; struct domain_generic *resource; }; @@ -35,6 +36,9 @@ struct domain_generic *domain_new(const char *name, uint order); #define DOMAIN_FREE(type, d) domain_free((d).type) void domain_free(struct domain_generic *); +#define DOMAIN_NAME(type, d) domain_name((d).type) +const char *domain_name(struct domain_generic *); + #define DOMAIN_NULL(type) (DOMAIN(type)) {} #define LOCK_DOMAIN(type, d) do_lock(((d).type), &(locking_stack.type)) |