all repos — conver-tool @ 99aae0a6e47779e7794bd643e2ae0ce15621db20

A command line tool to manage ConVer projects.

src/conver.h

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
#ifndef CONVER_H
#define CONVER_H

#define CONVER_VERSION 0x100D

#define CONVER_DIR ".conver"
#define CONVER_DRAFT_FILE ".conver/draft.txt"
#define CONVER_RELEASE_FILE ".conver/release.txt"
#define CONVER_LEGACY_FILE ".conver/legacy.txt"
#define CONVER_HISTORY_FILE ".conver/history.txt"
#define CONVER_RELEASES_FILE ".conver/releases.bin"

#include <stddef.h>  
#include <stdio.h>   
#include <stdlib.h>  
#include <string.h>  


typedef enum {
    CONVER_OK            =  0,
    CONVER_ERR_OPEN      = -1,  
    CONVER_ERR_WRITE     = -2,  
    CONVER_ERR_READ      = -3,  
    CONVER_ERR_ALLOC     = -4,  
    CONVER_ERR_STAT      = -5   
} conver_result_t;



#endif // CONVER_H