Blame test/oldapi.c

Packit Service db8eaa
/*
Packit Service db8eaa
 *  Old PCM API compilation test
Packit Service db8eaa
 *
Packit Service db8eaa
 *     Author: Jaroslav Kysela <perex@perex.cz>
Packit Service db8eaa
 *
Packit Service db8eaa
 *
Packit Service db8eaa
 *   This program is free software; you can redistribute it and/or modify
Packit Service db8eaa
 *   it under the terms of the GNU General Public License as published by
Packit Service db8eaa
 *   the Free Software Foundation; either version 2 of the License, or
Packit Service db8eaa
 *   (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 General Public License for more details.
Packit Service db8eaa
 *
Packit Service db8eaa
 *   You should have received a copy of the GNU General Public License
Packit Service db8eaa
 *   along with this program; 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
#include <stdio.h>
Packit Service db8eaa
#include <stdlib.h>
Packit Service db8eaa
#include <string.h>
Packit Service db8eaa
#include <sched.h>
Packit Service db8eaa
#include <errno.h>
Packit Service db8eaa
#include <getopt.h>
Packit Service db8eaa
#define ALSA_PCM_OLD_HW_PARAMS_API
Packit Service db8eaa
#define ALSA_PCM_OLD_SW_PARAMS_API
Packit Service db8eaa
#include "../include/asoundlib.h"
Packit Service db8eaa
#include <sys/time.h>
Packit Service db8eaa
Packit Service db8eaa
typedef void (myfcn)(void *);
Packit Service db8eaa
Packit Service db8eaa
int main(int argc ATTRIBUTE_UNUSED, char *argv[] ATTRIBUTE_UNUSED)
Packit Service db8eaa
{
Packit Service db8eaa
	myfcn *fcn;
Packit Service db8eaa
	snd_pcm_hw_params_get_access(NULL);
Packit Service db8eaa
	fcn = &snd_pcm_hw_params_get_access;
Packit Service db8eaa
	return 0;
Packit Service db8eaa
}