#ifndef _COMMON_HPP
#define _COMMON_HPP 1

                          /**************************************************/
                          /*                                                */
                          /*                   Common.hpp                   */
                          /*                                                */
                          /*     Fonctions communes (encodeur/decodeur)     */
                          /*                                                */
                          /**************************************************/

/*
** $VER: common.hpp 1.2 (15.8.2000)
*/

//----------------------------------------------------------------------------------------------------

/// Includes

#ifndef  LIBRARIES_ASL_H
#include <libraries/asl.h>
#endif

#ifndef  CLIB_DOS_PROTOS_H
#include <clib/dos_protos.h>
#endif

#ifndef  CLIB_EXEC_PROTOS_H
#include <clib/exec_protos.h>
#endif

#ifndef  CLIB_ASL_PROTOS_H
#include <clib/asl_protos.h>
#endif

#ifndef  _AMIGAOS_HPP
#include "AmigaOS.hpp"
#endif

///


//----------------------------------------------------------------------------------------------------
//===================================== Déclarations/Définitions =====================================
//----------------------------------------------------------------------------------------------------

// Variables d'environnement

// Codes d'erreur pour ReadFileList().

enum e_FileListErrors {
    NO_ERROR,            // Aucune erreur détectée.
    NO_NAME_GIVEN,       // Nom de fichier/répertoire/motif incorrect (nul)
    NO_MEMORY,           // Mémoire insuffisante.
    MATCHING_ERROR       // Erreur dans MatchFirst/MatchNext
};

extern class PegaseConfigC GlobalConfig;    // Paramètres par défaut de l'encodeur.


//----------------------------------------------------------------------------------------------------
//============================================ Prototypes ============================================
//----------------------------------------------------------------------------------------------------

e_FileListErrors    ReadFileList(PegaseConfigC &roGlobalCfg, ULONG iIndex);
void                RequestFileList();
int                 EncodeFile(FileInfosC &roFileInfos);
class InputStreamC *CreateAudioC(FileInfosC &roFileInfos);


//----------------------------------------------------------------------------------------------------

#endif  // _COMMON_HPP

