Skip to content
pi-c Documentation
Login

Documentation

/* The workspace's verify command (docs/design/verdict.md): the "command"
 * string of WORKSPACE/.pic/verify.json, read only when the workspace is
 * trusted; pic never writes the file:
 *   {"command": "make test"}
 * Core runs it once for each request about to end answered and journals its
 * verdict (pic_store.verify). */
#ifndef PIC_VERIFY_H
#define PIC_VERIFY_H

#include <stdio.h>

/* The command (malloc'd), or NULL: no file, an untrusted workspace, or a
 * file without a command string (said on WARN, when not NULL). */
char *pic_verify_load(const char *workspace, FILE *warn);

#endif