/* $Id$ */
/***
This file is part of libcanberra.
Copyright 2008 Lennart Poettering
libcanberra is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 2.1 of the
License, or (at your option) any later version.
libcanberra 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
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with libcanberra. If not, If not, see
.
***/
#ifdef HAVE_CONFIG_H
#include
#endif
#include
#include "canberra.h"
#include "common.h"
#include "driver.h"
int driver_open(ca_context *c) {
ca_return_val_if_fail(c, CA_ERROR_INVALID);
ca_return_val_if_fail(!c->driver || streq(c->driver, "null"), CA_ERROR_NODRIVER);
return CA_SUCCESS;
}
int driver_destroy(ca_context *c) {
ca_return_val_if_fail(c, CA_ERROR_INVALID);
return CA_SUCCESS;
}
int driver_change_device(ca_context *c, char *device) {
ca_return_val_if_fail(c, CA_ERROR_INVALID);
return CA_SUCCESS;
}
int driver_change_props(ca_context *c, ca_proplist *changed, ca_proplist *merged) {
ca_return_val_if_fail(c, CA_ERROR_INVALID);
ca_return_val_if_fail(changed, CA_ERROR_INVALID);
ca_return_val_if_fail(merged, CA_ERROR_INVALID);
return CA_SUCCESS;
}
int driver_play(ca_context *c, uint32_t id, ca_proplist *proplist, ca_finish_callback_t cb, void *userdata) {
ca_return_val_if_fail(c, CA_ERROR_INVALID);
ca_return_val_if_fail(proplist, CA_ERROR_INVALID);
ca_return_val_if_fail(!userdata || cb, CA_ERROR_INVALID);
if (cb)
cb(c, id, CA_SUCCESS, userdata);
return CA_SUCCESS;
}
int driver_cancel(ca_context *c, uint32_t id) {
ca_return_val_if_fail(c, CA_ERROR_INVALID);
return CA_SUCCESS;
}
int driver_cache(ca_context *c, ca_proplist *proplist) {
ca_return_val_if_fail(c, CA_ERROR_INVALID);
ca_return_val_if_fail(proplist, CA_ERROR_INVALID);
return CA_ERROR_NOTSUPPORTED;
}