Commit | Line | Data |
---|---|---|
309167d2 JD |
1 | /* |
2 | * Copyright (C) 2013 - Julien Desfossez <jdesfossez@efficios.com> | |
3 | * David Goulet <dgoulet@efficios.com> | |
4 | * | |
5 | * This program is free software; you can redistribute it and/or modify it | |
6 | * under the terms of the GNU General Public License, version 2 only, as | |
7 | * published by the Free Software Foundation. | |
8 | * | |
9 | * This program is distributed in the hope that it will be useful, but WITHOUT | |
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
12 | * more details. | |
13 | * | |
14 | * You should have received a copy of the GNU General Public License along with | |
15 | * this program; if not, write to the Free Software Foundation, Inc., 51 | |
16 | * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
17 | */ | |
18 | ||
19 | #ifndef _INDEX_H | |
20 | #define _INDEX_H | |
21 | ||
22 | #include <inttypes.h> | |
23 | ||
50adc264 | 24 | #include "ctf-index.h" |
309167d2 JD |
25 | |
26 | int index_create_file(char *path_name, char *stream_name, int uid, int gid, | |
27 | uint64_t size, uint64_t count); | |
50adc264 | 28 | ssize_t index_write(int fd, struct ctf_packet_index *index, size_t len); |
2f8f53af DG |
29 | int index_open(const char *path_name, const char *channel_name, |
30 | uint64_t tracefile_count, uint64_t tracefile_count_current); | |
309167d2 JD |
31 | |
32 | #endif /* _INDEX_H */ |