feat: initial commit

This commit is contained in:
2022-10-04 16:14:18 +02:00
commit 833cc93681
16 changed files with 646 additions and 0 deletions

6
include/choicemenu.h Normal file
View File

@@ -0,0 +1,6 @@
#ifndef CHOICEMENU_H
#define CHOICEMENU_H
void choice_menu(void);
#endif

18
include/database.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef DATABASE_H
#define DATABASE_H
extern char _server[56];
extern char _user[56];
extern char _password[56];
extern char _database[56];
void init_mysql();
void kill(int code);
char *get_tables(void);
char *print_tables(void);
char *print_field(char *table, char *field);
int insert_row(char table[56], char fieldData[2048], char req[2048]);
int delete_row(char table[56], char identifier[2048]);
int modify_row(char table[56], char identifier[2048], char data[2048]);
#endif

6
include/utils.h Normal file
View File

@@ -0,0 +1,6 @@
#ifndef UTILS_H
#define UTILS_H
const unsigned long hash(const char *str);
#endif