#ifndef __CDSearch__H
#define __CDSearch__H

#include <stdbool.h>
#include "CDTrack.h"

typedef unsigned int (*CDSearch_GetTrackCount)(const void* pView);
typedef CDTrack* (*CDSearch_GetTrack)(const void* pView, unsigned int index);
typedef unsigned int (*CDSearch_GetState)(const void* pView, const CDTrack* pTrack);
typedef void (*CDSearch_SetState)(void* pView, const CDTrack* pTrack, unsigned int state, unsigned int mask);
typedef void (*CDSearch_ShowTrack)(void* pView, const CDTrack* pTrack);

void CDSearch_Open(void* pView
		, CDSearch_GetTrackCount
		, CDSearch_GetTrack
		, CDSearch_GetState
		, CDSearch_SetState
		, CDSearch_ShowTrack
		);
void CDSearch_Close(void* pView);
void CDSearch_NotCDSearch(void);

#endif
