Gareth Williams | d5618a8 | 2015-05-20 11:13:32 +0100 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | struct ecm_state_file_instance; |
| 18 | |
| 19 | int ecm_state_write_reset(struct ecm_state_file_instance *sfi, char *prefix); |
| 20 | |
| 21 | int ecm_state_prefix_add(struct ecm_state_file_instance *sfi, char *prefix); |
| 22 | int ecm_state_prefix_index_add(struct ecm_state_file_instance *sfi, int index); |
| 23 | int ecm_state_prefix_remove(struct ecm_state_file_instance *sfi); |
| 24 | |
| 25 | int ecm_state_write(struct ecm_state_file_instance *sfi, char *name, char *fmt, ...); |
| 26 | |