|
Packit |
f0d170 |
/* queue.h --
|
|
Packit |
f0d170 |
* Copyright 2007,2018 Red Hat Inc., Durham, North Carolina.
|
|
Packit |
f0d170 |
* All Rights Reserved.
|
|
Packit |
f0d170 |
*
|
|
Packit |
f0d170 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
f0d170 |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
f0d170 |
* License as published by the Free Software Foundation; either
|
|
Packit |
f0d170 |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
f0d170 |
*
|
|
Packit |
f0d170 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
f0d170 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
f0d170 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
f0d170 |
* Lesser General Public License for more details.
|
|
Packit |
f0d170 |
*
|
|
Packit |
f0d170 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
f0d170 |
* License along with this library; if not, write to the Free Software
|
|
Packit |
f0d170 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
Packit |
f0d170 |
*
|
|
Packit |
f0d170 |
* Authors:
|
|
Packit |
f0d170 |
* Steve Grubb <sgrubb@redhat.com>
|
|
Packit |
f0d170 |
*/
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
#ifndef QUEUE_HEADER
|
|
Packit |
f0d170 |
#define QUEUE_HEADER
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
#include <stdio.h>
|
|
Packit |
f0d170 |
#include "libdisp.h"
|
|
Packit |
f0d170 |
#include "audispd-config.h"
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
void reset_suspended(void);
|
|
Packit |
f0d170 |
int init_queue(unsigned int size);
|
|
Packit |
f0d170 |
int enqueue(event_t *e, struct disp_conf *config);
|
|
Packit |
f0d170 |
event_t *dequeue(void);
|
|
Packit |
f0d170 |
void nudge_queue(void);
|
|
Packit |
f0d170 |
void increase_queue_depth(unsigned int size);
|
|
Packit |
f0d170 |
void write_queue_state(FILE *f);
|
|
Packit |
f0d170 |
void resume_queue(void);
|
|
Packit |
f0d170 |
void destroy_queue(void);
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
#endif
|
|
Packit |
f0d170 |
|