3 * modules/buffer/swap_buffer_errors.h
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 * Copyright (C) Samsung Electronics, 2013
21 * 2013 Alexander Aksenov <a.aksenov@samsung.com>: SWAP Buffer implement
25 /* SWAP Buffer error codes enumeration */
27 enum _swap_buffer_errors {
28 E_SB_SUCCESS = 0, /* Success */
29 E_SB_UNRELEASED_BUFFERS = 1, /* There are some unreleased buffers. Mainly
30 returned by swap_buffer_uninit */
31 E_SB_NO_WRITABLE_BUFFERS = 2, /* No buffers for writing */
32 E_SB_WRONG_DATA_SIZE = 3, /* Wrong data size: size == 0 or
33 size > subbuffer size */
34 E_SB_IS_STOPPED = 4, /* Trying to write data after SWAP buffer
36 E_SB_OVERLAP = 5, /* Memory areas of data to be written and
37 subbuffer itself are overlap */
38 E_SB_NO_READABLE_BUFFERS = 6, /* No buffers for reading */
39 E_SB_NO_CALLBACK = 7, /* Callback function ptr == NULL */
40 E_SB_NO_MEM_QUEUE_BUSY = 8, /* Memory for queue_busy wasn't allocated */
41 E_SB_NO_MEM_BUFFER_STRUCT = 9, /* Memory for one of struct swap_buffer
43 E_SB_NO_MEM_DATA_BUFFER = 10, /* Memort for data buffer itself wasn't
45 E_SB_NO_SUBBUFFER_IN_BUSY = 11, /* No such subbuffer in busy_list */
46 E_SB_NOT_ALLOC = 12 /* Subbuffers aren't allocated */