Key value store. More...
#include <stdbool.h>#include <stdlib.h>
Include dependency graph for lib.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | StoreOps |
Macros | |
| #define | STORE_BACKEND_OPS(_name) |
Typedefs | |
| typedef void | StoreHandle |
| Opaque type for store backend. | |
Functions | |
| struct Slist * | store_backend_list (void) |
| Get a list of backend names. | |
| const struct StoreOps * | store_get_backend_ops (const char *str) |
| Get the API functions for an store backend. | |
| bool | store_is_valid_backend (const char *str) |
| Is the string a valid Store backend. | |
Key value store.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file lib.h.
| #define STORE_BACKEND_OPS | ( | _name | ) |
Definition at line 163 of file lib.h.
| typedef void StoreHandle |
| struct Slist * store_backend_list | ( | void | ) |
Get a list of backend names.
| ptr | List of names |
Definition at line 85 of file store.c.
Here is the call graph for this function:
Here is the caller graph for this function:| const struct StoreOps * store_get_backend_ops | ( | const char * | str | ) |
Get the API functions for an store backend.
| str | Name of the Store |
| ptr | Set of function pointers |
Definition at line 104 of file store.c.
Here is the call graph for this function:
Here is the caller graph for this function:| bool store_is_valid_backend | ( | const char * | str | ) |
Is the string a valid Store backend.
| str | Store name |
| true | s is recognized as a valid backend |
| false | otherwise |
Definition at line 126 of file store.c.
Here is the call graph for this function:
Here is the caller graph for this function: