blob: 2cfc779a6e7f2ee41ed1e6b1a807e37a88da72b4 [file] [edit]
/* SPDX-License-Identifier: BSD-2 */
/*
* Copyright (c) 2018, Intel Corporation
* All rights reserved.
*/
#include <stdlib.h>
#include "tss2_tpm2_types.h"
#define KEY_VALUE_INIT { \
.key = NULL, \
.value = NULL, \
}
typedef struct {
char *key;
char *value;
} key_value_t;
typedef TSS2_RC (*KeyValueFunc) (const key_value_t* key_value,
void *user_data);
bool
parse_key_value (char *key_value_str,
key_value_t *key_value);
TSS2_RC
parse_key_value_string (char *kv_str,
KeyValueFunc callback,
void *user_data);