SMREmulator 1.0
ShingledMagneticRecordingEmulator

ediversion.h File Reference

Defines macros, data types and function prototypes pertaining to emulator versioning. More...

#include <stdarg.h>
#include <emudebug.h>
#include <emuerror.h>
#include <emutypes.h>
#include <emudiskimg.h>

Go to the source code of this file.

Defines

#define MAX_EDI_VERSION   0
 The highest EDI Format version number implemented.

Functions

int ediv_init ()
 Initializes the Emulator Versioning Module.
int ediv_is_valid (uint32_t)
 Returns if the specified version is valid.

Detailed Description

Defines macros, data types and function prototypes pertaining to emulator versioning.

Author:
Anand Suresh <anandsuresh@cmu.edu>

Definition in file ediversion.h.


Function Documentation

int ediv_init ( )

Initializes the Emulator Versioning Module.

This function initializes the data structures required by the Emulator Versioning Module and then calls the initialization functions for each of the registered versions.

Returns:
0 on success; -1 on failure registering any version

Definition at line 34 of file ediversion.c.

References ediv0_init(), and MAX_EDI_VERSION.

Referenced by edi_init().

int ediv_is_valid ( uint32_t  version)

Returns if the specified version is valid.

Parameters:
versionThe version number to be verified
Returns:
1 on success; 0 on failure

Definition at line 68 of file ediversion.c.

References MAX_EDI_VERSION.

Referenced by edi_create(), and edi_open().