No description
Find a file
Johan Hedberg e088b06e44 net: buf: Add API for saving & restoring parsing state
Occasionally it may be useful to pass a buffer to a subroutine and
have the routine do parsing of the buffer. However, since there isn't
necessarily a guarantee of how the subroutine performs the parsing it
may be necessary to restore to a well known state after the routine
returns.

This patch adds a simple struct for storing the parsing state as well
as two new functions to save and restore the state.

Change-Id: If9153ff9997021c76243ea9ebff13dfe94c45faa
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-07-20 14:51:24 +03:00
.known-issues build: Update Bluetooth known_issues whitelist 2016-07-13 07:39:35 +00:00
arch nanokernel: support GCC compiler atomic builtins 2016-07-18 23:20:52 +00:00
boards nios2: optionally print cause code reason 2016-07-18 19:26:37 +00:00
doc doc: Update floating point docs for ARM 2016-07-14 17:26:09 +00:00
drivers drivers/nble: Fix not setting user input expected flag 2016-07-19 07:29:06 +00:00
ext ext qmsi: Make QMSI headers available to more than just drivers 2016-07-18 18:47:51 +00:00
include net: buf: Add API for saving & restoring parsing state 2016-07-20 14:51:24 +03:00
kernel nanokernel: support GCC compiler atomic builtins 2016-07-18 23:20:52 +00:00
lib lib: Adding the strstr() function 2016-07-19 22:35:21 +00:00
misc gdb-server: update call to uart_register_input() 2016-06-22 17:40:01 +00:00
net Bluetooth: GATT: Fix using non-ASCII characters 2016-07-19 09:49:17 +00:00
samples Bluetooth: Add eddystone sample 2016-07-19 11:22:38 +00:00
scripts altera_max10: support 'make flash' and 'make debug' 2016-07-12 18:09:57 +00:00
tests Bluetooth: shell: Loopback L2CAP data 2016-07-20 05:34:50 +00:00
usb usb: cdc acm: Change Bulk Out handler to read data per 32-bit words 2016-07-08 18:22:19 +00:00
.checkpatch.conf checkpatch: decrease max line number to 80 2016-05-31 19:09:14 +00:00
.gitattributes First commit 2015-04-10 16:44:37 -07:00
.gitignore testcases: instruct git to ignore *log and outdir-* 2016-06-14 22:01:34 +00:00
.gitreview Add a .gitreview file 2016-02-20 14:25:01 +00:00
.mailmap mailmap: Add more entries for incomplete author information 2016-06-03 10:52:22 +00:00
Kbuild build: Make sure sysgen related header files get updated 2016-07-18 18:46:31 +00:00
Kconfig kconfig: Do not put architecture in the title 2016-03-14 16:50:51 -04:00
Kconfig.zephyr usb: Add USB device core layer 2016-06-30 17:51:56 +00:00
LICENSE add top level Apache 2.0 license file 2016-02-05 20:24:37 -05:00
MAINTAINERS MAINTAINER: move known issues component and clean blank line 2016-07-08 21:21:37 +00:00
Makefile build: Make sure sysgen related header files get updated 2016-07-18 18:46:31 +00:00
Makefile.inc build: Fix application object files placement when building out of tree 2016-06-30 16:49:40 +00:00
zephyr-env.sh zephyr-env.sh: Add a note to indicate the required version of zsh 2016-03-18 22:01:19 +00:00