X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Fccanlint.h;h=2ddbf37ae89b199819ead3a62fa6d34cf91aa0e0;hb=90e94990efbd7fb280f5ff30d2da4401d7ce27fc;hp=876fc64c5484040afe0959492cdb028bd036dd55;hpb=747a69435d9f83c0968d9689c4951bc0233ffc5e;p=ccan diff --git a/tools/ccanlint/ccanlint.h b/tools/ccanlint/ccanlint.h index 876fc64c..2ddbf37a 100644 --- a/tools/ccanlint/ccanlint.h +++ b/tools/ccanlint/ccanlint.h @@ -40,6 +40,9 @@ struct manifest *get_manifest(const void *ctx, const char *dir); struct ccanlint { struct list_node list; + /* More concise unique name of test. */ + const char *key; + /* Unique name of test */ const char *name; @@ -49,8 +52,9 @@ struct ccanlint { /* Can we run this test? Return string explaining why, if not. */ const char *(*can_run)(struct manifest *m); - /* If this returns non-NULL, it means the check failed. */ - void *(*check)(struct manifest *m); + /* If this returns non-NULL, it means the check failed. + * If timeleft is set to 0, means it timed out. */ + void *(*check)(struct manifest *m, unsigned int *timeleft); /* The non-NULL return from check is passed to one of these: */