From 1dad7cdb11cc16133405640aa9a8a963a91cca2a Mon Sep 17 00:00:00 2001 From: compudj Date: Wed, 10 Oct 2007 22:26:44 +0000 Subject: [PATCH] add marker desc git-svn-id: http://ltt.polymtl.ca/svn@2643 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/ltt/marker-desc.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ltt/branches/poly/ltt/marker-desc.h diff --git a/ltt/branches/poly/ltt/marker-desc.h b/ltt/branches/poly/ltt/marker-desc.h new file mode 100644 index 00000000..7a19ab21 --- /dev/null +++ b/ltt/branches/poly/ltt/marker-desc.h @@ -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 +#include + +//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 -- 2.34.1