Add copyright notices and some comments about status and TODO
[lttv.git] / ltt / branches / poly / include / lttv / iattribute.h
index 944092a2b62e1a85780633983f8a530dc624d3ff..11dccd10ad178af57a5228c63071b7c3478347ce 100644 (file)
@@ -1,9 +1,27 @@
+/* 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 IATTRIBUTE_H
 #define IATTRIBUTE_H
 
 
 #include <glib-object.h>
-#include <time.h>
+#include <ltt/time.h>
 
 /* The content of a data structure may be seen as an array of pairs of
    attribute name and value. This simple model allows generic navigation 
@@ -12,8 +30,6 @@
 
 typedef GQuark LttvAttributeName;
 
-typedef struct timespec LttvTime;
-
 typedef enum _LttvAttributeType {
   LTTV_INT, LTTV_UINT, LTTV_LONG, LTTV_ULONG, LTTV_FLOAT, LTTV_DOUBLE, 
   LTTV_TIME, LTTV_POINTER, LTTV_STRING, LTTV_GOBJECT, LTTV_NONE
@@ -26,7 +42,7 @@ typedef union LttvAttributeValue {
   unsigned long *v_ulong;
   float *v_float;
   double *v_double;
-  LttvTime *v_time;
+  LttTime *v_time;
   gpointer *v_pointer;
   char **v_string;
   GObject **v_gobject;
@@ -68,7 +84,7 @@ struct _LttvIAttributeClass {
   void (*remove_by_name) (LttvIAttribute *self,
       LttvAttributeName name);
 
-  LttvIAttribute* (*create_subdir) (LttvIAttribute *self, 
+  LttvIAttribute* (*find_subdir) (LttvIAttribute *self, 
       LttvAttributeName name);
 };
 
@@ -121,7 +137,7 @@ void lttv_iattribute_remove_by_name(LttvIAttribute *self,
    attribute of that name already exists but is not a GObject supporting the
    iattribute interface, return NULL. */
 
-LttvIAttribute* lttv_iattribute_create_subdir(LttvIAttribute *self, 
+LttvIAttribute* lttv_iattribute_find_subdir(LttvIAttribute *self, 
       LttvAttributeName name);
 
 
This page took 0.023823 seconds and 4 git commands to generate.