+/* This file is part of the Linux Trace Toolkit viewer
+ * Copyright (C) 2003-2004 Michel Dagenais
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License Version 2 as
+ * published by the Free Software Foundation;
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA.
+ */
+
#ifndef LTTV_H
#define LTTV_H
-#include "attribute.h"
-
-/* Initial draft by Michel Dagenais May 2003
- * Reworked by Mathieu Desnoyers, May 2003
- */
-
+#include <lttv/attribute.h>
/* The modules in the visualizer communicate with the main module and
- with each other through attributes. There is a global set of attributes as
- well as attributes attached to each trace set, trace and tracefile. */
-
-lttv_attributes *lttv_global_attributes();
-
-
-
-/* Modules are allowed to define new command line options.
-
- Each option has a long name (--long_name), a short one character
- name (-c), a descriptive text, the argument type, and a
- pointer to where the argument value will be stored. For an option of
- type LTTV_OPT_NONE, the argument is a boolean value set to true when the
- option is present. */
-
-/* Those are already in option.h, cause conflict */
-//typedef enum _lttv_option_type
-//{LTTV_OPT_NONE, LTTV_OPT_STRING, LTTV_OPT_INT, LTTV_OPT_LONG }
-//lttv_option_type;
-
-
-//void lttv_option_add(char *long_name, char char_name, char *description,
-// lttv_option_type t, void *p);
+ with each other through attributes. There is a global set of attributes */
+LttvAttribute *lttv_global_attributes();
/* A number of global attributes are initialized before modules are
/hooks/options/after
Read the values set by the command line options.
- /hooks/trace_set/before
- Before any analysis.
-
- /hooks/trace_set/after
- After all traces were analyzed.
-
- /hooks/trace/before
- Before each trace.
+ /hooks/main/before
- /hooks/trace/after
- After each trace.
-
- /hooks/tracefile/before
- Before each tracefile.
-
- /hooks/tracefile/after
- After each tracefile.
-
- /hooks/event
- Called for each event
-
- /hooks/event_id
- This attribute contains an lttv_hooks_by_id, where the hooks for each
- id are to be called when an event of the associated type are found.
+ /hooks/main/after
*/
+#define g_info(format...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_INFO, format)
+#define g_debug(format...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, format)
+
#endif // LTTV_H