-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedit.h
42 lines (30 loc) · 1.18 KB
/
edit.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
#ifndef EDIT_H
#define EDIT_H
#include "types.h" //Contains User-defined Data Types.
/*
* Structure to store information required for storing the Updated Fram Content details
* Information abouth the Source and Temporary MP3 files
*/
typedef struct _TagData
{
/* Source MP3 file Info */
FILE* fptr_mp3;
/* Temporary MP3 file Info */
FILE* fptr_temp;
/* Updated value Info passed in the Command Line */
char frame_Id [5];
char frame_Id_value [100];
uint frame_Id_size;
} TagData;
/* Editing MP3 details Function Prototype */
/* Perform Validation of the Arguments passed and store in the Structure */
Status read_and_validate_mp3_file_args (char* argv[], TagData* mp3tagData);
/* Perform the Editing Tag details Operation */
Status edit_tag (char* argv[], TagData* mp3tagData);
/* Copy the Frame Contents from the Source to Temporary MP3 file */
Status copy_data (TagData* mp3tagData, char flag);
/* Copy the contents after the Frames have been copied from Source to Temporary MP3 file */
Status copy_remaining_data (TagData* mp3tagData);
/* Copy the complete Data from the Temporary to Source MP3 file */
Status copy_back_to_src (TagData* mp3tagData);
#endif