X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=liblttd%2Fliblttdvfs.h;fp=liblttd%2Fliblttdvfs.h;h=af1285c5664c38f47708a93fc056582b00857de1;hb=e4ef128f48af4e918d0eb3442f74091d850f9d2e;hp=0000000000000000000000000000000000000000;hpb=a78be0c53e3a970890c5e6d243f2d2692ac5311c;p=ltt-control.git diff --git a/liblttd/liblttdvfs.h b/liblttd/liblttdvfs.h new file mode 100644 index 0000000..af1285c --- /dev/null +++ b/liblttd/liblttdvfs.h @@ -0,0 +1,42 @@ +/* + * liblttdvfs header file + * + * Copyright 2010 - Oumarou Dicko + * Michael Sills-Lavoie + * Mathieu Desnoyers + * + * This library 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. + * + * This library 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 this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef _LIBLTTDVFS_H +#define _LIBLTTDVFS_H + +#include "liblttd.h" + +/** + * liblttdvfs_new_callbacks - Is a utility function called to create a new + * callbacks struct used by liblttd to write trace data to the virtual file + * system. + * + * @trace_name: Directory name of the trace to write to. It will be created. + * @append_mode: Append to a possibly existing trace. + * @verbose_mode: Verbose mode. + * + * Returns the callbacks if the function succeeds else NULL. + */ +struct liblttd_callbacks* +liblttdvfs_new_callbacks(char* trace_name, int append_mode, int verbose_mode); + +#endif /*_LIBLTTDVFS_H */