1*61145dc2SMartin Matuska // SPDX-License-Identifier: CDDL-1.0 2eda14cbcSMatt Macy /* 3180f8225SMatt Macy * This file is part of the ZFS Event Daemon (ZED). 4180f8225SMatt Macy * 5eda14cbcSMatt Macy * Developed at Lawrence Livermore National Laboratory (LLNL-CODE-403049). 6eda14cbcSMatt Macy * Copyright (C) 2013-2014 Lawrence Livermore National Security, LLC. 716038816SMartin Matuska * Refer to the OpenZFS git commit log for authoritative copyright attribution. 8eda14cbcSMatt Macy * 9eda14cbcSMatt Macy * The contents of this file are subject to the terms of the 10eda14cbcSMatt Macy * Common Development and Distribution License Version 1.0 (CDDL-1.0). 11eda14cbcSMatt Macy * You can obtain a copy of the license from the top-level file 12eda14cbcSMatt Macy * "OPENSOLARIS.LICENSE" or at <http://opensource.org/licenses/CDDL-1.0>. 13eda14cbcSMatt Macy * You may not use this file except in compliance with the license. 14eda14cbcSMatt Macy */ 15eda14cbcSMatt Macy 16eda14cbcSMatt Macy #ifndef ZED_STRINGS_H 17eda14cbcSMatt Macy #define ZED_STRINGS_H 18eda14cbcSMatt Macy 19eda14cbcSMatt Macy typedef struct zed_strings zed_strings_t; 20eda14cbcSMatt Macy 21eda14cbcSMatt Macy zed_strings_t *zed_strings_create(void); 22eda14cbcSMatt Macy void zed_strings_destroy(zed_strings_t *zsp); 23eda14cbcSMatt Macy int zed_strings_add(zed_strings_t *zsp, const char *key, const char *s); 24eda14cbcSMatt Macy const char *zed_strings_first(zed_strings_t *zsp); 25eda14cbcSMatt Macy const char *zed_strings_next(zed_strings_t *zsp); 26eda14cbcSMatt Macy int zed_strings_count(zed_strings_t *zsp); 27eda14cbcSMatt Macy 28eda14cbcSMatt Macy #endif /* !ZED_STRINGS_H */ 29