mirror of
https://github.com/Hizenberg469/GitMap.git
synced 2026-04-19 17:52:24 +03:00
Implementing XML
This commit is contained in:
26
include/command.h
Normal file
26
include/command.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef __COMMAND_H
|
||||
#define __COMMAND_H
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
enum {
|
||||
CMD_SUCCESS = 0,
|
||||
CMD_FAIL_EXEC,
|
||||
CMD_FAIL_CMD
|
||||
};
|
||||
|
||||
/*
|
||||
* Defined in scan.c source file.
|
||||
*/
|
||||
int Multi_Git_Project_scan(char* str);
|
||||
int Git_Project_scan(char* str);
|
||||
int Multi_Git_Project_rm(char* str);
|
||||
int Git_Project_rm(char* str);
|
||||
|
||||
int
|
||||
command_exec(int argc, char** argv);
|
||||
|
||||
int
|
||||
command_parse_and_exec(char* str);
|
||||
|
||||
#endif
|
||||
18
include/printclr.h
Normal file
18
include/printclr.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef __PRINTCLR_H
|
||||
#define __PRINTCLR_H
|
||||
|
||||
typedef enum {
|
||||
FG_BLACK = 0,
|
||||
FG_RED,
|
||||
FG_GREEN,
|
||||
FG_YELLOW,
|
||||
FG_BLUE,
|
||||
FG_MAGENTA,
|
||||
FG_CYAN,
|
||||
FG_WHITE
|
||||
}fg_clr_t;
|
||||
|
||||
void
|
||||
printclr(fg_clr_t fg, const char* fmt, ...);
|
||||
|
||||
#endif
|
||||
10
include/scan.h
Normal file
10
include/scan.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#ifndef __SCAN_H
|
||||
#define __SCAN_H
|
||||
|
||||
#include <command.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
int cache_location(const char* directory_path, const char* git_project_path);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user