add marker desc
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 10 Oct 2007 22:26:44 +0000 (22:26 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 10 Oct 2007 22:26:44 +0000 (22:26 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@2643 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/ltt/marker-desc.h [new file with mode: 0644]

diff --git a/ltt/branches/poly/ltt/marker-desc.h b/ltt/branches/poly/ltt/marker-desc.h
new file mode 100644 (file)
index 0000000..7a19ab2
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef _LTT_MARKER_DESC_H
+#define _LTT_MARKER_DESC_H
+
+/*
+ * Marker description support header.
+ *
+ * Mathieu Desnoyers, August 2007
+ * License: LGPL.
+ */
+
+#include <glib.h>
+#include <ltt/marker-field.h>
+
+//FIXME TEMP!
+static inline GQuark ltt_enum_string_get(struct marker_field *f,
+  gulong value)
+{
+  char tmp[1024] = "ENUM-";
+  sprintf(tmp[sizeof("ENUM-") - 1], "%lu", value);
+  return g_quark_from_string(tmp);
+}
+
+#endif //_LTT_MARKER_DESC_H
This page took 0.024347 seconds and 4 git commands to generate.