ndn-lite
ndn-trust-schema-rule.h
Go to the documentation of this file.
1 
2 #ifndef NDN_TRUST_SCHEMA_RULE_H
3 #define NDN_TRUST_SCHEMA_RULE_H
4 
5 #include <stdint.h>
6 #include <stddef.h>
7 
9 
10 typedef struct ndn_trust_schema_rule {
15 
20 
21  // will probably eventually put some kind of handler to this rule so that it can be referenced by other
22  // rules or itself
24 
25 
36 int
38  const char* data_name_pattern_string, uint32_t data_name_pattern_string_size,
39  const char* key_name_pattern_string, uint32_t key_name_pattern_string_size);
46 int
48 
49 #endif // NDN_TRUST_SCHEMA_RULE_H
int ndn_trust_schema_rule_copy(const ndn_trust_schema_rule_t *lhs, ndn_trust_schema_rule_t *rhs)
Copy the lhs rule to the rhs rule.
Definition: ndn-trust-schema-rule.c:26
Definition: ndn-trust-schema-rule.h:10
struct ndn_trust_schema_rule ndn_trust_schema_rule_t
int ndn_trust_schema_rule_from_strings(ndn_trust_schema_rule_t *rule, const char *data_name_pattern_string, uint32_t data_name_pattern_string_size, const char *key_name_pattern_string, uint32_t key_name_pattern_string_size)
Init an NDN Trust Schema rule from two strings.
Definition: ndn-trust-schema-rule.c:5
The structure to represent the NDN Trust Schema pattern.
Definition: ndn-trust-schema-pattern.h:18
ndn_trust_schema_pattern_t data_pattern
The NDN trust schema pattern which represents the required data name pattern of this rule.
Definition: ndn-trust-schema-rule.h:14
ndn_trust_schema_pattern_t key_pattern
The NDN trust schema pattern which represents the required key name pattern of this rule.
Definition: ndn-trust-schema-rule.h:19