1 /* 2 * This library is free software; you can redistribute it and/or 3 * modify it under the terms of the GNU Lesser General Public 4 * License as published by the Free Software Foundation; either 5 * version 2 of the License, or (at your option) any later version. 6 * 7 * This library is distributed in the hope that it will be useful, 8 * but WITHOUT ANY WARRANTY; without even the implied warranty of 9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10 * Lesser General Public License for more details. 11 * 12 * You should have received a copy of the GNU General Public License 13 * along with this program; if not, write to the Free Software 14 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 15 */ 16 17 #ifndef __TOPOLOGY_H 18 #define __TOPOLOGY_H 19 20 #include <stdlib.h> 21 22 /* pre_processor */ 23 struct tplg_pre_processor { 24 snd_config_t *input_cfg; 25 snd_config_t *output_cfg; 26 snd_output_t *output; 27 snd_output_t *dbg_output; 28 }; 29 30 int pre_process(struct tplg_pre_processor *tplg_pp, char *config, size_t config_size, 31 const char *pre_processor_defs, const char *inc_path); 32 int init_pre_processor(struct tplg_pre_processor **tplg_pp, snd_output_type_t type, 33 const char *output_file); 34 void free_pre_preprocessor(struct tplg_pre_processor *tplg_pp); 35 #endif 36