X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=lttng%2Fconf.h;h=a7672e413a4bb6f918effca6bb51f390f1d8ca07;hp=b221d5a9227035ea68781ff3aa37b7d379f50c1c;hb=6e2d116c6138874c0357b1afb1db5aa7cd80ceb6;hpb=beb8c75afd91bc32f2e7a9c124c9a21ecffd1486 diff --git a/lttng/conf.h b/lttng/conf.h index b221d5a92..a7672e413 100644 --- a/lttng/conf.h +++ b/lttng/conf.h @@ -3,8 +3,8 @@ * * 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. + * as published by the Free Software Foundation; only version 2 + * of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -19,16 +19,15 @@ #ifndef _LTTNG_CONFIG_H #define _LTTNG_CONFIG_H -#define CONFIG_FILENAME "config" -#define CONFIG_DIRNAME ".lttng" +#define CONFIG_FILENAME ".lttngrc" void config_destroy(char *path); int config_init(char *path); int config_add_session_name(char *path, char *name); +char *config_get_default_path(void); /* Must free() the return pointer */ -char *config_generate_dir_path(char *path); char *config_read_session_name(char *path); -char *config_get_default_path(void); +char *config_get_file_path(char *path); #endif /* _LTTNG_CONFIG_H */