2006-02-16 23:11:28 +00:00
|
|
|
#ifndef foooperationhfoo
|
|
|
|
|
#define foooperationhfoo
|
2004-08-14 20:25:32 +00:00
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
|
|
/***
|
|
|
|
|
This file is part of polypaudio.
|
|
|
|
|
|
|
|
|
|
polypaudio is free software; you can redistribute it and/or modify
|
2004-11-14 14:58:54 +00:00
|
|
|
it under the terms of the GNU Lesser General Public License as published
|
2004-08-14 20:25:32 +00:00
|
|
|
by the Free Software Foundation; either version 2 of the License,
|
|
|
|
|
or (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
polypaudio is distributed in the hope that it will be useful, but
|
|
|
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
General Public License for more details.
|
|
|
|
|
|
2004-11-14 14:58:54 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
2004-08-14 20:25:32 +00:00
|
|
|
along with polypaudio; if not, write to the Free Software
|
|
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
|
|
USA.
|
|
|
|
|
***/
|
|
|
|
|
|
2004-12-12 22:58:53 +00:00
|
|
|
#include <polyp/cdecl.h>
|
2006-02-16 22:43:59 +00:00
|
|
|
#include <polyp/def.h>
|
2004-08-14 20:25:32 +00:00
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
|
* Asynchronous operations */
|
|
|
|
|
|
|
|
|
|
PA_C_DECL_BEGIN
|
|
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
/** \pa_operation
|
2004-08-14 20:25:32 +00:00
|
|
|
* An asynchronous operation object */
|
2006-01-11 01:17:39 +00:00
|
|
|
typedef struct pa_operation pa_operation;
|
2004-08-14 20:25:32 +00:00
|
|
|
|
|
|
|
|
/** Increase the reference count by one */
|
2006-01-11 01:17:39 +00:00
|
|
|
pa_operation *pa_operation_ref(pa_operation *o);
|
2004-08-14 20:25:32 +00:00
|
|
|
|
|
|
|
|
/** Decrease the reference count by one */
|
2006-01-11 01:17:39 +00:00
|
|
|
void pa_operation_unref(pa_operation *o);
|
2004-08-14 20:25:32 +00:00
|
|
|
|
|
|
|
|
/** Cancel the operation. Beware! This will not necessarily cancel the execution of the operation on the server side. */
|
2006-01-11 01:17:39 +00:00
|
|
|
void pa_operation_cancel(pa_operation *o);
|
2004-08-14 20:25:32 +00:00
|
|
|
|
|
|
|
|
/** Return the current status of the operation */
|
2006-01-27 16:25:31 +00:00
|
|
|
pa_operation_state_t pa_operation_get_state(pa_operation *o);
|
2004-08-14 20:25:32 +00:00
|
|
|
|
|
|
|
|
PA_C_DECL_END
|
|
|
|
|
|
|
|
|
|
#endif
|