/******************************************************************************
*
* Copyright (C) 2019-2020  Brian Berlin
* 
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* 
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
* 
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>
*
******************************************************************************
*
* FILENAME: media.h
*
* DESCRIPTION:  This contains media handling functions
*
* AUTHORS:  bberlin
*
* CHANGE LOG
*
*  VER     DATE     CHANGED BY   DESCRIPTION OF CHANGE
* ------  --------  ----------   ------------------------------------
* 0.9.0   12/25/19  bberlin      Creation
******************************************************************************/
#ifndef media_h
#define media_h

typedef struct {
    char *title;
    char *file;
    int image_size;
    int mapping;
    int media_type;
    int machine_type;
    int write_protect;
    unsigned long crc;
    unsigned long collections;
    char *md5;
    char *sha1;
} t_media;

/*
 * Function Declarations
 */
void media_init ( t_media *p_media );
void media_exit ( t_media *p_media );
void media_copy ( t_media *to, t_media *from );

#endif
