X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=liblttd%2Fliblttdutils.h;fp=liblttd%2Fliblttdutils.h;h=78439d2bdd0f851a2ddc95c1105e9b1b3b063bc6;hb=d9cbca2728d5c8df929fe464e698abc07d1876ab;hp=0000000000000000000000000000000000000000;hpb=d6d516b717dfb30a882178494203bf4ceb4810fe;p=ltt-control.git diff --git a/liblttd/liblttdutils.h b/liblttd/liblttdutils.h new file mode 100644 index 0000000..78439d2 --- /dev/null +++ b/liblttd/liblttdutils.h @@ -0,0 +1,38 @@ +/* liblttdutils header file + * + * Copyright 2010- + * Oumarou Dicko + * Michael Sills-Lavoie + * + * This program 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 2 of the License, or + * (at your option) any later version. + * + * This program 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. + * + */ + +#ifndef _LIBLTTDUTILS_H +#define _LIBLTTDUTILS_H + +#include "liblttd.h" + +/** + * liblttdutils_new_callbacks - Is a utility function called to create a new + * callbacks struct used by liblttd to write trace data to the disk. + * + * @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* liblttdutils_local_new_callbacks(char* trace_name, + int append_mode, int verbose_mode); + +#endif /*_LIBLTTDUTILS_H */ +