Blame include/alisp.h

Packit Service db8eaa
/*
Packit Service db8eaa
 *  ALSA lisp implementation
Packit Service db8eaa
 *  Copyright (c) 2003 by Jaroslav Kysela <perex@perex.cz>
Packit Service db8eaa
 *
Packit Service db8eaa
 *
Packit Service db8eaa
 *   This library is free software; you can redistribute it and/or modify
Packit Service db8eaa
 *   it under the terms of the GNU Lesser General Public License as
Packit Service db8eaa
 *   published by the Free Software Foundation; either version 2.1 of
Packit Service db8eaa
 *   the License, or (at your option) any later version.
Packit Service db8eaa
 *
Packit Service db8eaa
 *   This program is distributed in the hope that it will be useful,
Packit Service db8eaa
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service db8eaa
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service db8eaa
 *   GNU Lesser General Public License for more details.
Packit Service db8eaa
 *
Packit Service db8eaa
 *   You should have received a copy of the GNU Lesser General Public
Packit Service db8eaa
 *   License along with this library; if not, write to the Free Software
Packit Service db8eaa
 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
Packit Service db8eaa
 *
Packit Service db8eaa
 */
Packit Service db8eaa
Packit Service db8eaa
struct alisp_cfg {
Packit Service db8eaa
	int verbose: 1,
Packit Service db8eaa
	    warning: 1,
Packit Service db8eaa
	    debug: 1;
Packit Service db8eaa
	snd_input_t *in;	/* program code */
Packit Service db8eaa
	snd_output_t *out;	/* program output */
Packit Service db8eaa
	snd_output_t *eout;	/* error output */
Packit Service db8eaa
	snd_output_t *vout;	/* verbose output */
Packit Service db8eaa
	snd_output_t *wout;	/* warning output */
Packit Service db8eaa
	snd_output_t *dout;	/* debug output */
Packit Service db8eaa
};
Packit Service db8eaa
Packit Service db8eaa
struct alisp_instance;
Packit Service db8eaa
struct alisp_object;
Packit Service db8eaa
struct alisp_seq_iterator;
Packit Service db8eaa
Packit Service db8eaa
struct alisp_cfg *alsa_lisp_default_cfg(snd_input_t *input);
Packit Service db8eaa
void alsa_lisp_default_cfg_free(struct alisp_cfg *cfg);
Packit Service db8eaa
int alsa_lisp(struct alisp_cfg *cfg, struct alisp_instance **instance);
Packit Service db8eaa
void alsa_lisp_free(struct alisp_instance *instance);
Packit Service db8eaa
int alsa_lisp_function(struct alisp_instance *instance, struct alisp_seq_iterator **result,
Packit Service db8eaa
		       const char *id, const char *args, ...)
Packit Service db8eaa
#ifndef DOC_HIDDEN
Packit Service db8eaa
		       __attribute__ ((format (printf, 4, 5)))
Packit Service db8eaa
#endif
Packit Service db8eaa
		       ;
Packit Service db8eaa
void alsa_lisp_result_free(struct alisp_instance *instance,
Packit Service db8eaa
			   struct alisp_seq_iterator *result);
Packit Service db8eaa
int alsa_lisp_seq_first(struct alisp_instance *instance, const char *id,
Packit Service db8eaa
			struct alisp_seq_iterator **seq);
Packit Service db8eaa
int alsa_lisp_seq_next(struct alisp_seq_iterator **seq);
Packit Service db8eaa
int alsa_lisp_seq_count(struct alisp_seq_iterator *seq);
Packit Service db8eaa
int alsa_lisp_seq_integer(struct alisp_seq_iterator *seq, long *val);
Packit Service db8eaa
int alsa_lisp_seq_pointer(struct alisp_seq_iterator *seq, const char *ptr_id, void **ptr);