1d1ea5017SWarner Losh /*- 2d1ea5017SWarner Losh * Copyright 2020 Toomas Soome <tsoome@me.com> 3d1ea5017SWarner Losh * 4d1ea5017SWarner Losh * Redistribution and use in source and binary forms, with or without 5d1ea5017SWarner Losh * modification, are permitted provided that the following conditions 6d1ea5017SWarner Losh * are met: 7d1ea5017SWarner Losh * 1. Redistributions of source code must retain the above copyright 8d1ea5017SWarner Losh * notice, this list of conditions and the following disclaimer. 9d1ea5017SWarner Losh * 2. Redistributions in binary form must reproduce the above copyright 10d1ea5017SWarner Losh * notice, this list of conditions and the following disclaimer in the 11d1ea5017SWarner Losh * documentation and/or other materials provided with the distribution. 12d1ea5017SWarner Losh * 13d1ea5017SWarner Losh * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14d1ea5017SWarner Losh * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15d1ea5017SWarner Losh * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16d1ea5017SWarner Losh * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17d1ea5017SWarner Losh * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18d1ea5017SWarner Losh * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19d1ea5017SWarner Losh * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20d1ea5017SWarner Losh * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21d1ea5017SWarner Losh * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22d1ea5017SWarner Losh * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23d1ea5017SWarner Losh * SUCH DAMAGE. 24d1ea5017SWarner Losh */ 25d1ea5017SWarner Losh 26d1ea5017SWarner Losh /* Private part of nvstore API, for internal use only */ 27d1ea5017SWarner Losh 28d1ea5017SWarner Losh #pragma once 29d1ea5017SWarner Losh 30d1ea5017SWarner Losh typedef struct nvstore { 31d1ea5017SWarner Losh char *nvs_name; 32d1ea5017SWarner Losh void *nvs_data; 33d1ea5017SWarner Losh nvs_callbacks_t *nvs_cb; 34d1ea5017SWarner Losh STAILQ_ENTRY(nvstore) nvs_next; 35d1ea5017SWarner Losh } nvstore_t; 36d1ea5017SWarner Losh 37d1ea5017SWarner Losh typedef STAILQ_HEAD(store_list, nvstore) nvstore_list_t; 38d1ea5017SWarner Losh 39d1ea5017SWarner Losh extern nvstore_list_t stores; 40