ndn-lite
ndn-rule-storage.h
Go to the documentation of this file.
1 
2 #ifndef NDN_RULE_STORAGE_H
3 #define NDN_RULE_STORAGE_H
4 
6 #include "../ndn-constants.h"
7 
8 typedef struct {
11 
12 typedef struct {
16 
23 
27 void
29 
36 ndn_rule_storage_get_rule(const char *rule_name);
37 
45 int
46 ndn_rule_storage_add_rule(const char* rule_name, const ndn_trust_schema_rule_t *rule);
47 
53 int
54 ndn_rule_storage_remove_rule(const char* rule_name);
55 
56 #endif // NDN_RULE_STORAGE_H
Definition: ndn-rule-storage.h:8
#define NDN_TRUST_SCHEMA_MAX_SUBPATTERN_MATCHES
Definition: ndn-constants.h:129
Definition: ndn-trust-schema-rule.h:10
ndn_rule_storage_t * get_ndn_rule_storage_instance(void)
There should be only one ndn_rule_storage_t.
Definition: ndn-rule-storage.c:16
const ndn_trust_schema_rule_t * ndn_rule_storage_get_rule(const char *rule_name)
Get a rule from the rule storage.
Definition: ndn-rule-storage.c:29
void ndn_rule_storage_init(void)
Init the rule storage singleton.
Definition: ndn-rule-storage.c:21
Definition: ndn-rule-storage.h:12
int ndn_rule_storage_remove_rule(const char *rule_name)
Remove a rule from the rule storage.
Definition: ndn-rule-storage.c:67
#define NDN_TRUST_SCHEMA_PATTERN_COMPONENT_BUFFER_SIZE
Definition: ndn-constants.h:131
int ndn_rule_storage_add_rule(const char *rule_name, const ndn_trust_schema_rule_t *rule)
Add a rule to the rule storage.
Definition: ndn-rule-storage.c:40