#ifndef CHMFMT_H
#define CHMFMT_H

#include "../include/crsetup.h"
#include "../include/lvtypes.h"
#include "../include/lvtinydom.h"

#if CHM_SUPPORT_ENABLED==1

bool DetectCHMFormat( LVStreamRef stream );
bool ImportCHMDocument( LVStreamRef stream, ldomDocument * doc, LVDocViewCallback * progressCallback, CacheLoadingCallback * formatCallback );

/// opens CHM container
LVContainerRef LVOpenCHMContainer( LVStreamRef stream );

#endif

#endif // CHMFMT_H
