X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=postlicyd%2Fquery.h;h=f9cd0b654539c3e51df515ea0fc52cf9bf9f9e05;hb=e6d0c7ab6103af206f95c1291b29c3f151a41484;hp=d4d9596184a65197e0d1c23bc67460d1327312fb;hpb=913c6a51acdb1e8a6acc88fbcceac8d0a09450b7;p=apps%2Fpfixtools.git diff --git a/postlicyd/query.h b/postlicyd/query.h index d4d9596..f9cd0b6 100644 --- a/postlicyd/query.h +++ b/postlicyd/query.h @@ -38,6 +38,7 @@ #define PFIXTOOLS_QUERY_H #include "mem.h" +#include "common.h" enum smtp_state { SMTP_CONNECT, @@ -101,4 +102,12 @@ static inline void query_delete(query_t **query) } } +/** Parse the content of the text to fill the query. + * The text pointed by \p p is segmented (and modified to add + * a \0 at the end of each segment) and used to fill the query + * object. + */ +__attribute__((nonnull(1,2))) +bool query_parse(query_t *query, char *p); + #endif