#include <0cpm/netfun.h>
+#ifndef CONFIG_CODEC_RTT
+#warning "Overriding deselection of Realtime Text codec -- see help in configuration menus"
+#endif
+
+
/* The missing character code 0xfffd, encoded in UTF-8 */
uint8_t rtt_missing_text [] = { 0xef, 0xbf, 0xbd };
void rtp_paytype_text_t140 (uint8_t *msg, uint16_t len) {
uint16_t newseq;
- void rtt_recv_keys (uint8_t *text, uint16_t len);
+ //TODO:WAKEUP-TEXTSHOW-PROCESS// void rtt_recv_keys (uint8_t *text, uint16_t len);
rtt_skipheader (&msg, &len, &newseq, NULL);
switch ((int16_t) (newseq - rtt_seqnr)) {
case -2:
return;
default:
/* Packets out of sync, report missing text */
- rtt_recv_keys (rtt_missing_text, sizeof (rtt_missing_text));
+ //TODO:WAKEUP-TEXTSHOW-PROCESS// rtt_recv_keys (rtt_missing_text, sizeof (rtt_missing_text));
// ...continue into handling the one extension...
case 1:
/* Packets properly ordered */
- rtt_recv_keys (msg, len);
+ //TODO:WAKEUP-TEXTSHOW-PROCESS// rtt_recv_keys (msg, len);
rtt_seqnr = newseq;
}
}
void rtp_paytype_text_red (uint8_t *msg, uint16_t len) {
uint16_t newseq;
uint16_t gencount, skipcount, skipbytes;
- void rtt_recv_keys (uint8_t *text, uint16_t len);
+ //TODO:WAKEUP-TEXTSHOW-PROCESS// void rtt_recv_keys (uint8_t *text, uint16_t len);
rtt_skipheader (&msg, &len, &newseq, &gencount);
//
// Skip the redundant parts that were processed before
if (gencount < (newseq - rtt_seqnr)) {
/* Packets are missing -- report and use what is supplied */
- rtt_recv_keys (rtt_missing_text, sizeof (rtt_missing_text));
+ //TODO:WAKEUP-TEXTSHOW-PROCESS// rtt_recv_keys (rtt_missing_text, sizeof (rtt_missing_text));
skipcount = 0;
} else {
/* No missing packets -- skip 0 or more redundant generations */
//
// Copy the redundant parts that are new
if (((int16_t) len) > 0) {
- rtt_recv_keys (msg, len);
+ //TODO:WAKEUP-TEXTSHOW-PROCESS// rtt_recv_keys (msg, len);
}
}