/* * lls C API - query and change the task / account database from C, or from * Python through ctypes / cffi (see python/lls.py). * * Model * - lls_open() loads the database file into memory (or starts empty). Changes * stay in memory until lls_save(); lls_is_dirty() tells whether there is * anything to save. Nothing is saved automatically. * - Every function that can fail returns LLS_OK (0) or an error code, and the * message is available from lls_last_error(). Changes also leave human * readable notes in lls_last_messages() (what the interactive prompt prints, * e.g. "Account 'A' is back in use: its finished wait was cleared."). * - Names are case-insensitive but keep their original spelling. * - Statuses are the text you would type at the prompt: "prompt", "testing", * "uploading", "frozen", "done", "limit-reset", "wait 4:30pm", "wait 16:30" * or just "wait" (only while the task's account is already waiting). * - A wait belongs to the account: setting a task to "wait