#ifndef __CAPABILITY_H__
#define __CAPABILITY_H__
+#include "stdinc.h"
+#include "rb_dictionary.h"
+
struct CapabilityIndex {
const char *name;
- struct Dictionary *cap_dict;
+ rb_dictionary *cap_dict;
unsigned int highest_bit;
rb_dlink_node node;
};
void *ownerdata;
};
+extern struct CapabilityEntry *capability_find(struct CapabilityIndex *idx, const char *cap);
extern unsigned int capability_get(struct CapabilityIndex *idx, const char *cap, void **ownerdata);
extern unsigned int capability_put(struct CapabilityIndex *idx, const char *cap, void *ownerdata);
extern unsigned int capability_put_anonymous(struct CapabilityIndex *idx);