view rvinterf/include/tmffs1.h @ 924:d452188587b4

rvinterf: begin change to backslash escape output format Right now throughout the rvinterf suite, any time we emit output that is expected to be ASCII, but may contain non-printable garbage, we use 'cat -v' form of garbage character representation. Unfortunately, this transformation is lossy (can't be reversed 100% reliably in the user's wetware), hence we would like to migrate to C-style backslash escapes, including doubling of any already-present backslashes - this escape mechanism is lossless. Begin this change by converting the output of RV and L1 traces in rvinterf and rvtdump.
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 23 May 2023 03:10:50 +0000
parents e7502631a0f9
children
line wrap: on
line source

/******************************************************************************
 * FFS1 Protocol Indentifiers
 ******************************************************************************/

enum FFS1_PROTOCOL_IDENTIFIERS {
    FPI_END = 0,         /* end */
    FPI_BEGIN,           /* begin */
    FPI_TMFFS_VERSION,   /* tmffs_version */

    FPI_PREFORMAT,       /* preformat */
    FPI_FORMAT,          /* format */

    FPI_FCREATE,         /* fcreate */
    FPI_FUPDATE,         /* fupdate */
    FPI_FWRITE,          /* fwrite */
    FPI_FREAD,           /* fread */
    FPI_REMOVE,          /* remove */

    FPI_MKDIR,           /* mkdir */
    FPI_OPENDIR,         /* opendir */
    FPI_READDIR,         /* readdir */

    FPI_STAT,            /* stat */
    FPI_LINKSTAT,        /* linkstat */

    FPI_SYMLINK,         /* symlink */
    FPI_READLINK,        /* readlink */

    FPI_QUERY,           /* query */
    FPI_FCONTROL,        /* fcontrol */

    FPI_INIT,            /* init */
    FPI_EXIT,            /* exit */

    FPI_PCM_GETFILEINFO, /* getfileinfo */
    FPI_PCM_READFILE,    /* readfile */
    FPI_PCM_WRITEFILE,   /* writefile */
    FPI_PCM_READRECORD,  /* readrecord */
    FPI_PCM_WRITERECORD, /* writerecord */

    FPI_BUFREAD,         /* buf_read */
    FPI_BUFWRITE,        /* buf_write */
    FPI_BUFSET,          /* buf_set */

    FPI_UINT8,           /* UINT8 */
    FPI_UINT16,          /* UINT16 */
    FPI_UINT32,          /* UINT32 */
    FPI_INT8,            /* INT8 */
    FPI_INT16,           /* INT16 */
    FPI_INT32,           /* INT32 */
    FPI_BUFFER,          /* BUFFER */
    FPI_DATA,            /* DATA */
    FPI_STRBUF,          /* STRBUF */
    FPI_STRING,          /* STRING */

    FPI_TFFS             /* TFFS */

};