#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
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
unsigned long *v_ulong;
float *v_float;
double *v_double;
- timespec *v_timespec;
+ LttTime *v_time;
gpointer *v_pointer;
char **v_string;
- gobject **v_gobject;
+ GObject **v_gobject;
} LttvAttributeValue;
void (*remove_by_name) (LttvIAttribute *self,
LttvAttributeName name);
- LttvIAttribute* (*create_subdir) (LttvIAttribute *self,
+ LttvIAttribute* (*find_subdir) (LttvIAttribute *self,
LttvAttributeName name);
};
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);