-
Notifications
You must be signed in to change notification settings - Fork 0
/
view.h
57 lines (41 loc) · 1.32 KB
/
view.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef VIEW_H
#define VIEW_H
#include "types.h" //Contains User-defined Data Types.
/*
* Structure to store information required for storing the various MP3 Tag details
* Information about Output data is also stored
*/
typedef struct _TagInfo
{
/* Source MP3 file Info */
FILE* fptr_mp3;
char frame_Id [4];
/* Title Info */
char* title_tag;
uint title_tag_size;
/* Artist Info */
char* artist_tag;
uint artist_tag_size;
/* Album Info */
char* album_tag;
uint album_tag_size;
/* Year of Release Info */
char* year;
uint year_size;
/* Content Type Info */
char* content_type;
uint content_type_size;
/* Comments Info */
char* comments;
uint comment_size;
} TagInfo;
/* Printing MP3 Tag details Function Prototype */
/* Check Operation type */
OperationType check_operation (char* argv[]);
/* Perform Validation of the Arguments passed and store in the Structure */
Status read_and_validate_mp3_file (char* argv[], TagInfo* mp3tagInfo);
/* Perform the Viewing Tag details Operation */
Status view_tag (char* argv[], TagInfo* mp3tagInfo);
/* Common function to display the various Frame contents of the MP3 file */
Status get_and_display_data (const char* str_frame, const char* str_Id, char* frame_Id, uint* tag_size, char* tag, FILE* fptr);
#endif