hfp.c (352a05047db81c48185db466e7ed443202b20a9f) | hfp.c (f8301d4687442525e7da0541114d006bcde63652) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 1011 unchanged lines hidden (view full) --- 1020 1021static void hfp_parser_reset_line_buffer(hfp_connection_t *hfp_connection) { 1022 hfp_connection->line_size = 0; 1023} 1024 1025static void hfp_parser_store_if_token(hfp_connection_t * hfp_connection, uint8_t byte){ 1026 switch (byte){ 1027 case ',': | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 1011 unchanged lines hidden (view full) --- 1020 1021static void hfp_parser_reset_line_buffer(hfp_connection_t *hfp_connection) { 1022 hfp_connection->line_size = 0; 1023} 1024 1025static void hfp_parser_store_if_token(hfp_connection_t * hfp_connection, uint8_t byte){ 1026 switch (byte){ 1027 case ',': |
1028 case '-': |
|
1028 case ';': 1029 case '(': 1030 case ')': 1031 case '\n': 1032 case '\r': 1033 break; 1034 default: 1035 hfp_parser_store_byte(hfp_connection, byte); 1036 break; 1037 } 1038} 1039 1040static bool hfp_parser_is_separator( uint8_t byte){ 1041 switch (byte){ 1042 case ',': | 1029 case ';': 1030 case '(': 1031 case ')': 1032 case '\n': 1033 case '\r': 1034 break; 1035 default: 1036 hfp_parser_store_byte(hfp_connection, byte); 1037 break; 1038 } 1039} 1040 1041static bool hfp_parser_is_separator( uint8_t byte){ 1042 switch (byte){ 1043 case ',': |
1044 case '-': |
|
1043 case ';': 1044 case '\n': 1045 case '\r': 1046 return true; 1047 default: 1048 return false; 1049 } 1050} --- 652 unchanged lines hidden --- | 1045 case ';': 1046 case '\n': 1047 case '\r': 1048 return true; 1049 default: 1050 return false; 1051 } 1052} --- 652 unchanged lines hidden --- |