#ifndef PIC_DOCTOR_H #define PIC_DOCTOR_H /* pic doctor: brings the journal at DB up to this pic's schema when another pic's version is in the * way. It names every process that has the journal open, lets the ones that step aside do so, stops * the older pics that do not (SIGTERM, then SIGKILL; never this process or its parent, and never a * process that is not a pic), and migrates. A journal a newer pic wrote is only reported. What it * did is printed in plain words, or with JSON as one line {"ok","state","message"}, state one of * none, current, updated, newer, blocked, damaged. 0 when the journal is usable after, else 1. */ int pic_doctor(const char *db, int json); #endif