Commit 5c3fa0c1 by krmaet

Update changedata.h, final

parent 9c7f5cac
Showing with 12 additions and 3 deletions
......@@ -6,20 +6,29 @@
#include "main.h"
#define USER_OPTIONS_CNT 5
#define ADMIN_OPTIONS_CNT 3
#define ADMIN_OPTIONS_CNT 4
#define ASSISTANT_OPTIONS_CNT 3
#define STR_MAX 128
#define BUFFER_MAX 500
#define BOOKING_NUM 9
//Function to print out universal option menu
int optionMenu(char *options[], int count, char buffer[STR_MAX], int *row, int *col);
void CheckIn(MYSQL *con, int *row, int *col);
//Functions to check if provided info is correct
int CheckUser(MYSQL *con, char *username, char *password);
int CheckBooking(MYSQL *con, char *bookingNumber, int *row, int *col);
int CheckBookingDocument(MYSQL *con, char *bookingNumber, char *documentNumber, int *row, int *col);
//Functions to change data in bookings
void CheckIn(MYSQL *con, int *row, int *col);
void ChangeName(MYSQL *con, char *booking, int *row, int *col);
void ChangeDocument(MYSQL *con, char *booking, int *row, int *col);
void ChangeBaggage(MYSQL *con, char *booking, int *row, int *col);
void ChangeSeat(MYSQL *con, char *booking, int *row, int *col);
//Function to add or delete a flight
void AddFlightDest(MYSQL* con, int *col, int *row);
void DeleteFlight(MYSQL *con, int *rows, int *cols);
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment