From: compudj Date: Wed, 10 Oct 2007 22:26:44 +0000 (+0000) Subject: add marker desc X-Git-Tag: v0.12.20~846 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1dad7cdb11cc16133405640aa9a8a963a91cca2a;p=lttv.git add marker desc git-svn-id: http://ltt.polymtl.ca/svn@2643 04897980-b3bd-0310-b5e0-8ef037075253 --- 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