X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/b4aa79afea0c26718af8880c3ee8fea63eb21563..85f209242ad7a8601a4f805e35594105a4d6aab6:/sig/parse.hpp diff --git a/sig/parse.hpp b/sig/parse.hpp index 4557591..c569a07 100644 --- a/sig/parse.hpp +++ b/sig/parse.hpp @@ -42,13 +42,12 @@ #include "sig/types.hpp" -#include +#include namespace sig { -extern void (*sig_aggregate)(apr_pool_t *pool, enum Primitive primitive, const char *name, struct Signature *signature, const char *types); - -void Parse(apr_pool_t *pool, struct Signature *signature, const char *name); +typedef void (*Callback)(apr_pool_t *pool, const char *name, const char *types, Type *&type); +void Parse(apr_pool_t *pool, struct Signature *signature, const char *name, Callback callback); const char *Unparse(apr_pool_t *pool, struct Signature *signature); const char *Unparse(apr_pool_t *pool, struct Type *type);