Path: blob/master/thirdparty/linuxbsd_headers/alsa/alisp.h
9898 views
/*1* ALSA lisp implementation2* Copyright (c) 2003 by Jaroslav Kysela <[email protected]>3*4*5* This library is free software; you can redistribute it and/or modify6* it under the terms of the GNU Lesser General Public License as7* published by the Free Software Foundation; either version 2.1 of8* the License, or (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13* GNU Lesser General Public License for more details.14*15* You should have received a copy of the GNU Lesser General Public16* License along with this library; if not, write to the Free Software17* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA18*19*/2021struct alisp_cfg {22int verbose: 1,23warning: 1,24debug: 1;25snd_input_t *in; /* program code */26snd_output_t *out; /* program output */27snd_output_t *eout; /* error output */28snd_output_t *vout; /* verbose output */29snd_output_t *wout; /* warning output */30snd_output_t *dout; /* debug output */31};3233struct alisp_instance;34struct alisp_object;35struct alisp_seq_iterator;3637struct alisp_cfg *alsa_lisp_default_cfg(snd_input_t *input);38void alsa_lisp_default_cfg_free(struct alisp_cfg *cfg);39int alsa_lisp(struct alisp_cfg *cfg, struct alisp_instance **instance);40void alsa_lisp_free(struct alisp_instance *instance);41int alsa_lisp_function(struct alisp_instance *instance, struct alisp_seq_iterator **result,42const char *id, const char *args, ...)43#ifndef DOC_HIDDEN44__attribute__ ((format (printf, 4, 5)))45#endif46;47void alsa_lisp_result_free(struct alisp_instance *instance,48struct alisp_seq_iterator *result);49int alsa_lisp_seq_first(struct alisp_instance *instance, const char *id,50struct alisp_seq_iterator **seq);51int alsa_lisp_seq_next(struct alisp_seq_iterator **seq);52int alsa_lisp_seq_count(struct alisp_seq_iterator *seq);53int alsa_lisp_seq_integer(struct alisp_seq_iterator *seq, long *val);54int alsa_lisp_seq_pointer(struct alisp_seq_iterator *seq, const char *ptr_id, void **ptr);555657