#ifndef __HOSTGSM
#define __HOSTGSM

#include <stdio.h>
#include "typedefs.h"

/*_________________________________________________________________________
 |                                                                         |
 |                           Function Prototypes                           |
 |_________________________________________________________________________|
*/

void   fillBitAlloc(int iVoicing, int iR0, int *piVqIndeces,
                           int iSoftInterp, int *piLags,
                           int *piCodeWrdsA, int *piCodeWrdsB,
                           int *piGsp0s, int16_t swVadFlag,
                           int16_t swSP, int16_t *pswBAlloc);

int    hostEncoderInterface(FILE *pfileInSpeech, int iNumToRead,
                                   int16_t pswSamplesRead[]);

  int    readDecfile(FILE *infile, int16_t pswSpeechPara[]);

  void   speechDecoderHostInterface(int16_t pswDecodedSpeechFrame[],
                                           FILE *fpfileSpeechOut);

  int    writeEncfile(int16_t pswOutBit[], FILE *fpfileEnc);

#endif
