| 1 | /* |
| 2 | * Copyright (c) 2015 Moritz Grimm <[email protected]> |
| 3 | * |
| 4 | * Permission to use, copy, modify, and distribute this software for any |
| 5 | * purpose with or without fee is hereby granted, provided that the above |
| 6 | * copyright notice and this permission notice appear in all copies. |
| 7 | * |
| 8 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 9 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 10 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 11 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 12 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 13 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 15 | */ |
| 16 | |
| 17 | #ifndef __CFG_ENCODER_H__ |
| 18 | #define __CFG_ENCODER_H__cxx . . $ `src/cfg_encoder.h:18:9`! |
| 19 | |
| 20 | #include "cfg_stream.h"cxx . . $ `<file>/src/cfg_stream.h`/ |
| 21 | |
| 22 | typedef struct cfg_encodercxx . . $ cfg_encoder# * cfg_encoder_tcxx . . $ cfg_encoder_t#; |
| 23 | typedef struct cfg_encoder_listcxx . . $ cfg_encoder_list# * cfg_encoder_list_tcxx . . $ cfg_encoder_list_t#; |
| 24 | |
| 25 | cfg_encoder_list_tcxx . . $ cfg_encoder_list_t# |
| 26 | cfg_encoder_list_createcxx . . $ cfg_encoder_list_create(e957721effb49cb3).(void); |
| 27 | void cfg_encoder_list_destroycxx . . $ cfg_encoder_list_destroy(a93b2e622c4c8dd9).(cfg_encoder_list_tcxx . . $ cfg_encoder_list_t# *); |
| 28 | unsigned int |
| 29 | cfg_encoder_list_nentriescxx . . $ cfg_encoder_list_nentries(4e06232d918433dd).(cfg_encoder_list_tcxx . . $ cfg_encoder_list_t#); |
| 30 | |
| 31 | cfg_encoder_tcxx . . $ cfg_encoder_t# |
| 32 | cfg_encoder_list_findcxx . . $ cfg_encoder_list_find(b613e7b3f606ecd3).(cfg_encoder_list_tcxx . . $ cfg_encoder_list_t#, const char *); |
| 33 | cfg_encoder_tcxx . . $ cfg_encoder_t# |
| 34 | cfg_encoder_list_getcxx . . $ cfg_encoder_list_get(b613e7b3f606ecd3).(cfg_encoder_list_tcxx . . $ cfg_encoder_list_t#, const char *); |
| 35 | void cfg_encoder_list_removecxx . . $ cfg_encoder_list_remove(70764e441ead9ae8).(cfg_encoder_list_tcxx . . $ cfg_encoder_list_t#, cfg_encoder_tcxx . . $ cfg_encoder_t# *o); |
| 36 | void cfg_encoder_list_foreachcxx . . $ cfg_encoder_list_foreach(c1e243580f4f7a3).(cfg_encoder_list_tcxx . . $ cfg_encoder_list_t#, void (*)(cfg_encoder_tcxx . . $ cfg_encoder_t#, |
| 37 | void *), void *); |
| 38 | |
| 39 | cfg_encoder_tcxx . . $ cfg_encoder_t# |
| 40 | cfg_encoder_createcxx . . $ cfg_encoder_create(24b92a03ca98d343).(const char *); |
| 41 | void cfg_encoder_destroycxx . . $ cfg_encoder_destroy(858ed67e554b4dbe).(cfg_encoder_tcxx . . $ cfg_encoder_t# *); |
| 42 | |
| 43 | int cfg_encoder_set_formatcxx . . $ cfg_encoder_set_format(d87f1746df6ab51).(cfg_encoder_tcxx . . $ cfg_encoder_t#, enum cfg_stream_formatcxx . . $ cfg_stream_format#); |
| 44 | |
| 45 | int cfg_encoder_set_namecxx . . $ cfg_encoder_set_name(1b511630c26358c1).(cfg_encoder_tcxx . . $ cfg_encoder_t#, cfg_encoder_list_tcxx . . $ cfg_encoder_list_t#, const char *, |
| 46 | const char **); |
| 47 | int cfg_encoder_set_format_strcxx . . $ cfg_encoder_set_format_str(1b511630c26358c1).(cfg_encoder_tcxx . . $ cfg_encoder_t#, cfg_encoder_list_tcxx . . $ cfg_encoder_list_t#, |
| 48 | const char *, const char **); |
| 49 | int cfg_encoder_set_programcxx . . $ cfg_encoder_set_program(1b511630c26358c1).(cfg_encoder_tcxx . . $ cfg_encoder_t#, cfg_encoder_list_tcxx . . $ cfg_encoder_list_t#, |
| 50 | const char *, const char **); |
| 51 | |
| 52 | int cfg_encoder_validatecxx . . $ cfg_encoder_validate(f08003ba3ba72319).(cfg_encoder_tcxx . . $ cfg_encoder_t#, const char **); |
| 53 | |
| 54 | const char * |
| 55 | cfg_encoder_get_namecxx . . $ cfg_encoder_get_name(7eb039d546b1e15a).(cfg_encoder_tcxx . . $ cfg_encoder_t#); |
| 56 | enum cfg_stream_formatcxx . . $ cfg_stream_format# |
| 57 | cfg_encoder_get_formatcxx . . $ cfg_encoder_get_format(76138bec6eb128bf).(cfg_encoder_tcxx . . $ cfg_encoder_t#); |
| 58 | const char * |
| 59 | cfg_encoder_get_programcxx . . $ cfg_encoder_get_program(7eb039d546b1e15a).(cfg_encoder_tcxx . . $ cfg_encoder_t#); |
| 60 | |
| 61 | #endif /* __CFG_ENCODER_H__ */ |