#include <stdint.h>
#include <stddef.h>
#include "ndn-trust-schema-pattern.h"
Go to the source code of this file.
◆ ndn_trust_schema_rule_t
◆ ndn_trust_schema_rule_copy()
Copy the lhs rule to the rhs rule.
- Parameters
-
lhs. | Input. The rule to be inited. |
rhs. | Output. The rule that will be copied to. |
- Returns
- 0 if there is no error.
◆ ndn_trust_schema_rule_from_strings()
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.
- Parameters
-
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. |
- Returns
- 0 if there is no error.