![]() |
ndn-lite
|
#include "ndn-trust-schema-rule.h"
Functions | |
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. More... | |
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. More... | |
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.
lhs. | Input. The rule to be inited. |
rhs. | Output. The rule that will be copied to. |
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.
This function will do memory copy and only support regular string; not support URI currently.
rule. | Output. The NDN Trust Schema rule to be inited. |
data_name_pattern_string. | Input. The string from which the data name ndn trust schema patter will be inited. |
data_name_pattern_string_size. | Input. Size of the data name pattern string. |
key_name_pattern_string. | Input. The string from which the key name ndn trust schema patter will be inited. |
key_name_pattern_string_size. | Input. Size of the key name pattern string. |