blob: c3386cadcce0865e63b84d36973ea2d7b736781c [file] [log] [blame]
Gareth Williamsd5618a82015-05-20 11:13:32 +01001/*
2 **************************************************************************
3 * Copyright (c) 2015, The Linux Foundation. All rights reserved.
4 * Permission to use, copy, modify, and/or distribute this software for
5 * any purpose with or without fee is hereby granted, provided that the
6 * above copyright notice and this permission notice appear in all copies.
7 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
13 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 **************************************************************************
15 */
16
17struct ecm_state_file_instance;
18
19int ecm_state_write_reset(struct ecm_state_file_instance *sfi, char *prefix);
20
21int ecm_state_prefix_add(struct ecm_state_file_instance *sfi, char *prefix);
22int ecm_state_prefix_index_add(struct ecm_state_file_instance *sfi, int index);
23int ecm_state_prefix_remove(struct ecm_state_file_instance *sfi);
24
25int ecm_state_write(struct ecm_state_file_instance *sfi, char *name, char *fmt, ...);
26