namesys/path: Renamed the function names to match the rest of the project.
This commit is contained in:
parent
bf9ddfd6f6
commit
496ae3ec6c
11 changed files with 147 additions and 147 deletions
|
@ -65,7 +65,7 @@
|
|||
|
||||
typedef struct s_mpns {
|
||||
resolvers *resolver;
|
||||
publishers *Publisher;
|
||||
publishers *publisher;
|
||||
} mpns;
|
||||
|
||||
typedef struct s_tlds {
|
||||
|
@ -73,30 +73,30 @@
|
|||
int condition;
|
||||
} tlds;
|
||||
|
||||
int resolve (resolver *r, char **p, char *str, int depth, char **prefixes);
|
||||
int Resolve(char **path, char *name);
|
||||
int ResolveN(char **path, char *name, int depth);
|
||||
int resolveOnce (char **path, char *name);
|
||||
int Publish (char *proto, ciPrivKey name, char *value);
|
||||
int PublishWithEOL (char *proto, ciPrivKey name, char *value, time_t eol);
|
||||
int ipfs_namesys_resolve (resolver *r, char **p, char *str, int depth, char **prefixes);
|
||||
int ipfs_namesys_resolve(char **path, char *name);
|
||||
int ipfs_namesys_resolve_n(char **path, char *name, int depth);
|
||||
int ipfs_namesys_resolve_once (char **path, char *name);
|
||||
int ipfs_namesys_publish (char *proto, ciPrivKey name, char *value);
|
||||
int ipfs_namesys_publish_with_eol (char *proto, ciPrivKey name, char *value, time_t eol);
|
||||
|
||||
int ProquintIsProquint(char *str);
|
||||
char *ProquintEncode(char *buf, int size);
|
||||
char *ProquintDecode(char *str);
|
||||
int ProquintResolveOnce (char **p, char *name);
|
||||
int ipfs_proquint_is_proquint(char *str);
|
||||
char *ipfs_proquint_encode(char *buf, int size);
|
||||
char *ipfs_proquint_decode(char *str);
|
||||
int ipfs_proquint_resolve_once (char **p, char *name);
|
||||
|
||||
int domainMatchString (char *d);
|
||||
int IsICANNTLD(char *s);
|
||||
int IsExtendedTLD (char *s);
|
||||
int IsTLD (char *s);
|
||||
int IsDomain (char *s);
|
||||
int ipfs_isdomain_match_string (char *d);
|
||||
int ipfs_isdomain_is_icann_tld(char *s);
|
||||
int ipfs_isdomain_is_extended_tld (char *s);
|
||||
int ipfs_isdomain_is_tld (char *s);
|
||||
int ipfs_isdomain_is_domain (char *s);
|
||||
|
||||
typedef struct s_DNSResolver {
|
||||
// TODO
|
||||
} DNSResolver;
|
||||
|
||||
int DNSResolverResolveOnce (DNSResolver *r, char **path, char *name);
|
||||
int workDomain (int output, DNSResolver *r, char *name);
|
||||
int parseEntry (char **Path, char *txt);
|
||||
int tryParseDnsLink (char **Path, char *txt);
|
||||
int ipfs_dns_resolver_resolve_once (DNSResolver *r, char **path, char *name);
|
||||
int ipfs_dns_work_domain (int output, DNSResolver *r, char *name);
|
||||
int ipfs_dns_parse_entry (char **Path, char *txt);
|
||||
int ipfs_dns_try_parse_dns_link (char **Path, char *txt);
|
||||
#endif //NAMESYS_H
|
||||
|
|
|
@ -24,15 +24,15 @@
|
|||
ErrNoLinkFmt
|
||||
} PathErrs;
|
||||
|
||||
char* PathFromCid (struct Cid *c);
|
||||
char** SplitN (char *p, char *delim, int n);
|
||||
char** Segments (char *p);
|
||||
int SegmentsLength (char **s);
|
||||
void FreeSegments (char ***s);
|
||||
int IsJustAKey (char *p);
|
||||
int PopLastSegment (char **str, char *p);
|
||||
char *PathFromSegments(char *prefix, char **seg);
|
||||
int ParseCidToPath (char *dst, char *txt);
|
||||
int ParsePath (char *dst, char *txt);
|
||||
int PathIsValid (char *p);
|
||||
char* ipfs_path_from_cid (struct Cid *c);
|
||||
char** ipfs_path_split_n (char *p, char *delim, int n);
|
||||
char** ipfs_path_split_segments (char *p);
|
||||
int ipfs_path_segments_length (char **s);
|
||||
void ipfs_path_free_segments (char ***s);
|
||||
int ipfs_path_is_just_a_key (char *p);
|
||||
int ipfs_path_pop_last_segment (char **str, char *p);
|
||||
char *ipfs_path_from_segments(char *prefix, char **seg);
|
||||
int ipfs_path_parse_from_cid (char *dst, char *txt);
|
||||
int ipfs_path_parse (char *dst, char *txt);
|
||||
int ipfs_path_is_valid (char *p);
|
||||
#endif // IPFS_PATH_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue