diff --git a/include/ipfs/namesys/namesys.h b/include/ipfs/namesys/namesys.h index ef6fda6..b07ed57 100644 --- a/include/ipfs/namesys/namesys.h +++ b/include/ipfs/namesys/namesys.h @@ -43,7 +43,13 @@ int (*func)(char**, char*); } resolvers; + // Resolver provides path resolution to IPFS + // It has a pointer to a DAGService, which is uses to resolve nodes. + // TODO: now that this is more modular, try to unify this code with the + // the resolvers in namesys typedef struct s_resolver { + //DAGService DAG; + //NodeLink *lnk; // resolveOnce looks up a name once (without recursion). int (*resolveOnce) (char **, char *); } resolver; diff --git a/include/ipfs/path/path.h b/include/ipfs/path/path.h index 2b3fdbb..f2a97c1 100644 --- a/include/ipfs/path/path.h +++ b/include/ipfs/path/path.h @@ -35,13 +35,4 @@ int ParseCidToPath (char *dst, char *txt); int ParsePath (char *dst, char *txt); int PathIsValid (char *p); - - // Resolver provides path resolution to IPFS - // It has a pointer to a DAGService, which is uses to resolve nodes. - // TODO: now that this is more modular, try to unify this code with the - // the resolvers in namesys - typedef struct s_resolver { - DAGService DAG; - int (*ResolveOnce)(NodeLink **lnk, Context ctx, DAGService *ds, Node **nd, char *name); - } Resolver; #endif // IPFS_PATH_H