Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
mvahes
/
Lennubroneerimis_tarkvara
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5c3fa0c1
authored
Apr 24, 2023
by
krmaet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update changedata.h, final
parent
9c7f5cac
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
changedata.h
changedata.h
View file @
5c3fa0c1
...
@@ -6,20 +6,29 @@
...
@@ -6,20 +6,29 @@
#include "main.h"
#include "main.h"
#define USER_OPTIONS_CNT 5
#define USER_OPTIONS_CNT 5
#define ADMIN_OPTIONS_CNT
3
#define ADMIN_OPTIONS_CNT
4
#define ASSISTANT_OPTIONS_CNT 3
#define ASSISTANT_OPTIONS_CNT 3
#define STR_MAX 128
#define STR_MAX 128
#define BUFFER_MAX 500
#define BUFFER_MAX 500
#define BOOKING_NUM 9
#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
);
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
CheckBooking
(
MYSQL
*
con
,
char
*
bookingNumber
,
int
*
row
,
int
*
col
);
int
CheckBookingDocument
(
MYSQL
*
con
,
char
*
bookingNumber
,
char
*
documentNumber
,
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
ChangeName
(
MYSQL
*
con
,
char
*
booking
,
int
*
row
,
int
*
col
);
void
ChangeDocument
(
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
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
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment