1 // SPDX-License-Identifier: CDDL-1.0 2 /* 3 * This file and its contents are supplied under the terms of the 4 * Common Development and Distribution License ("CDDL"), version 1.0. 5 * You may only use this file in accordance with the terms of version 6 * 1.0 of the CDDL. 7 * 8 * A full copy of the text of the CDDL should have accompanied this 9 * source. A copy of the CDDL is also available via the Internet at 10 * https://opensource.org/license/CDDL-1.0. 11 */ 12 /* 13 * This file is part of the ZFS Event Daemon (ZED). 14 * 15 * Developed at Lawrence Livermore National Laboratory (LLNL-CODE-403049). 16 * Copyright (C) 2013-2014 Lawrence Livermore National Security, LLC. 17 */ 18 19 #ifndef ZED_STRINGS_H 20 #define ZED_STRINGS_H 21 22 typedef struct zed_strings zed_strings_t; 23 24 zed_strings_t *zed_strings_create(void); 25 void zed_strings_destroy(zed_strings_t *zsp); 26 int zed_strings_add(zed_strings_t *zsp, const char *key, const char *s); 27 const char *zed_strings_first(zed_strings_t *zsp); 28 const char *zed_strings_next(zed_strings_t *zsp); 29 int zed_strings_count(zed_strings_t *zsp); 30 31 #endif /* !ZED_STRINGS_H */ 32