1c72fcc34Sopenharmony_ci/* 2c72fcc34Sopenharmony_ci * This library is free software; you can redistribute it and/or 3c72fcc34Sopenharmony_ci * modify it under the terms of the GNU Lesser General Public 4c72fcc34Sopenharmony_ci * License as published by the Free Software Foundation; either 5c72fcc34Sopenharmony_ci * version 2 of the License, or (at your option) any later version. 6c72fcc34Sopenharmony_ci * 7c72fcc34Sopenharmony_ci * This library is distributed in the hope that it will be useful, 8c72fcc34Sopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of 9c72fcc34Sopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10c72fcc34Sopenharmony_ci * Lesser General Public License for more details. 11c72fcc34Sopenharmony_ci * 12c72fcc34Sopenharmony_ci * You should have received a copy of the GNU General Public License 13c72fcc34Sopenharmony_ci * along with this program; if not, write to the Free Software 14c72fcc34Sopenharmony_ci * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 15c72fcc34Sopenharmony_ci */ 16c72fcc34Sopenharmony_ci 17c72fcc34Sopenharmony_ci#ifndef __USECASE_H 18c72fcc34Sopenharmony_ci#define __USECASE_H 19c72fcc34Sopenharmony_ci 20c72fcc34Sopenharmony_cistruct context { 21c72fcc34Sopenharmony_ci snd_use_case_mgr_t *uc_mgr; 22c72fcc34Sopenharmony_ci const char *command; 23c72fcc34Sopenharmony_ci char *card; 24c72fcc34Sopenharmony_ci char **argv; 25c72fcc34Sopenharmony_ci int argc; 26c72fcc34Sopenharmony_ci int arga; 27c72fcc34Sopenharmony_ci char *batch; 28c72fcc34Sopenharmony_ci unsigned int interactive:1; 29c72fcc34Sopenharmony_ci unsigned int no_open:1; 30c72fcc34Sopenharmony_ci unsigned int do_exit:1; 31c72fcc34Sopenharmony_ci}; 32c72fcc34Sopenharmony_ci 33c72fcc34Sopenharmony_civoid dump(struct context *context, const char *format); 34c72fcc34Sopenharmony_ci 35c72fcc34Sopenharmony_ci#endif 36