1f992dd4bSMatt Macy /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 3f992dd4bSMatt Macy * 4f992dd4bSMatt Macy * Copyright (c) 2018, Matthew Macy 5f992dd4bSMatt Macy * 6f992dd4bSMatt Macy * Redistribution and use in source and binary forms, with or without 7f992dd4bSMatt Macy * modification, are permitted provided that the following conditions 8f992dd4bSMatt Macy * are met: 9f992dd4bSMatt Macy * 1. Redistributions of source code must retain the above copyright 10f992dd4bSMatt Macy * notice, this list of conditions and the following disclaimer. 11f992dd4bSMatt Macy * 2. Redistributions in binary form must reproduce the above copyright 12f992dd4bSMatt Macy * notice, this list of conditions and the following disclaimer in the 13f992dd4bSMatt Macy * documentation and/or other materials provided with the distribution. 14f992dd4bSMatt Macy * 15f992dd4bSMatt Macy * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16f992dd4bSMatt Macy * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17f992dd4bSMatt Macy * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18f992dd4bSMatt Macy * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19f992dd4bSMatt Macy * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20f992dd4bSMatt Macy * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21f992dd4bSMatt Macy * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22f992dd4bSMatt Macy * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23f992dd4bSMatt Macy * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24f992dd4bSMatt Macy * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25f992dd4bSMatt Macy * SUCH DAMAGE. 26f992dd4bSMatt Macy * 27f992dd4bSMatt Macy */ 28f992dd4bSMatt Macy #ifndef __PMCFORMAT_H_ 29f992dd4bSMatt Macy #define __PMCFORMAT_H_ 30f992dd4bSMatt Macy std::string event_to_json(struct pmclog_ev *ev); 31f992dd4bSMatt Macy #endif 32