Aaron Green | b3ae1dc | 2020-04-13 11:37:05 -0700 | [diff] [blame] | 1 | // Copyright 2020 The Pigweed Authors |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 4 | // use this file except in compliance with the License. You may obtain a copy of |
| 5 | // the License at |
| 6 | // |
| 7 | // https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | // License for the specific language governing permissions and limitations under |
| 13 | // the License. |
| 14 | |
| 15 | // This file provide stub implementations for the function projects are expected |
| 16 | // to provide when PW_TOKENIZER_CFG_ENABLE_TOKENIZE_TO_GLOBAL_HANDLER is set. |
| 17 | |
| 18 | #include <cstddef> |
| 19 | #include <cstdint> |
| 20 | |
| 21 | #include "pw_tokenizer/tokenize.h" |
| 22 | |
| 23 | #if PW_TOKENIZER_CFG_ENABLE_TOKENIZE_TO_GLOBAL_HANDLER |
| 24 | |
| 25 | PW_EXTERN_C void pw_TokenizerHandleEncodedMessage( |
| 26 | const uint8_t encoded_message[], size_t size_bytes) { |
| 27 | PW_UNUSED(encoded_message[0]); |
| 28 | PW_UNUSED(size_bytes); |
| 29 | } |
| 30 | |
| 31 | PW_EXTERN_C void pw_TokenizerHandleEncodedMessageWithPayload( |
| 32 | pw_TokenizerPayload payload, |
| 33 | const uint8_t encoded_message[], |
| 34 | size_t size_bytes) { |
| 35 | PW_UNUSED(payload); |
| 36 | PW_UNUSED(encoded_message[0]); |
| 37 | PW_UNUSED(size_bytes); |
| 38 | } |
| 39 | |
| 40 | #endif // PW_TOKENIZER_CFG_ENABLE_TOKENIZE_TO_GLOBAL_HANDLER |