#include "files/gsm-filetypes.h"
#include "gnokii.h"
+#include "protocol/fbus.h"
+
#ifdef USE_NLS
#include <locale.h>
#endif
int i = 0;
/* base model comes from gnokiirc */
+#if 0
strcat(model,"decode");
+#else
+ strcpy(model,"5190sniff");
+ fbus_decoding=1;
+#endif
/* Initialise the GSM interface. */
fbusinit(NULL);
- printf ("open InPutFile: %s\n", argv[0]);
+ printf ("open InPutFile: %s\n\n\n", argv[0]);
if ( (infile = fopen( argv[0], "rb")) == NULL ) {
printf ("Failed to open InPutFile: %s\n", argv[0]);
exit (1); }
while ( (nr_read = fread(in_buffer, 1, 16, infile)) > 0 ) {
+static int last=0;
+ if (ftell(infile)>last+1000) {
+ last=ftell(infile);
+ printf("ftell=%d\n",last);
+ }
for (i=0; i < nr_read; i++)
Protocol->StateMachine(in_buffer[i]);
}
+ puts("gnokii/decodefile() done");
return 0;
}