-
Notifications
You must be signed in to change notification settings - Fork 2
/
buffers.c
77 lines (66 loc) · 2.08 KB
/
buffers.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/* Bvim - BVi IMproved, binary analysis framework
*
* Copyright 1996-2004 by Gerhard Buergmann <gerhard@puon.at>
* Copyright 2011 by Anton Kochkov <anton.kochkov@gmail.com>
*
* This file is part of Bvim.
*
* Bvim is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Bvim 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.
*
* You should have received a copy of the GNU General Public License
* along with Bvim. If not, see <http://www.gnu.org/licenses/>.
*/
#include "buffers.h"
/* --------------------------------------------------------
* File buffers
* -------------------------------------------------------- */
int file__BufferAdd() {
return 0;
}
int file__BufferDel() {
return 0;
}
/* --------------------------------------------------------
* Buffers handling for actions,
* e.g. :yank, :paste, etc
* -------------------------------------------------------- */
unsigned long action__BufferAdd() {
return 0; // return buffer id
}
int action__BufferDel(unsigned long buffer_id) {
return 0;
}
/* --------------------------------------------------------
* I/O buffers
* -------------------------------------------------------- */
unsigned long io__BufferAdd() {
return 0; // return buffer id
}
int io__BufferAdd2(unsigned long id) {
return 0;
}
int io__BufferDestroy(unsigned long buffer_id) {
return 0;
}
/*
iobuf_t io__BufferGet(unsigned long buffer_id) {
return NULL;
}
*/
unsigned long io__RecordInsert(unsigned long buffer_id, iorecord_t record) {
return 0; // return record id
}
int io__RecordDelete(unsigned long buffer_id, unsigned long record_id) {
return 0;
}
iorecord_t* io__RecordGet(unsigned long buffer_id, unsigned long record_id) {
return 0;
}